iOS validation got Main_iPhone~iphone.storyboardc

2019-04-04 06:25发布

I am trying to distribute my iOS app, and I got the following error message during xCode validation. "storyboard file 'Main_iPhone~iphone.storyboardc' was not found please ensure the specified file is included in the bundle with any required device modifiers appended to the filename". Need some advices...

标签: ios xcode5
8条回答
在下西门庆
2楼-- · 2019-04-04 06:44

Remove the storyboard from the plist file if you use iPad

<key>UIMainStoryboardFile</key>
<string>Main</string>

or if you use iPhone

<key>UIMainStoryboardFile~ipad</key>
<string>Main</string>
查看更多
Rolldiameter
3楼-- · 2019-04-04 06:44

Thanks, this helped me too.

I modified the ProgramFile-Info.plist under the Supporting Files folder. I found two columns with Main storyboard file base name. I deleted the iPad one that I was getting the error on and then I was able to submit.

查看更多
等我变得足够好
4楼-- · 2019-04-04 06:46

Using xCode 6.0.1 I got this error. None of the other solutions listed here fixed it. I resolved it by deleting the storyboard in question from the project (Removing references only -- not moving to trash), then putting it back in via Add Files.

查看更多
Luminary・发光体
5楼-- · 2019-04-04 06:47

Editing the plist file solved it for me.

  • Go to Targets -> Info
  • To delete a field, hover over the up/down arrow icon next to the key you want to delete, and press the minus.
  • Or, if you need to add a field, hover over any up/down icon and press the plus.

I had a bug where it was looking for an iPad storyboard, even though I was only targeting iPhones. I simply had to delete the corresponding key/value pair from here.

查看更多
欢心
6楼-- · 2019-04-04 06:52

You can just write the exact name of the storyboard according to apple guidelines default name is :- Main_iPhone.storyboard but i think you can change the name of the storyboard default to 'Main_iPhone~iphone.storyboardc' but they find the default name of storyboard in the bundle.

查看更多
聊天终结者
7楼-- · 2019-04-04 06:57

I solved it by going to Target -> Build Phases -> Copy bundle resources, and add the Main_iPhone.storyboard file.

查看更多
登录 后发表回答