Xcode error : Abort trap 6 (only show in device)

Viewed 3420

it's very strange , my project is all right until I open my Xcode this morning , I did not change any thing but I got an Command failed due to signal: Abort trap: 6 ( I user Xcode9 and Swift4). but with simulations, everything works fine.enter image description here

I have tried turn swift optimization to [No] but don't work.

3 Answers

You can try out doing one thing if you are using pods

Step 1 - Make a copy of your project 

here try 2 different things

Step 2 - Pod update 

if this did not work then

Step 2 - Run pod deintegrate

Step 3 - pod install 

Just try if it helps

If you are getting this error because you updated your Xcode to version 13.3 and it's happening because of file_picker (Flutter) then check this on https://github.com/miguelpruivo/flutter_file_picker/issues/999

I added this to my iOs project's podfile inside the target 'Runner' do :

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  pod 'DKImagePickerController/PhotoGallery', :git => 'https://github.com/miguelpruivo/DKImagePickerController.git'
end

And now I can archive successfully pending on when the author will push the next update on pub.dev

Problem: Abort Trap (In my case my code is working perfectly but when I trying to make an Archive for upload app on testFlight file I got the "Abort Trap")

Solution:- Just Select Your Project from project Navegater (most Left Pane) Select Project > Select Targets > Build Settings > Swift Compiler - Code Genration > Optimization Level > Debug and Realease make "No Optimization [-Onone]" enter image description here

Related