更新2:完全输出错误
1> (1 failure)
1> Failed to build app for buildNumber 4548: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/test/.taco_home/remote-builds/taco-remote/builds/4548/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,BlankCordovaApp2.xcodeproj,-target,BlankCordovaApp2,-configuration,Debug,-destination,platform=iOS,build,CONFIGURATION_BUILD_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/4548/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/4548/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/test/.taco_home/remote-builds/taco-remote/builds/4548/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,BlankCordovaApp2.xcodeproj,-target,BlankCordovaApp2,-configuration,Debug,-destination,platform=iOS,build,CONFIGURATION_BUILD_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/4548/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/4548/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/test/.taco_home/remote-builds/taco-remote/builds/4548/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,BlankCordovaApp2.xcodeproj,-target,BlankCordovaApp2,-configuration,Debug,-destination,platform=iOS,build,CONFIGURATION_BUILD_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/4548/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/4548/cordovaApp/platforms/ios/build/sharedpch - {1}
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
这是确切的错误
Severity Code Description Project File Line Suppression State
Error Error: Remote build error from the build server Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/test/.taco_home/remote-builds/taco-remote/builds/2108/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,Masjid Events.xcodeproj,ARCHS=armv7 arm64,-target,Masjid Events,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/2108/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/test/.taco_home/remote-builds/taco-remote/builds/2108/cordovaApp/platforms/ios/build/sharedpch - 1 BlankCordovaApp1 1
我已经验证了visual studio和远程构建代理之间的通信,因为部署到iOS模拟器工作正常。
我还验证了通过部署可正常工作的示例xamarin应用程序,部署到这两个设备的工作正常。
在平台下,我的目标是Cordova CLI 6.1.1。 在mac上我安装了nodejs以及xcode 8.1
我也尝试在build.json中添加以下内容但仍无法正常工作
{
"android": {
"release": {
"keystore": "",
"storePassword": "",
"alias": "",
"password": "",
"keystoreType": ""
}
},
"ios": {
"debug": {
"developmentTeam": "..."
},
"release": {
"developmentTeam": "...",
"codeSignIdentity": "iPhone Developer",
"packageType": "ad-hoc"
}
}
}
我正在部署的iphone(iphone5s)iOS 10.0.2和ipad(ipad 3)是9.3.5,请告诉我是否需要任何其他信息来帮助诊断我的问题。
在VS的Cordova项目中,我尝试部署到"远程设备"和#34;本地设备"两个设备都连接到mac。
更新: 修改了config.xml(在文本编辑器中添加)
<platform name="ios">
<hook type="before_compile" src="hooks/xcode8.js" />
</platform>
它声明要在构建项目之前添加它,这个文件没有构建项目所以我把它几乎放到顶部所以现在内容看起来像这样
<widget xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps" id="io.cordova.myapp23c92d" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" defaultlocale="en-US">
<name>BlankCordovaApp2</name>
<description>A blank project that uses Apache Cordova to help you build an app that targets multiple mobile platforms: Android, iOS, Windows, and Windows Phone.</description>
<author href="http://cordova.io" email="dev@cordova.apache.org">Apache Cordova Team </author>
<content src="index.html" />
<access origin="*" />
<vs:features />
<preference name="SplashScreen" value="screen" />
<preference name="windows-target-version" value="8.1" />
<!-- Support for Cordova 5.0.0 plugin system -->
<plugin name="cordova-plugin-whitelist" version="1" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="ios">
<hook type="before_compile" src="hooks/xcode8.js" />
</platform>
........
我还将hook文件夹和文件添加到我的root和www(不确定哪一个是它要去的)仍然无法正常工作