I have upgraded macOS Sierra Developer Preview, but my XCode 7.3.1 gives below error while try to run my project on simulator. In addition Generic to archieve gives another error like:
我已经升级了macOS Sierra Developer Preview,但是我的XCode 7.3.1在尝试在模拟器上运行我的项目时给出了以下错误。另外Generic to archieve给出了另一个错误:
In addition for archive: a cryptographic verification failure has occured.
除存档外:还发生了加密验证失败。
I have tried to solve many similar topics answers on * but not help me. How Can I fix this?
我试图在*上解决许多类似的主题答案,但没有帮助我。我怎样才能解决这个问题?
I have tried before XCode 8.0 Beta, uninstall it deleting derivedData and reset content simulator but still occurs this error.
我在XCode 8.0 Beta之前尝试过,卸载它删除derivedData并重置内容模拟器,但仍然会出现此错误。
Update:
I want to share an information who want to use Sierra now. If you decide to do below changes you need to know "Uploading App Store with beta software" not allowed by Apple. Continue with El Capitan and XCode 7.3.1 for production.
我想分享想要现在使用Sierra的信息。如果您决定进行以下更改,则需要知道Apple不允许“使用测试版软件上传App Store”。继续使用El Capitan和XCode 7.3.1进行生产。
5 个解决方案
#1
11
If you want the slow solution, you can reinstall XCode 7.3.1 by downloading it from https://developer.apple.com/download/more/.
如果您想要慢速解决方案,可以从https://developer.apple.com/download/more/下载XCode 7.3.1重新安装。
It worked for me and now my Simulator is able to start again without getting the error.
它对我有用,现在我的模拟器能够重新启动而不会出现错误。
The issue is discussed in depth here: XCode "DTAssetProviderService could not start.." error, How fix this?
这个问题在这里深入讨论:XCode“DTAssetProviderService无法启动..”错误,如何解决这个问题?
#2
7
This seems to be a major bug. Until Apple fixes it, you can work around it:
这似乎是一个主要的错误。在Apple修复它之前,您可以解决它:
- Build app
- The app will still install on the simulator, even with the error
- Launch the app manually on the simulator
- Go to Xcode
- Click Debug > Attach to Process > Your App Name
该应用程序仍将安装在模拟器上,即使出现错误
在模拟器上手动启动应用程序
转到Xcode
单击Debug> Attach to Process> Your App Name
That will enable Xcode debugging features and allow your app to run in simulator. Definitely not ideal, but hopefully you can use this until a real solution comes out.
这将启用Xcode调试功能,并允许您的应用程序在模拟器中运行。绝对不理想,但希望你可以使用它直到真正的解决方案出来。
#3
5
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 supported on Sierra. If you want to use macOS Sierra, please use Xcode 8.0 beta or later.
这是macOS Sierra的一个回归,多个开发人员已经在论坛和WWDC的实验室会议中报告过。 Sierra不支持Xcode 7.3。如果您想使用macOS Sierra,请使用Xcode 8.0 beta或更高版本。
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.
如果您必须在Sierra上使用Xcode 7.3,您可以通过使用Xcode.app通过Build&Run安装应用程序来部分解决此错误,启动从命令行暂停的应用程序(xcrun simctl launch -w booted
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
请注意,此问题仅影响从Mac App Store下载的Xcode 7.3.1。如果您使用从http://developer.apple.com下载的Xcode(即“拖放安装程序”),则不会遇到此问题。请注意,使用拖放安装程序时,您可能会遇到另一个具有相同症状的问题。这在DTAssetProviderService中讨论无法使用Simulator启动DTXConnection
#4
3
You can still run the debugger, but you have to attach it manually.
您仍然可以运行调试器,但必须手动附加它。
You can run your app tapping the icon in the simulator, than switch back to Xcode and select Debug, Attach to Process and pick your app process.
您可以运行您的应用程序点击模拟器中的图标,而不是切换回Xcode并选择Debug,Attach to Process并选择您的应用程序进程。
#5
1
The following steps fixed the issue for me:
以下步骤为我解决了这个问题:
- Remove both Xcode 7.3.1 and 8 Beta
- Remove /Library/Developer and ~/Library/Developer (before removing check the contents and back up whatever you need)
- Download the Xcode 7.3.1 DMG file and the Xcode 8 Beta xip file (unless you already have them)
- Install 7.3.1 and test the Simulator (should work fine now)
- Install 8 Beta and test the Simulator in 7.3.1 again (should work as before)
- Restore what you backed up on step 2
删除Xcode 7.3.1和8 Beta
删除/ Library / Developer和〜/ Library / Developer(在删除检查内容并备份您需要的任何内容之前)
下载Xcode 7.3.1 DMG文件和Xcode 8 Beta xip文件(除非你已经有了)
安装7.3.1并测试模拟器(现在应该正常工作)
安装8 Beta并再次测试7.3.1中的模拟器(应该像以前一样工作)
恢复在步骤2中备份的内容
#1
11
If you want the slow solution, you can reinstall XCode 7.3.1 by downloading it from https://developer.apple.com/download/more/.
如果您想要慢速解决方案,可以从https://developer.apple.com/download/more/下载XCode 7.3.1重新安装。
It worked for me and now my Simulator is able to start again without getting the error.
它对我有用,现在我的模拟器能够重新启动而不会出现错误。
The issue is discussed in depth here: XCode "DTAssetProviderService could not start.." error, How fix this?
这个问题在这里深入讨论:XCode“DTAssetProviderService无法启动..”错误,如何解决这个问题?
#2
7
This seems to be a major bug. Until Apple fixes it, you can work around it:
这似乎是一个主要的错误。在Apple修复它之前,您可以解决它:
- Build app
- The app will still install on the simulator, even with the error
- Launch the app manually on the simulator
- Go to Xcode
- Click Debug > Attach to Process > Your App Name
该应用程序仍将安装在模拟器上,即使出现错误
在模拟器上手动启动应用程序
转到Xcode
单击Debug> Attach to Process> Your App Name
That will enable Xcode debugging features and allow your app to run in simulator. Definitely not ideal, but hopefully you can use this until a real solution comes out.
这将启用Xcode调试功能,并允许您的应用程序在模拟器中运行。绝对不理想,但希望你可以使用它直到真正的解决方案出来。
#3
5
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 supported on Sierra. If you want to use macOS Sierra, please use Xcode 8.0 beta or later.
这是macOS Sierra的一个回归,多个开发人员已经在论坛和WWDC的实验室会议中报告过。 Sierra不支持Xcode 7.3。如果您想使用macOS Sierra,请使用Xcode 8.0 beta或更高版本。
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.
如果您必须在Sierra上使用Xcode 7.3,您可以通过使用Xcode.app通过Build&Run安装应用程序来部分解决此错误,启动从命令行暂停的应用程序(xcrun simctl launch -w booted
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
请注意,此问题仅影响从Mac App Store下载的Xcode 7.3.1。如果您使用从http://developer.apple.com下载的Xcode(即“拖放安装程序”),则不会遇到此问题。请注意,使用拖放安装程序时,您可能会遇到另一个具有相同症状的问题。这在DTAssetProviderService中讨论无法使用Simulator启动DTXConnection
#4
3
You can still run the debugger, but you have to attach it manually.
您仍然可以运行调试器,但必须手动附加它。
You can run your app tapping the icon in the simulator, than switch back to Xcode and select Debug, Attach to Process and pick your app process.
您可以运行您的应用程序点击模拟器中的图标,而不是切换回Xcode并选择Debug,Attach to Process并选择您的应用程序进程。
#5
1
The following steps fixed the issue for me:
以下步骤为我解决了这个问题:
- Remove both Xcode 7.3.1 and 8 Beta
- Remove /Library/Developer and ~/Library/Developer (before removing check the contents and back up whatever you need)
- Download the Xcode 7.3.1 DMG file and the Xcode 8 Beta xip file (unless you already have them)
- Install 7.3.1 and test the Simulator (should work fine now)
- Install 8 Beta and test the Simulator in 7.3.1 again (should work as before)
- Restore what you backed up on step 2
删除Xcode 7.3.1和8 Beta
删除/ Library / Developer和〜/ Library / Developer(在删除检查内容并备份您需要的任何内容之前)
下载Xcode 7.3.1 DMG文件和Xcode 8 Beta xip文件(除非你已经有了)
安装7.3.1并测试模拟器(现在应该正常工作)
安装8 Beta并再次测试7.3.1中的模拟器(应该像以前一样工作)
恢复在步骤2中备份的内容