Swift: selector name found in current argument registers: release

I get a crash log that I cannot reproduce with the message:

"Selector name found in current argument registers: release"

I can not understand what this means and googling did not give me good answers.

It is marked as Exception Type: SIGTRAP

And the line of code with which it is broken is:

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

The same line of code works in the init () function, but it seems to be reset at this later stage after the user clicked a button

This crash happens with a sufficient amount when I send it to users, but I cannot reproduce it or find out what might cause it.

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

+5
source share
1 answer

This doesn't seem to be a problem with the HockeySDK, but rather with Swift itself.

Recently, I have seen several people having problems optimizing the Swift compiler. The problem probably only arises in Ad-Hoc builds because Xcode uses the Release configuration for this, which uses a different set of compiler options. If you try to switch the local build from Debug to Release too, you can reproduce this problem.

As a workaround, you can turn off these optimizations for your Ad-Hoc builds, but if that persists, you should probably report an error with Apple.

+1
source

Source: https://habr.com/ru/post/1242130/


All Articles