docs
docs copied to clipboard
Linking Fails When Building for iOS
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
The build for iOS simulator was broken but has since been fixed. But why are you building for the simulator? You should be targeting your device.