as the title suggests, i cant run my (objective c) project in xcode after upgrading to Xcode 12. It is a Cocoapods project.
It works fine when i deploy to my phone, but in the simulator
I get three different errors for some reason.
-
It complains about "missing module file" for a separate project i include:
module map file ‘…(path)/Build/Products/Debug-iphonesimulator/myProject/myProject.imagemap’ not found -
It complains about a precompiled header:
:0: error: failed to emit precompiled header ‘(path)/Build/Intermediates.noindex/PrecompiledHeaders/myProject-Bridging-Header-swift_2UGSYUUFRK85M-clang_18QKMU0TXX4JD.pch’ for bridging header ‘(path)/iphone/myProject/myProject-Bridging-Header.h’ -
Finally it complains about Not finding a bundle for a library that i use:
error: Resource "(path)/Products/Debug-iphonesimulator/FCAlertView/FCAlertView.bundle" not found. Run ‘pod install’ to update the copy resources script.
I am not super knowledgeable about xcode inner workings, so if anyone has any pointers, i’d be most grateful.
2
Answers
For those who get here because of a similar issue:
My issue turned out to be that for the "VALID_ARCHS" setting, found in "Project, Build Settings, User-Defined" was missing the one needed to run on a simulator, "x86_64".
For some reason, it had been removed. Once i added it, it worked again.