繁体   English   中英

模拟器无法安装应用程序

[英]Simulator Failed to Install Application

过去几天我一直在研究我的应用程序,我一直能够模拟它。 今天,我编译并运行,没有错误或警告,但在XCode的底部有一条消息说

> Error From Debugger: Failed to launch
> simulated application: iOS Simulator
> failed to install application

这是在尝试再次“构建并继续”后弹出的内部错误窗口,

文件:/SourceCache/IndigoDebuggingPlugin/IndigoDebuggingPlugin-44/iPhoneSimulatorDevice/XCiPhoneSimulatorDevice.m行:341对象:方法:_launchSimulatedExecutable:

断言失败:nil == _currentSimulatorSession

我在互联网上寻求帮助,我尝试手动删除我的构建文件夹,清理和构建,我最近刚刚完全重新安装了XCode和整个SDK。

此外,当打开此项目退出XCode时,它会在错误消息中给出我:

无法关闭项目

原因:/SourceCache/iPhoneSimulatorRemoteClient/iPhoneSimulatorRemoteClient-18/Source/DTiPhoneSimulatorSession.m:147中的ASSERTION FAILURE详细信息:requestEndWithTimeout:在失败的会话中调用。 宾语:
方法:-requestEndWithTimeout:Thread:{name =(null),num = 1} Backtrace:0 0x00043888 - [DTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:](在DevToolsFoundation中)1 0x00043518 _DTAssertionFailureHandler(在DevToolsFoundation中)2 0x1e06f807 - [DTiPhoneSimulatorSession requestEndWithTimeout:](在iPhoneSimulatorRemoteClient)3 0x1d8a5ca9 4 0x00826b95 - [PBXDebugSessionModule stopLaunchSession](在DevToolsInterface)5 0x008243c8 - [PBXDebugSessionModule closeModule](在DevToolsInterface)6 0x9973017d - [NSArray的makeObjectsPerformSelector:](在的CoreFoundation)7 0x0077f6ea - [PBXModule closeModule](在DevToolsInterface中)8 0x9973017d - [NSArray makeObjectsPerformSelector:](在CoreFoundation中)9 0x0077f6ea - [PBXModule closeModule](在DevToolsInterface中)10 0x9973017d - [NSArray makeObjectsPerformSelector:](在CoreFoundation中)11 0x0099a188 - [XCPerspectivesSpecification closeAllModules] (在DevToolsInterface中)12 0x9973017d - [NSArray makeObjectsPerform 选择器:](在CoreFoundation中)13 0x0076468e - [PBXProjectDocument mainModuleShouldClose:](在DevToolsInterface中)14 0x00998bf6 - [XCPerspectiveModule windowShouldClose:](在DevToolsInterface中)15 0x000099a1 16 0x00007297 17 0x95b8d522 - [NSApplication _docController:shouldTerminate:](在AppKit中)18 0x95b8d048 - [NSDocumentController(NSInternal)_continueTerminationHavingClosedAllDocuments:context:](在AppKit中)19 0x95b8ce26 - [NSDocumentController(NSInternal)_shouldTerminateWithDelegate:shouldTerminateSelector:](在AppKit中)20 0x95b8c6ff - [NSApplication _shouldTerminate](在AppKit中)21 0x95b8c271 - [NSApplication te

我不知道接下来该做什么,任何帮助将不胜感激。

当我在模拟器中测试我的应用程序时,我遇到了这个问题。 Xcode 5,app适用于iOS 5.1,通过当前的iOS 7.0.2 - Xcode可以在iOS 7模拟器上构建和运行,但无法在iOS 6.1模拟器上安装该应用程序。 我解决这个问题的步骤是

  1. 搜索stackoverflow并阅读有关此问题的所有评论;
  2. 让iOS模拟器显示系统日志并在Xcode尝试构建并在iOS 6.1模拟器上运行时观察日志;
  3. 请注意日志中的这条重要消息: installd[1106]: 0xb0115000 delta_copy: Problem copying package delta
  4. 转到iOS模拟器并从“设备”中删除应用程序的iOS 7版本(长按应用程序图标,然后单击(X)删除选项卡),
  5. 使用模拟器成功构建并运行。

在模拟器应用程序中选择ios模拟器菜单,然后选择重置内容和设置。 这应该做。

我遇到了同样的问题,几个小时后我将Info.plist文件看作纯文本。 由于某种原因,CFBundleIdentifier值已更改,并附加了一些代码签名错误的文本。 我删除了,一切都恢复正常。 我希望这会对某人有所帮助。

我遇到了同样的问题,结果证明@Michael是对的。

我最近重新创建了我的Xcode项目(现在我正在使用Xcode 5.1)并将Info.plist和本地化资源(如en.proj)添加到'Resources'组中,这就是问题所在。

我遵循其他说明,如重置模拟器内容和设置,设置镜头BundleId,删除应用程序,但问题一再发生。 每次运行应用程序时我都必须删除我的应用程序,这非常烦人。

从“资源”中删除这些文件解决了这个问题。

我之前发生过这种事。

原来我的目标是将主要的info.plist文件复制到捆绑资源中。 当我取消选中info.plist时,一切正常。

也就是说,我认为有很多事情会导致这个问题。

暂无
暂无

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

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