You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When calling a C function marked as NS_INLINE from Swift, the app crashes when built for Release. It doesn’t crash when built for Debug.
For example
NS_INLINE BOOL myInlineFunction(void) { return UIScreen.mainScreen.bounds.size.height == 568;}
Calling that from Swift leads to
2015-07-30 20:20:42.331 NSInlineWhizBang[82768:5412934] *** NSForwarding: warning: selector (0x1045ccbe2) for message 'mainScreen' does not match selector known to Objective C runtime (0x107d5d8f1)-- abort
2015-07-30 20:20:42.331 NSInlineWhizBang[82768:5412934] +[UIScreen mainScreen]: unrecognized selector sent to class 0x105b24310
2015-07-30 20:20:42.337 NSInlineWhizBang[82768:5412934] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIScreen mainScreen]: unrecognized selector sent to class 0x105b24310'
Steps to Reproduce:
Build & run the attached project in Release mode
Description
Summary:
When calling a C function marked as NS_INLINE from Swift, the app crashes when built for Release. It doesn’t crash when built for Debug.
For example
NS_INLINE BOOL myInlineFunction(void) { return UIScreen.mainScreen.bounds.size.height == 568;}
Calling that from Swift leads to
2015-07-30 20:20:42.331 NSInlineWhizBang[82768:5412934] *** NSForwarding: warning: selector (0x1045ccbe2) for message 'mainScreen' does not match selector known to Objective C runtime (0x107d5d8f1)-- abort
2015-07-30 20:20:42.331 NSInlineWhizBang[82768:5412934] +[UIScreen mainScreen]: unrecognized selector sent to class 0x105b24310
2015-07-30 20:20:42.337 NSInlineWhizBang[82768:5412934] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIScreen mainScreen]: unrecognized selector sent to class 0x105b24310'
Steps to Reproduce:
Build & run the attached project in Release mode
Expected Results:
app runs
Actual Results:
app crashes
Regression:
Notes:
Can’t reproduce with Xcode 7.
Product Version: Xcode 6.4 (6E35b)
Created: 2015-07-30 18:27:13.142560
Originated: 2015-07-30T20:27:00
Open Radar Link: http://www.openradar.me/22076249
The text was updated successfully, but these errors were encountered: