简体   繁体   English

由于缺少文件,因此无法在iPhone Simulator上运行该应用

[英]Can't run the app on iPhone Simulator because of missing files

I've got a project with several cocoapods dependendencies. 我有一个具有几个cocoapods相关性的项目。 One of them is OpenSSL-Universal . 其中之一是OpenSSL-Universal It worked for a while until a couple of days ago. 它工作了一段时间,直到几天前。

I have cocoapods 1.7.2 and Xcode 10.2.1 and when I try to run the app on a Simulator, I get this error: 我有cocoapods 1.7.2Xcode 10.2.1 ,当我尝试在模拟器上运行应用程序时,出现以下错误:

This app could not be installed at this time. 目前无法安装此应用。

Failed to load Info.plist from bundle at path /Users/trevisil/Library/Developer/CoreSimulator/Devices/7362482B-3AF1-4419-A7FE-EB52AB22DCDC/data/Library/Caches/com.apple.mobile.installd.staging/temp.QmfWcQ/extracted/Payload/Lifepots.app/Frameworks/OpenSSL.framework 无法从路径/Users/trevisil/Library/Developer/CoreSimulator/Devices/7362482B-3AF1-4419-A7FE-EB52AB22DCDC/data/Library/Caches/com.apple.mobile.installd.staging/temp的捆绑包加载Info.plist .QmfWcQ /提取/有效载荷/Lifepots.app/Frameworks/OpenSSL.framework

I've tried to: 我试图:

  1. Clean the build folder 清理构建文件夹
  2. Download the dependencies again 再次下载依赖项
  3. Use an older version of Cocoapods 使用旧版的Cocoapods
  4. Clean the DeriveData folder 清理DeriveData文件夹
  5. Reboot the simulator 重新启动模拟器
  6. Reset the simulator 重置模拟器
  7. Reboot the laptop 重新启动笔记本电脑
  8. Try from another laptop 从另一台笔记本电脑尝试

Any other suggestion? 还有其他建议吗?

Now try to pod deintegrate and then pod integrate 现在尝试将pod deintegrate pod integrate ,然后将pod integrate

  1. Close Xcode 关闭Xcode

  2. Open terminal, select project directory and type command pod deintegrate 打开终端,选择项目目录并键入命令 pod deintegrate

  3. After above process completed in terminal type pod integrate or pod install 终端 类型 pod integratepod install中完成上述过程之后

  4. Reopen Xcode and run project 重新打开Xcoderun project

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

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