Please tell me, after upgrading to Xcode 12, simulators stopped running
There was an error ‘in /Users/…/Pods/MobileVLCKit.framework/MobileVLCKit(VLCEmbeddedDialogProvider.o), building for iOS Simulator, but linking in object file built for iOS, file’ /Users/…/Pods/MobileVLCKit /MobileVLCKit.framework/MobileVLCKit ‘for architecture arm64’
I found on the Internet a solution to add arm64 to Excluded Architectures using the Any iOS Simulator SDK option, which I did.
Then the same error was only with the i386 architecture, I added it to the exceptions as well (for project purposes and Pods purposes)
Then the same thing with x86_64, added it too
After that the error ‘Build input file cannot be found’ came out /Users/…Library/Developer/Xcode/DerivedData/SWSTB-asdgdfgbgfbg…/Build/Products/Release-iphonesimulator/MYNAME.app/MYNAME’
I tried to clean DerivedData, but after that either the error was repeated
I don’t know how to solve it
It runs fine on a real device, the problem is only with simulators
Updated Xcode to 12.01, updated cocoapods, updated mobilevlckit, error persists
3
Answers
The problem was with the pod MobileVLCKit.
The pod devs have added the necessary changes to work well with Xcode 12.x
It was necessary to update MobileVLCKit to version 3.3.15
I have not updated above 3.3.13, then I registered the command
pod install --repo-update
. After that, the repository with the pod was updated and it was possible to install the latest working version/Library/Developer
(the one from root), or rename it and relaunch your Xcode.or
or
pod update
I’ve an old project migrated to Xcode 12.4, cocoapods. Same situation. I’ve solved updating the Build Settings -> VALID_ARCH value with (both project and target section) :
Build architecture only: YES
For your tries remember to removing Derived Data: