libretro / docs

This is a repo of the RetroArch official document page.
https://docs.libretro.com/
MIT License
249 stars 405 forks source link

Linking Fails When Building for iOS #872

Open peterstory opened 9 months ago

peterstory commented 9 months ago

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:

warmenhoven commented 6 months ago

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.