Cordova 3.4 iOS white screen after splash

后端 未结 1 1600
慢半拍i
慢半拍i 2020-12-03 05:43

I have been looking around at a few different posts on here concerning this issue and nothing has solved my problem.

After my splash screen loads and displays for ~2

相关标签:
1条回答
  • 2020-12-03 06:32

    I have the same problem (Cordova 3.4), but I solved it here.

    It seems to be some kind of bug in CDVSplashScreen. Notice how it says in the Output that it couldn't find the image "Default-Portrait". (It should be looking for another file, "Default", not "Default-Portrait".)

    WARNING: The splashscreen image named Default-Portrait was not found

    What I did was the following:

    • Create a new splash screen named Default-Portrait@2x~iphone.png (a copy of Default@2x~iphone.png) and add it to the splash directory under Resources. (If you need to support iOS 6 you'll probably need a Default-Portrait~iphone.png file as well.) Don't just rename the file, or Xcode might not build your project due to a missing file.

    • Ensure that you also make sure that this new file is in your project list. (I didn't rebuild the project with cordova build ios so I had to drag the file from finder to the project files in Xcode. Not sure if rebuilding automatically adds it to your Xcode project.)

    This should solve your problem.

    I just switched to Xcode 5.1 and iOS 7.1 and Cordova has some issues with the new SDK as well. If you stumble upon some issues with Xcode 5.1 & iOS 7.1, I would also like to link you to the following page.

    0 讨论(0)
提交回复
热议问题