xcode 错误:您不能从游戏中删除 Unity 启动画面
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28658272/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error: You are not allowed to remove the Unity splash screen from your game
提问by Boris
I'm trying to run my Unity game in Xcode. When 'Device SDK' is configured in the Unity iOS player setting, everything is fine. But when I switch to 'Simulator SDK' (to use the iOS simulator), the following error occurs in Xcode on startup of my game:
我正在尝试在 Xcode 中运行我的 Unity 游戏。当在 Unity iOS 播放器设置中配置“设备 SDK”时,一切正常。但是当我切换到“模拟器 SDK”(使用 iOS 模拟器)时,在我的游戏启动时 Xcode 中出现以下错误:
You are using Unity iPhone Basic. You are not allowed to remove the Unity splash screen from your game.
您正在使用 Unity iPhone Basic。您不得从游戏中删除 Unity 启动画面。
Due to this error the game crashes on startup. I didn't change anything regarding the splash screen in my Unity player settings. So what could be the cause of this problem? I found some results on Google regarding this error, but none seems to help...
由于此错误,游戏在启动时崩溃。我没有在我的 Unity 播放器设置中更改任何有关启动画面的内容。那么这个问题的原因可能是什么?我在谷歌上找到了一些关于这个错误的结果,但似乎没有帮助......
PS: I'm using Unity 4.6.3 and Xcode 6.1.1 Those should be the latest versions available.
PS:我使用的是 Unity 4.6.3 和 Xcode 6.1.1 这些应该是可用的最新版本。
回答by mowentian
i found a solusion bellow:
我在下面找到了一个解决方案:
For anyone else experiencing this issue:
对于遇到此问题的其他人:
- Make a build.
- In xCode - select Unity-iPhone target from your Targets list and select the Info tab.
- Delete the key UILaunchStoryboardName~iphonefrom the Custom iOS Target Properties.
- Try again, it should work fine.
- 进行构建。
- 在 xCode 中 - 从目标列表中选择 Unity-iPhone 目标,然后选择信息选项卡。
- 从自定义 iOS 目标属性中删除键UILaunchStoryboardName~iphone。
- 再试一次,它应该可以正常工作。
回答by IOZO
On Unity 4.6.3f1 I have the same issue. It works fine if I delete the key UILaunchStoryboardName~iphone to run the game as suggested.
在 Unity 4.6.3f1 上我有同样的问题。如果我删除密钥 UILaunchStoryboardName~iphone 以按照建议运行游戏,它工作正常。
Choosing to append or replace does not make any difference for me.
选择附加或替换对我来说没有任何区别。
回答by izeed
I am having the same setup and problem - i resolved it by rolling back Unity to previous version (i didn't delete it). 4.6.0 works fine.
我有相同的设置和问题 - 我通过将 Unity 回滚到以前的版本来解决它(我没有删除它)。4.6.0 工作正常。
回答by Ankur Jain
There seems to be a new error introduced in unity v4.6.1 and is reproducible in v-4.6.3
似乎在 unity v4.6.1 中引入了一个新错误,并且可以在 v-4.6.3 中重现
While creating the build you should not append but do a replace. Maybe this would fix the issue instead of rolling back to a previous version.
在创建构建时,您不应该追加而是进行替换。也许这会解决问题,而不是回滚到以前的版本。