Linking Fails When Building for iOS
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 346
- Forks
- 860
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 7
Description
Describe the bug
I'm trying to build RetroArch_iOS13, following these instructions:
https://docs.libretro.com/development/retroarch/compilation/ios/
My build fails with these errors:
Building for iOS Simulator, but linking in dylib built for iOS, file '/Users/pstory/Documents/git-repos/libretro-super/retroarch/pkg/apple/iOS/modules/libMoltenVK.dylib' for architecture arm64
Linker command failed with exit code 1 (use -v to see invocation)
I also verified that libMoltenVK.dylib exists:
> file /Users/pstory/Documents/git-repos/libretro-super/retroarch/pkg/apple/iOS/modules/libMoltenVK.dylib
/Users/pstory/Documents/git-repos/libretro-super/retroarch/pkg/apple/iOS/modules/libMoltenVK.dylib: Mach-O 64-bit dynamically linked shared library arm64
I'm unsure whether there is a missing step in the instructions (the screenshots are from an earlier version of Xcode), or if there is a bigger issue which is breaking the build.
Expected behavior/changes
The build should succeed.
Additional context
I'm running:
- macOS Ventura 13.5.2
- Xcode 14.3.1, building for iOS 16.4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the iOS compilation instructions at docs.libretro.com/development/retroarch/compilation/ios/ and reproduce the reported Xcode 14.3.1 linker failure using the supplied libMoltenVK.dylib path and error. Determine whether the instructions omit a step or need updating for the reported simulator/device mismatch; done means the documented build succeeds or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, macos
- Domain
- build-system, documentation, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100