-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Crash on 5.4 - Podfile #1153
Comments
Hi @gonniegijsen,
We will further research alternatives and provide a fix for iOS runtime's metadata generator but in the meantime as a workaround you may need to either downgrade your |
This comment was marked as abuse.
This comment was marked as abuse.
We plan to fix the metadata issue in a patch release (probably in 5.4.2 like you say). The #if (!defined(SWIFT_CLASS_EXTRA) || (defined(SWIFT_SDK_OVERLAY_UIKIT_EPOCH) && SWIFT_SDK_OVERLAY_UIKIT_EPOCH >= 1))
#define UIKIT_DEFINE_AS_PROPERTIES 1
#else
#define UIKIT_DEFINE_AS_PROPERTIES 0
#endif Leading to declaring many properties as methods instead -- e.g. in NS_CLASS_AVAILABLE_IOS(2_0) @interface UIDevice : NSObject
#if UIKIT_DEFINE_AS_PROPERTIES
@property(class, nonatomic, readonly) UIDevice *currentDevice;
#else
+ (UIDevice *)currentDevice;
#endif |
They define macros which may alter the way some iOS SDK methods and properties are declared refs NativeScript/ios-jsc#1153
…rella header They define macros which may alter the way some iOS SDK methods and properties are declared refs #1153
@gonniegijsen commented on Fri Jun 07 2019
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
The application is crashing on a real device on iOS (iPhone 7; iOS: 12.2) after including this podfile:
Crash I am getting:
This crash happens when the app is launching and wasn't doing so on Nativescript 5.3.1
To Reproduce
Create a new project with typescript or angular.
Add Podfile
Enable ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
Run the app on a real device
Expected behavior
No crash
Sample project
Additional context
@tsonevn commented on Fri Jun 07 2019
Hi @gonniegijsen,
Can you send us the project, that you are using for testing and demonstrates, how you are calling the native API from the JavaScript?
@gonniegijsen commented on Fri Jun 07 2019
I can reproduce it with by creating a new project, adding the pod file and not writing any code :/
@gonniegijsen commented on Fri Jun 07 2019
test-ios-crash.zip
@tsonevn commented on Fri Jun 07 2019
Hi @gonniegijsen,
We were able to recreate the issue on our side and I will mark it as a bug. We will research it further, why this problem appears only on a device.
The text was updated successfully, but these errors were encountered: