未找到有效的“开发”配置文件

时间:2015-09-18 22:07:06

标签: visual-studio visual-studio-cordova

我使用Visual Studio 2013和CTP 3.1。在我将XCode更新为7后,当我尝试构建发布时,我不断收到以下错误。建设发展工程。为什么在构建发布时甚至要求开发配置文件?

MDAVSCLI:代码签名错误:未找到匹配的配置文件:未找到有效的“开发”配置文件。

1 个答案:

答案 0 :(得分:0)

我无法弄清楚为什么会在XCode7中发生这种情况,但我通过指定身份和配置文件来解决这个问题。

To force a specific signing identity
Create a res\native\ios\cordova folder in your Cordova project.
To override the signing identity or provisioning profile for the Debug configuration, place a custom build-debug.xcconfig file in this folder, or place a build-release.xcconfig file to override the Release configuration.
The base files can be found here on github.
build-release.xcconfig has a sample of the syntax for setting a signing identity.
When creating your own xcconfig file, be sure to include the following at the top of the file:#include "build.xcconfig"
For a complete set of build settings that can be overridden, see Xcode build settings.

Source