My app is in productions an works correctly in all devices except the iPod touch, which only shows a black screen when start the app. Does any body knows which could be the problem? The iPod touch is running with the 4.2.1 iOS version. Thnks
Asked
Active
Viewed 1,622 times
7
-
is maybe something realted to the Default.png image, is the iPod using the same of iPhone? – ValentiGoClimb Jun 09 '11 at 09:16
-
I'm assuming you have a device to hand? Is there anything useful in the console? Does it enter the app delegate? – Luke Jun 09 '11 at 09:16
-
6Finally I get the solution, in MyApp-info.plist it miss the iPod MainWindow, which will use the default mainwindow.xib, now i have: ![enter image description here][1] [1]: http://i.stack.imgur.com/Fkhan.png I hope this can help somebody! – ValentiGoClimb Jun 09 '11 at 15:16
-
Happy to hear you fixed it :) – Luke Jun 09 '11 at 15:22
-
@ValentiGoClimb You should post that as an answer since it appears to be correct and the other ones are not! – Stephen Darlington Mar 15 '12 at 21:02
-
@ValentiGoClimb It is correct solution please add as answer so that others can get solution quickly thanks. – Sugan S Jan 29 '14 at 14:55
4 Answers
6
As @ValentiGoClimb mentioned in the comment, Xcode has bad defaults when generating the Info.plist file; it only sets the Storyboard keys for iPads and iPhones, not iPod Touches.
<key>UIMainStoryboardFile~ipad</key>
<string>iPadStoryboardFileName</string>
<key>UIMainStoryboardFile~iphone</key>
<string>iPhoneStoryboardFileName</string>
I haven't found a good way to edit this under the General Project settings screen in Xcode (which is why this problem most likely exists), so adding the key manually in the Info.plist file works well.
<key>UIMainStoryboardFile</key>
<string>iPhoneStoryboardFileName</string>

Community
- 1
- 1

paulrehkugler
- 3,241
- 24
- 45
0
For me, I’m using XIB
not Storyboard
.
But with Xcode 10 it’s set as “MainStoryBoard
” as Main Interface in target setting.
So I have changed from “MainStoryBoard
” to “MainWindow
” and worked for me.

Ashvin
- 8,227
- 3
- 36
- 53
0
Try this -
- Open your mainwindow's xib file
- select window in xib file
- in inspector window select first tab
- check mark the "visible at launch"
-
clear build + delete content of build folder + delete from simulator also not working?? – Saurabh Jun 09 '11 at 10:01
-
not working. Remember that I only have the problem in iPod Touch. How do you do to deploy in simulator the iPod??¿ – ValentiGoClimb Jun 09 '11 at 10:13
-
0
Your iPod is supposed to have the retina display.
so just try using Default@2x.png .
And also please make sure to have this in resources.

Ajay Sharma
- 4,509
- 3
- 32
- 59