【问题标题】:Build Failed in ionic 2 for IOS在 IOS 的 ionic 2 中构建失败
【发布时间】:2018-07-31 08:16:49
【问题描述】:

运行ionic cordova build ios会导致如下错误:

Preparing Firebase on iOS
IOS project Code Sign Entitlements now set to: LifeBuddy/Resources/LifeBuddy.entitlements
Entitlements file is in reference section.
Error: ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy'

[ERROR] An error occurred while running cordova build ios (exit code 1).

运行建议的命令 npm install -g ios-deploy 时,我收到此错误:

The following build commands failed:
        Check dependencies
        Write auxiliary files
(2 failures)
npm ERR! code ELIFECYCLE
npm ERR! errno 65
npm ERR! ios-deploy@1.9.3 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
npm ERR! Exit status 65
npm ERR! 
npm ERR! Failed at the ios-deploy@1.9.3 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dev-13/.npm/_logs/2018-07-31T08_07_03_860Z-debug.log

【问题讨论】:

  • 您在哪台机器上构建您的应用程序? Mac 还是 Windows?
  • @CodeChanger 在 Mac 机器上

标签: ionic-framework ionic2 npm-install


【解决方案1】:

试试这个, sudo npm install -g ios-deploy --unsafe-perm=true

【讨论】:

  • 我收到此错误 = 错误:命令的错误代码 65:xcodebuild with args: -xcconfig,/PATH/platforms/ios/cordova/build-debug.xcconfig,-workspace,PROJECTNAME.xcworkspace ,-scheme,PROJECTNAME,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,PROJECTNAME.xcarchive,archive,CONFIGURATION_BUILD_DIR=/PATH/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/PATH
  • 您的构建机器上是否有开发配置文件。项目是否在模拟器上运行。
猜你喜欢
  • 2016-10-03
  • 1970-01-01
  • 2019-05-27
  • 2018-06-07
  • 1970-01-01
  • 2019-07-28
  • 1970-01-01
  • 1970-01-01
  • 2019-06-19
相关资源
最近更新 更多