我使用 VS2015 开发 Cordova。
最近我更新Xcode并在构建ios时收到以下错误
Signing for "BlankCordovaApp10" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0'
然后我看到了这个解决方案Code Sign Error on Xcode 8 and iOS 10 Cordova Project
但是按照其中的说明进行了以下3个步骤后,仍然出现相同的错误。
有人可以帮助阐明如何在 VS2015 Cordova 中应用它吗?
一旦您在 Mac 中更新 Xcode 并在 VS2015 cordova 中构建 ios 应用程序,您就可以复制它。
谢谢。
最佳答案
如果您使用 4.3.0 之前的 cordova-ios 版本,请查看此处:Cordova builds with Xcode 8
我已经解决了上面链接中报告的钩子(Hook)(this one)。
Development Team
Cordova-iOS 3.4.0 allows specifying a developmentTeam in build.json, which will be used to populate the DEVELOPMENT_TEAM setting. You do not need the hook if you're using Cordova-iOS 4.3.0.
If you're using an older version, I've written a hook that you can add to your project. Save that file in your hooks folder, and reference it in your config.xml:
<platform name="ios"> <hook type="before_compile"> <src="hooks/xcode8.js" /> </platform>
关于visual-studio-2015 - Visual Studio 2015 Cordova : Code Sign Error on Xcode 8 and iOS 10 Cordova Project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39727918/