离子构建ios抛出承诺拒绝错误

时间:2019-01-04 06:57:31

标签: ios build.gradle

我正在为我的项目在新的Mac中设置构建环境。 我能够成功运行“ gulp”命令,然后运行“ ionic build android”。 生成的.apk文件按预期工作。 但是我的“ ionic build ios”抛出以下错误。

以下构建命令失败:

  

CompileXIB MyProjectDirectory /资源/ExternalFormViewController.xib   (1次失败)

CordovaError:

  

承诺被拒绝,且没有错误:'错误代码65为命令:   带有args的xcodebuild:   -xcconfig,/用户/MyProjectDirectory/Bala/InterimDirectory/ProjectFolder/ProjectSubFolder/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyProjectDirectory.xcworkspace,-scheme,MyProjectDirectory,-configuration,Debug,-sdk,iphonesimulator, -destination,platform = iOS   模拟器,名称= iPhone   X,build,CONFIGURATION_BUILD_DIR = /用户/ MyProjectDirectory / Bala / InterimDirectory / ProjectFolder / ProjectSubFolder / platforms / ios / build / emulator,SHARED_PRECOMPS_DIR = /用户/ MyProjectDirectory / Bala / InterimDirectory / ProjectFolder / ProjectSubFolder / platforms       在cli.catch.err(/ usr / local / lib / node_modules / cordova / bin / cordova:30:15)       在process._tickCallback(internal / process / next_tick.js:103:7)

1 个答案:

答案 0 :(得分:0)

XCode似乎有问题,或者某些依赖项不在预期的位置。

您可以尝试以下方法(如果由于权限原因而失败,则添加sudo):

  

npm install -g ios-deploy --unsafe-perm = true