简体   繁体   English

iOS模拟器无法成功构建安装应用程序消息

[英]iOS Simulator failed to install the application msg with successful build

I have a Problem with xcode in running the app in simulator. 我在模拟器中运行应用程序时遇到xcode问题。

  • There are no warnings/errors in the code. 代码中没有警告/错误。
  • The build is success full in simulator. 在模拟器中构建成功。

Problem : 问题:
After the success full build, xcode shows a message saying "iOS Simulator failed to install the application." 成功完整构建后,xcode显示一条消息,内容为“ iOS Simulator未能安装该应用程序。”

Actions : result : 动作:结果:

  • On google search i got similar problems reported with following solutions : 在谷歌搜索上,我得到了类似的问题,报告以下解决方案:
    1. Reset Content and settings " for iOS simulator " : not success full in my case 重置“ iOS模拟器”的内容和设置:就我而言,未完全成功
    2. Close and restart Xcode : not success full in my case 关闭并重新启动Xcode:就我而言,不成功
    3. Restarting Mac : not success full in my case. 重新启动Mac:就我而言,并不成功。
    4. Cleaning the build DIRECTORY by "cmd+shft+k" : not success full in my case. 用“ cmd + shft + k”清理构建目录:就我而言,这并不成功。

xcode version : 5.1.1 xcode版本:5.1.1
mac OS version : 10.9 mac OS版本:10.9
iOS version used in simulator : 7.1 模拟器中使用的iOS版本:7.1

Any Suggestion Would be a great help. 任何建议将是一个很大的帮助。 Thanks in Advance. 提前致谢。

Thanks every one for the help and suggestions, 谢谢大家的帮助和建议,

I just solved the problem by reinstalling xcode from the app store. 我只是通过从应用商店重新安装xcode来解决了这个问题。

There could be many reason. 可能有很多原因。 it's not clear from your question still you can try following 从您的问题尚不清楚,您仍然可以尝试关注

1> make sure you do not have any long task running on your main thread in didFinishLaunchingWithOptions 1>确保在didFinishLaunchingWithOptions主线程上没有运行任何长任务

2> try with different simulator 2>尝试使用其他模拟器

3> Try after deleting derived data 3>删除派生数据后尝试

4> Try it in device if possible. 4>尽可能在设备中尝试。 If it works on device than you do not need to worry. 如果它可以在设备上运行,则无需担心。 Probably it's intermittent issue and will be resolve. 可能是间歇性问题,将得到解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM