Jimothey
Jimothey

Reputation: 2434

Are these missing libs causing my app to crash?

After adding some new features to my released ios ionic app I've been battling with random crashes and white screens for the last month. I'm ready to throw the towel in and remove the app from the app store and stop using ionic (which is a shame as I love it).

After pretty much a month of trying to debug, removing plugins, removing code, rebuild platform, searching stackoverflow etc etc I'm grasping at straws now.

Could anyone tell me, are these missing files in xcode (added by cordova plugins) an issue? I've found lots of conflicting reports. Could these be responsible for why my app almost constantly white screens on launch (although some times it works).

missing

I'm using xcode 7.2.1 and

My app runs fine in browser, with no console errors. It also works fine on Android which leads me to this it's either a cordova-ios issue or an xcode/ios specific issue.

I did find this: https://issues.apache.org/jira/browse/CB-10530 but after pulling in the master branch of cordova-ios i still get the whitescreens on launch most of the time.

Surely someone has had these issues?

I'm using these plugins:

White screen and xcode console:

white screen and xcode console

Thanks

Upvotes: 0

Views: 691

Answers (2)

HardikDG
HardikDG

Reputation: 6112

This may not be a perfect solution for your issue but can help you in debug the error

Ionic iOS app can be debug in the safari , in the safari developer options you can check the console error for the application, many of the white screen issues are displayed in the safari console

in Safari, Go preferences -> advanced -> Show Develop menu in menu bar. Once you've that, build and run in xcode and then in safari go Develop -> iPhone Simulator -> Your App Name

More information regarding this can be found in this url: http://phonegap-tips.com/articles/debugging-ios-phonegap-apps-with-safaris-web-inspector.html

Your app may not have iOS framework/Xcode related issue as if that was the issue the app will be crashed or some error/warning log should be display in the Xcode console

Another issue can be plugin loading, as i have recently faced some issue like plugin was working perfect in the Android but it is not working properly in iOS, it was solved by initialize plugin after deviceReady() event of cordova is called, now it working fine in iOS

Upvotes: 0

Harshal Bhavsar
Harshal Bhavsar

Reputation: 1673

Try

Removing the frameworks in red and re-add the following

 libsqlite3.tbd
 libz.tbd
 libiconv.tbd

as in xcode 7.2.1

the .dylib extensions are replced .tbd

Upvotes: 0

Related Questions