Cordova远程ios构建失败,macincloud错误:65

时间:2016-09-19 12:16:11

标签: ios cordova visual-studio-2015 compiler-errors

我正在为我的一个cordova应用程序制作一个远程ios版本,而且我总是收到错误。

1- Create a new cordova project in visual studio. 
2- Deleted all plugins. (include Whitelist)
3- Build solution.
4- Then got error 65 .

/ cordova / build / tasks / 22262 / log line使用macincloud获取错误和visual studio编译器。 安全模式是错误的。

1>  Check dependencies
1>  Signing for "BlankCordovaApp3" requires a development team. Select a development team in the project editor.
1>  Code signing is required for product type 'Application' in SDK 'iOS 10.0'

1>  ** BUILD FAILED **
1>
1>
1>  The following build commands failed:
1>      Check dependencies
1>  (1 failure)
1>  Failed to build app for buildNumber 22262: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/cordova/build-release.xcconfig,-project,BlankCordovaApp2.xcodeproj,ARCHS=armv7 arm64,-target,BlankCordovaApp2,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/build/sharedpch
1>MSBUILD : cordova-build error : Error: Remote build error from the build server Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/cordova/build-release.xcconfig,-project,BlankCordovaApp2.xcodeproj,ARCHS=armv7 arm64,-target,BlankCordovaApp2,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/build/sharedpch - 1
1>  Error Remote build error from the build server Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/cordova/build-release.xcconfig,-project,BlankCordovaApp2.xcodeproj,ARCHS=armv7 arm64,-target,BlankCordovaApp2,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/user120288/.taco_home/remote-builds/taco-remote/builds/22262/cordovaApp/platforms/ios/build/sharedpch - {1}

1 个答案:

答案 0 :(得分:0)

你需要做一些额外的配置才能让Cordova与Xcode 8和iOS 10一起使用。我写了一篇关于我用来解决这个问题的解决方法: https://dpogue.ca/articles/cordova-xcode8.html

总结一下,您需要指定开发人员团队ID。在Cordova-iOS的下一个版本中,您可以在build.json文件中使用developerTeam执行此操作。在此期间我有一个钩子。

您还需要将代码签名标识设置为“iPhone Developer”,即使是发布版本也是如此。在build.json中使用codeSignIdentity执行此操作。

您不需要指定配置文件,Xcode会在拥有团队ID时自动处理。

希望有所帮助!