Xcode 7 or 8 issue with Pods, can't run at all

2019-06-17 22:49发布

Getting this error for pods in Xcode when trying to run app:

error: A cryptographic verification failure has occurred.

  • Tried reinstalling Pods/repo
  • Reinstalling Xcode(s)
  • Also doesn't run on simulators:

DTAssetProviderService could not start DTXConnection with Simulator

Also, running Sierra at the moment (yes, I know).

4条回答
Rolldiameter
2楼-- · 2019-06-17 23:39

If you have reinstalled CocoaPods so that it updated from a version that is lower than 1.0.0 to 1.0.0 or above it can't hurt to delete your DerivedData folder of the project that is having problems. I don't know why it fixes a lot of bugs when above scenario is the case, but it does! You can do this by going to: Window -> Projects

Select projects

Then select your project on the left (It was my "Piece" project for me)

enter image description here

Then click the delete button

Hope this helps you out!

查看更多
成全新的幸福
3楼-- · 2019-06-17 23:43

I got mine working now!! Not really sure what I did, at all, but I just deleted the Xcode 8 .app entirely and then I redownloaded it, opened up my project in it, did a pod install and pod update, and it's running in the simulator just like normal! Not sure what I did at all, but redownloading is worth a try, it is in fact possible to fix.

查看更多
乱世女痞
4楼-- · 2019-06-17 23:43

This is a regression in macOS Sierra that multiple developers have reported in the forums and in the lab sessions at WWDC. Xcode 7.3 is not officially supported on Sierra. If you want to use macOS Sierra, please use Xcode 8.0 beta or later.

If you must use Xcode 7.3 on Sierra, you can partially workaround this bug by using Xcode.app to install the app through Build & Run, launch the app suspended from the command line (xcrun simctl launch -w booted <app identifier>) and then attach with the debugger and resume the suspended process.

Note that this issue only impact Xcode 7.3.1 downloaded from the Mac App Store. You will not hit this issue if you use Xcode downloaded from http://developer.apple.com (ie, the "drag & drop installer"). Note that you might hit another issue with the same symptoms when using the drag & drop installer. That is discussed in DTAssetProviderService could not start DTXConnection with Simulator

查看更多
Ridiculous、
5楼-- · 2019-06-17 23:55

Launch "Keychain Access", go to "Preferences..." and click "Reset My Default Keychain". After that I was finally able to build my projects.

查看更多
登录 后发表回答