skip to Main Content

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.

  1. 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

  2. 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’

  3. 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


  1. Chosen as BEST ANSWER

    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.


    1. Close Simulator application
    2. Restart Xcode
    3. Run the project on sim to start the sim up
    4. "Erase content and settings" on the simulator
    5. Run again after it rebooted
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search