我正在尝试使用Visual Studio 2017(Cordova)在Windows 10上构建(远程构建)IO应用程序,但是出现构建错误:"构建失败,错误代码为65错误:xcodebild with args"
当我仔细查看Mac上的build.log文件时,它会向我显示代码签名错误:
代码签名错误:
[Application] requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor. Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.3'
我已经通过https://developer.apple.com/account/ios/profile/create手动创建了配置文件,但是如果我没有直接使用Xcode构建应用程序,如何在我的构建配置中包含该文件。
答案 0 :(得分:0)
您需要在build.json文件中包含详细信息,如下所示:
"ios": {
"debug": {
"packageType": "development",
"developmentTeam": "YOUR_DEV_TEAM_ID",
"codeSignIdentity": "iPhone Developer",
"provisioningProfile": "PROVISIONING_PROFILE_UUID"
},
"release": {
"developmentTeam": "YOUR_DEV_TEAM_ID",
"codeSignIdentity": "iPhone Developer",
"provisioningProfile": "PROVISIONING_PROFILE_UUID",
"packageType": "enterprise"
}
}
检查您用于创建配置文件的应用ID是否与config.xml文件顶部指定的ID匹配。
答案 1 :(得分:0)
将--buildFlag="-UseModernBuildSystem=0"
添加到您的build.json文件中。