skip to Main Content

I update my system to Xcode 12.2, and sense doing so, I got an error on launching the simulator:enter image description here

If I use my iPhone with the same project, it works fine. Only the simulator crashes. If I make a new project, the simulators work in the new projects.

Not sure what to do as I’m not getting anything in the output either.
Anyone has seen this and knows how to fix it?

Things I have tried sense original Post:

Uninstalled Xcode and reinstalled.
Deleted Derived Folder
Deleted Ios Simulator folder.
Reinstalled Cocoapods.
Updated pods.

2

Answers


  1. Chosen as BEST ANSWER

    So the problem with this is that Hardened runtime needs to be disabled on your target:

    select target-> Build settings -> Under Signing - Enable Hardened Runtime, select no.

    It looks like this feature will break simulators, but not actual hardware.


  2. For me the solution was to integrate all my 3rd party libraries as xcframework into my app structure. If the xcframework slices are created correctly, they contain the required code for running your app on simulators.

    For those libraries that I didnt have access to their source code, I asked the owner to provide the xcframework version of their libraries.

    ps. In my project Enable Hardened Runtime was already equal to NO and that couldnt be the problem.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search