urbanairship / react-native-airship

Airship React Native module
Other
88 stars 62 forks source link

iOS: app crash on takeOff #61

Closed fryossi closed 6 years ago

fryossi commented 7 years ago

Error: CoreData: error: Cannot load NSManagedObjectModel. nil is an illegal URL parameter libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

stacktrace: dispatch_once(&takeOffPred_, ^{ [UAirship executeUnsafeTakeOff:[config copy]]; });

[UAirship takeOff:[UAConfig defaultConfig]];

[UAirship takeOff];

+(void)performTakeOff:(NSNotification *)notification {...}


Enterprise iOS certificate & provisioning.

pod 'UrbanAirship-iOS-SDK', '~>8.3'

"urbanairship-react-native": "1.2.2" "react": "16.0.0-alpha.6" "react-native": "0.44.3"

EDIT: UrbanAirship-iOS-SDK (8.6.0) (Podfile.lock). The app crashes on every initialization.

rlepinski commented 7 years ago

What version of the UA SDK does your podfile.lock say? Is this a one off crash or is it reproducible?

fryossi commented 7 years ago

See EDIT. Thanks.

rlepinski commented 7 years ago

@fryossi Seems like a pod install problem. Could you try upgrading pods and see if that resolves the issue? If not, could you provide more info on if it use to work, and if so, what changed to break it?

fryossi commented 7 years ago

I have Multiple build configuration. All the other builds works fine. The problem is on the Enterprise build. It uses a different Team, Certificate, and entitlements file (Enterprise program- without ApplePay). It can be launched locally (in dev mode) also i can archive and export for in house BUT it crashes every time.

BrianBatchelder commented 7 years ago

We think our resource bundle is missing from your IPA. Can you please check? Can you also verify that it runs correctly in dev mode, and that the crash is only occurring with your release version?

fryossi commented 6 years ago

You were right! I couldn't find the resources in the ipa file. I had to pod install after adding the new build configuration. Thanks!

rlepinski commented 6 years ago

Glad its working!