Hi support,
I am using ipad 2 with iOS 8.3.
The oneAll framework works perfect on simulator but is crashing when we install the app on iPad. Following is the error message after crash.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (not yet loaded)' with name 'OALoginViewController''
*** First throw call stack:
(0x26b505a7 0x34bb5c77 0x26b504ed 0x2a4133b9 0x2a3319b7 0x2a1707d5 0x2a054951 0x2a0548d5 0x2a34ce19 0x2a322e8b 0x2a320f29 0x2a0ce4dd 0x2a04a5cb 0x26b17275 0x26b14959 0x26b14d5b 0x26a61b51 0x26a61963 0x2df7e1a9 0x2a0b3c91 0x4021b 0x3515eaaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
please respond.
Awais.
Answers
Please, make sure you've completed the Add Resources step when setting up the project.
I think, this should solve your problem.
Keep us posted if this is solved for you.
Thank you,
It works fine in simulator and iPhone device. But crashes in iPad device.
I have downloaded latest code of oneall. from github but there is no complied nib file for iPad. and there is a complied nib file of iPhone. Thats why iphone device works fine. But iPad crashes bcz there is no complied nib file.
Below is the list of files which are there in OneAllResources.bundle.
Please note that there is no nib file for iPad such as OALoginViewController~iPad.nib
/**************/
button-close.png
button-close@2x.png
button-login-amazon.png
button-login-blogger.png
button-login-devianart.png
button-login-disqus.png
button-login-facebook.png
button-login-foursquare.png
button-login-github.png
button-login-google.png
button-login-instagram.png
button-login-linkedin.png
button-login-livejournal.png
button-login-mailru.png
button-login-msn.png
button-login-myspace.png
button-login-odnoklassniki.png
button-login-openid.png
button-login-paypal.png
button-login-reddit.png
button-login-skyrock.png
button-login-stackexchange.png
button-login-steam.png
button-login-twitch.png
button-login-twitter.png
button-login-vimeo.png
button-login-vkontakte.png
button-login-windowslive.png
button-login-wordpress.png
button-login-yahoo.png
button-login-youtube.png
Info.plist
OALoginViewController~iphone.nib
OAWebLoginViewController.nib
/************/
Please look into this issue asap.
Thanks
Awais.
First of all, sorry for slow responses. It is a long weekend here.
The SDK is platform agnostic and should support iPhone as well as iPad. If you look into XCode project for the SDK, you'll see that there is one file for OALoginViewController which is not split into iPad/iPhone versions.
In order to help you, I will need to understand better your environment. Are you working on a sample app or your own application?
Also, try to remove OneAllResourcesBundle.bundle from Copy Bundle Resources of Build Phases and add it back again.
Feel free to contact me on Google Talk (urkheh) or on Skype (urkheh), so we'll be able to solve this as quick as possible with direct interaction. Though... I will be fully online starting Sunday morning (~7am UTC).
Scrap my last comment. I was able to reproduce the issue on one of my devices and will solve it ASAP.
Regards,
Thanks for the reply. We have re-downloaded oneall sourecode for github and checked on iPad device. It is now working as expected.
Thanks one again.
Awais.