skip to Main Content

when building the project, an error appears error: Abort trap: 6 (in target ‘RealmSwift’ from project ‘Pods’)

https://i.stack.imgur.com/l8Uog.png

I am using xcode 13.3, macbook on m1 pro

The tips I found on the internet didn’t help.

Does anyone know the solution to my problem?

3

Answers


  1. I had the same issue after Xcode update.
    This command did help:

    pod repo update

    Login or Signup to reply.
  2. To fix this issue you need to update the Realm version that you have to the RealmSwift 10.25.0 or over.

    You can change the Podfile file

    pod 'RealmSwift', '~> 10.25.0'
    

    After that you just need to open the Terminal in your project folder and do:

    pod repo update
    pod install
    
    Login or Signup to reply.
  3. I found solution, hope it could be useful 🙂

    Select Pods > Build Settings > Swift Compiler – Code Genration > Optimization Level > Debug and Realease make "No Optimization [-Onone]"

    Select Your Project > Select Targets > Build Settings > Swift Compiler – Code Genration > Optimization Level > Debug and Realease make "No Optimization [-Onone]"

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