Closed cemerson closed 1 year ago
I'm not 100% sure but it feels like an issue with the storyboard/splashscreen.
Can you reproduce this with a sample hello world app, copying your splashscreen configuration? If so, share the config.xml for the sample hello world app and someone can tell you if it looks okay or if there are any problems that might explain the behaviour.
Thanks, @breautek (we meet again). I tried your idea and, sadly, my hello world app works on both iPad and iPhone using my config.xml settings. I will add the plugins one by one in case it's one of them and let you know how that goes.
Likely a dead end (?) but here's my config file fwiw:
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>Sample Apache Cordova App</description>
<author email="dev@cordova.apache.org" href="https://cordova.apache.org">
Apache Cordova Team
</author>
<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />
<preference name="AllowInlineMediaPlayback" value="true" />
<content src="index.html" />
<preference name="fullscreen" value="true" />
<preference name="backgroundColor" value="0xff073763" />
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="permissions" value="none" />
<preference name="phonegap-version" value="3.5.0" />
<preference name="AllowInlineMediaPlayback" value="true" />
<preference name="target-device" value="universal" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="false" />
<preference name="auto-hide-splash-screen" value="false" />
<preference name="SplashScreenDelay" value="4000" />
<preference name="disable-cursor" value="false" />
<preference name="ITSAppUsesNonExemptEncryption" value="no" />
<icon src="res/icon.png" />
<platform name="ios">
<icon height="57" src="res/icon/ios/icon-57.png" width="57" />
<icon height="72" src="res/icon/ios/icon-72.png" width="72" />
<icon height="114" src="res/icon/ios/icon-57-2x.png" width="114" />
<icon height="144" src="res/icon/ios/icon-72-2x.png" width="144" />
<gap:splash height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" />
<gap:splash height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
<gap:splash height="1136" src="res/screen/ios/screen-iphone-portrait-568h-2x.png" width="640" />
<gap:splash height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" />
<gap:splash height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />
<config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
<string>You can upload your profile picture using your Photo Library</string>
</config-file>
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
<string>You can upload your profile picture using your camera</string>
</config-file>
<config-file parent="ITSAppUsesNonExemptEncryption" platform="ios" target="*-Info.plist">
<string>NO</string>
</config-file>
<preference name="AllowUntrustedCerts" value="on" />
<preference name="InterceptRemoteRequests" value="all" />
<preference name="NativeXHRLogging" value="full" />
</platform>
</widget>
Just FYI @breautek I added all the same plugins to the hello world app but sadly iPad works fine still. I'll keep trying to find a loose thread to follow and will report back if I find anything.
FYI after running out of any other ideas I did the old (annoying!) "rm platform ios", "add platform ios" thing and after that it appears iPad is now working (?!). I never found the actual culprit but I'll close this ticket as it looks like something was just screwy and needed a reset of some kind. Thank you again for your earlier reply.
Bug Report
Problem
My app fails crashes with a NSInternalInconsistencyException (or NSBundle) error on startup on iPad (device and iOS simulator) but works fine on iPhone (device and simulator).
App DOES loads up fine on iPhone 7-14 on iOS simulator or device:
App DOES NOT load up on iPad on iOS simulator or device:
What is expected to happen?
What does actually happen?
Information
Log from an iPad run crash (same for device or iOS simulator):
Here's a screenshot of what XCode displays when the crash occurs - no idea what I'm looking at here:![image](https://user-images.githubusercontent.com/1080397/232831606-77853bd3-9e01-4f71-9181-1e36e3859d95.png)
Also side note/FYI - the app still works fine on Android
Command or Code
No code changes between when the app works or doesn't work - it's simply based on which iOS iPhone Simulator I use
Environment, Platform, Device
Version information
Checklist
PS: Sorry to post another issue again so soon - hoping this isn't another user-error (like my last which @breautek was so kind to help me sort out) but apologies in advance if so.