docs icon indicating copy to clipboard operation
docs copied to clipboard

Linking Fails When Building for iOS

Open peterstory opened this issue 1 year ago • 1 comments

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

peterstory avatar Sep 09 '23 18:09 peterstory

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.

warmenhoven avatar Dec 18 '23 04:12 warmenhoven