Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift: Selector name found in current argument registers: release

I am getting a crash log that I can't repro with the message:

"Selector name found in current argument registers: release"

I cannot figure out what this means and googling, has not given me any good answers.

It is labeled as Exception Type: SIGTRAP

And the line of code that it is crashing at is:

let accentColor = data.AccentColor == nil ? UIColor.blackColor() : data.AccentColor! 

The same line of code worked in the init() function, but it seems to be crashing at this later point after the user taps a button

This crash is happening a fair amount when I send it out to users, but I can't repro it or figure out what may be causing it.

What does this error message mean and what can I do to fix the issue?

like image 421
schlaegerz Avatar asked Nov 08 '22 20:11

schlaegerz


1 Answers

This does not look like an issue with the HockeySDK but much rather with Swift itself.

I've seen several people having issues with Swift compiler optimizations lately. The issue probably only occurs on Ad-Hoc builds because Xcode uses the Release configuration for this which uses a different set of compiler settings. If you try switching your local build from Debug to Release too, you should be able to reproduce this issue.

As a workaround, you can disable these optimizations for your Ad-Hoc builds but if this persists, you should probably file a bug with Apple.

like image 65
Lukas Spieß Avatar answered Nov 14 '22 21:11

Lukas Spieß