Xcode 10.2 : Abort trap 6

Hi,


I contact you because i need some help.

I try to pass my project on xcode 10.2 and when i compile i have this error on a pod. (abort trap 6)

But it work with xcode 10.1.


I have tried to change the toolchain swift, i have downloaded on swift.org toolchains swift 4.2.5 and 5.0.1 and it works.

But with it, i can't compile on a physical device.


Someone have already had this problem ?


Thanks,


Julien Hamon

Replies

May have a look at this :


https://stackoverflow.com/questions/30724897/command-failed-due-to-signal-abort-trap-6


They state:

This was happening to me on XCode 10.1. The optimization levels have changed to "No optimization", "Optimize for speed" or "Optimize for size", speed being the default for Release. I've changed that for size - it's something, at least - and it worked.

Thanks for your answer.


i already tried the optimization level but it set to none by default.

i check the other comments in the feed.

the error detailed :

Attribute 'swifterror' only applies to parameters with pointer to pointer type! 
  call swiftcc void @"$s10Foundation11JSONDecoderC6decode_4fromxxm_AA4DataVtKSeRzlFTj"(%swift.opaque.88* noalias nocapture sret undef, %swift.type.77* %226, i64 %227, i64 %2, %swift.type.77* %228, i8** swiftself %229, %T10Foundation11JSONDecoderC* noalias nocapture swifterror swiftself dereferenceable(8) %230, %swift.error.102** noalias nocapture swifterror dereferenceable(8) %20), !dbg !195 
Cannot have multiple 'swiftself' parameters! 
  call swiftcc void @"$s10Foundation11JSONDecoderC6decode_4fromxxm_AA4DataVtKSeRzlFTj"(%swift.opaque.88* noalias nocapture sret undef, %swift.type.77* %226, i64 %227, i64 %2, %swift.type.77* %228, i8** swiftself %229, %T10Foundation11JSONDecoderC* noalias nocapture swifterror swiftself dereferenceable(8) %230, %swift.error.102** noalias nocapture swifterror dereferenceable(8) %20), !dbg !195 
swifterror argument should come from an alloca or parameter 
  %230 = bitcast %T21PFUPresentationClient0aB11JSONDecoderC* %116 to %T10Foundation11JSONDecoderC*, !dbg !195 
  call swiftcc void @"$s10Foundation11JSONDecoderC6decode_4fromxxm_AA4DataVtKSeRzlFTj"(%swift.opaque.88* noalias nocapture sret undef, %swift.type.77* %226, i64 %227, i64 %2, %swift.type.77* %228, i8** swiftself %229, %T10Foundation11JSONDecoderC* noalias nocapture swifterror swiftself dereferenceable(8) %230, %swift.error.102** noalias nocapture swifterror dereferenceable(8) %20), !dbg !195 
<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log 
<unknown>:0: note: Broken function found, compilation aborted!

HIs it a third party pod ?


If so, id you ask them if compatible with XCode 10.2 (and Swift 5.1) ?


Otherwise, you have the advice to file a bug report.

Yes it's a third party. It's pod generate by Swagger codegen for an API.

I would go to their forum first to see if any info.


Then post the question to their support.