无法 运行 模拟器 操作无法完成。 (LaunchServicesError 错误 0。)

Unable to run the Simulator The operation couldn’t be completed. (LaunchServicesError error 0.)

我正在尝试 运行 IOS9 iphone 6 应用程序 Xcode 7 和 swift 2.0,但我做不到。 如果我重置内容和模拟器设置,第一次有效但第二次再次失败,我清理了应用程序,清理了构建文件夹,我尝试将 NSAllowsArbitraryLoads 键设置为是,抱歉,但我有一个头痛寻找发生了什么事。感谢帮助

coresimulator.log 中的错误是

    07/10/15 21:51:02,800 com.apple.CoreSimulator.CoreSimulatorService[410]: 
Error Domain=LaunchServicesError Code=0 "(null)" 
UserInfo={Error=PackagePatchFailed, 
ErrorDescription=Could not hardlink copy
 /Users/edu/Library/Developer/CoreSimulator/Devices/F25180D1-32CD-47E0-9823-D1626546D660/data/Containers/Bundle/Application/7E6A0B88-3B33-435F-A645-3367B6F47154/vippler.app.ios.app 
to /Users/edu/Library/Developer/CoreSimulator/Devices/F25180D1-32CD-47E0-9823-D1626546D660/data/Library/Caches/com.apple.mobile.installd.staging/temp.LDNqVX/extracted/Payload/vippler.app.ios.app 
with manifest /Users/edu/Library/Developer/CoreSimulator/Devices/F25180D1-32CD-47E0-9823-D1626546D660/data/Library/Caches/com.apple.mobile.installd.staging/temp.LDNqVX/extracted/com.apple.deltainstallcommands.com.Bitamine.vippler-app-ios}

info.plist 的截图是

从屏幕截图中可以清楚地看出,您的 Info.plist 缺少 CFBundleVersion ("Bundle Version") 密钥。如果缺少该密钥,可能会导致此问题。

根据错误描述 错误=PackagePatchFailed, ErrorDescription=无法硬链接复制 我们会说编译器找不到框架、图像等资源的路径。但主要问题可能是 Pod。所以尝试按照以下步骤删除所有缓存文件

  1. 命令换档 G
  2. 粘贴此路径/Library/Developer/Xcode/DerivedData
  3. 删除相关发现者
  4. 重置模拟器的内容和设置
  5. 重新编译项目

干杯

与 "NSAllowsArbitraryLoads"

一起在传输安全中进行例外处理

更改整个项目根目录路径似乎对我有用