首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Visual Studio TACO中构建iOS remote失败

在Visual Studio TACO中构建iOS remote失败
EN

Stack Overflow用户
提问于 2015-11-19 06:29:01
回答 2查看 1.2K关注 0票数 1

我在Windows7中用Visual Studio2015开发了cordova应用程序。

Mac上的节点版本为v5.1.0。

在Mac上运行remotebuild时,从Visual Studio开始构建。

在模拟器模式下,它似乎可以正确构建(msk.test.build.app是在‘platforms/ios/ build / emulator’中创建的。)

在设备模式下,构建失败,错误如下。

我发现‘platform/ios/build/device’没有创建,但不知道如何修复。

代码语言:javascript
复制
Submitting new build request to: https://Macintosh.local:3000/cordova/build/tasks?command=build&vcordova=5.4.0&cfg=debug&options=--device&buildNumber=1403&loglevel=warn
------ new build: {"command":"build","vcordova":"5.4.0","cfg":"debug","options":"--device","buildNumber":"1403","loglevel":"warn","status":"Uploaded","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildLang":"ja-JP","buildDir":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403","logLevel":0,"submissionTime":"2015-11-18T21:38:43.650Z","changeList":null,"buildSuccessful":false,"messageArgs":null,"message":"Uploaded build request payload.","tgzFilePath":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403/upload_1403.tgz","appDir":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403/cordovaApp","statusTime":"2015-11-18T21:38:43.652Z"}

  error - Build failed with error Command failed: /bin/sh -c xcrun -v -sdk iphoneos PackageApplication platforms/ios/build/device/msk.test.build.app -o /Users/User/.taco_home/remote-builds/taco-remote/builds/1403/cordovaApp/platforms/ios/build/device/BuildTest2.ipa
  xcrun: note: PATH = '/Users/User/.taco_home/node_modules/taco-remote-lib/1.2.0/node_modules/taco-remote-lib/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:”/Applications/Adobe'
  xcrun: note: SDKROOT = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk'
  xcrun: note: TOOLCHAINS = ''
  xcrun: note: DEVELOPER_DIR = '/Applications/Xcode.app/Contents/Developer'
  xcrun: note: XCODE_DEVELOPER_USR_PATH = ''
  xcrun: note: xcrun_db = '/var/folders/_4/x16l03kx0mxbgd6w_5zp0y5w0000gn/T/xcrun_db'
  xcrun: note: xcrun via PackageApplication (xcrun)
  xcrun: note: database key is: PackageApplication|/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk||/Applications/Xcode.app/Contents/Developer|
  xcrun: note: lookup resolved in '/var/folders/_4/x16l03kx0mxbgd6w_5zp0y5w0000gn/T/xcrun_db' : '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'
MDAVSCLI : error : Specified application doesn't exist or isn't a bundle directory : 'platforms/ios/build/device/msk.test.build.app'

我在Mac上试用了node@0.12.7,效果更好,谢谢!

but运行良好,在Windows/Mac上都创建了.ipa,但停止在通过USB连接到Windows的iphone上安装应用程序。

Visual Studio输出控制台显示如下(单词可能不同,因为我的是日语)。

代码语言:javascript
复制
 :
 :
1>  ------ copying to project: iOS
2>------ start configuration: project: MSK App, composition:Debug iOS ------
EN

回答 2

Stack Overflow用户

发布于 2015-11-20 02:46:12

您的Node版本与Cordova 5.4之间存在兼容性问题。我们正在对远程构建和Visual Studio进行修复,以解决其中的一些问题,但同时我建议您降级到Cordova 5.3,并使用Node的早期版本(4.2.2应该可以)。这应该可以解决这个问题。

(披露:我在Microsoft的Visual Studio中为Apache Cordova开发工具)

票数 1
EN

Stack Overflow用户

发布于 2015-11-20 09:52:42

here中记录了节点版本4以上和Cordova <= 5.3.3的已知问题。此外,我们也看到了Cordova 5.4的问题,并建议按照Michael的建议降级。

具体看一下-

将Cordova与Node.js 5.0.0+和Cordova 5.3.3及更低版本配合使用时,

  • Build不执行。当使用Cordova < 5.3.3和Node.js 4.0.0+

为iOS生成时,Cordova Build挂起或不执行

Subhag Oak (Microsoft)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33791687

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档