【问题标题】:Ionic build failed for iOSiOS 的 Ionic 构建失败
【发布时间】:2019-05-27 13:10:37
【问题描述】:

我正在尝试为 ionic 应用程序的 iOS 构建,但是当我添加平台时,它给了我以下错误:

ionic cordova platform add ios
> cordova platform add ios --save
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
    Path: platforms/ios
    Package: io.enigmatex.lapulga
    Name: Lapulga
iOS project created with cordova-ios@4.5.5
Installing "cordova-plugin-actionsheet" for ios
Installing "cordova-plugin-add-swift-support" for ios
Installing "cordova-plugin-device" for ios
Installing "cordova-plugin-dialogs" for ios
Installing "cordova-plugin-facebook4" for ios
Installing "cordova-plugin-ionic-webview" for ios
Installing "cordova-plugin-nativegeocoder" for ios
Plugin dependency "cordova-plugin-add-swift-support@1.7.1" already fetched, using that version.
Dependent plugin "cordova-plugin-add-swift-support" already installed on ios.
Installing "cordova-plugin-network-information" for ios
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
Installing "cordova-plugin-telerik-imagepicker" for ios
Installing "cordova-plugin-uniquedeviceid" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-sms-plugin" for ios
Installing "ionic-plugin-keyboard" for ios
Installing "mx.ferreyra.callnumber" for ios
Installing "uk.co.workingedge.phonegap.plugin.launchnavigator" for ios
Plugin dependency "cordova-plugin-actionsheet@2.3.3" already fetched, using that version.
Dependent plugin "cordova-plugin-actionsheet" already installed on ios.
Plugin dependency "cordova-plugin-dialogs@2.0.1" already fetched, using that version.
Dependent plugin "cordova-plugin-dialogs" already installed on ios.
Discovered plugin "call-number" in config.xml. Adding it to the project
Plugin "mx.ferreyra.callnumber" already installed on android.
Plugin "mx.ferreyra.callnumber" already installed on ios.
Adding mx.ferreyra.callnumber to package.json
Saved plugin info for "mx.ferreyra.callnumber" to config.xml
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...
Error: Command failed: /Data/Other Projects/Updated Project/lapulga/platforms/android/cordova/version
/bin/sh: /Data/Other: No such file or directory

    at ChildProcess.exithandler (child_process.js:288:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:599:12)
[ERROR] An error occurred while running subprocess cordova.

        cordova platform add ios --save exited with exit code 1.

        Re-running this command with the --verbose flag may provide more 
        information.

系统信息:

Ionic:

   ionic (Ionic CLI)  : 4.6.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.1, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-webview 2.2.5, (and 13 other plugins)

System:

   NodeJS : v10.8.0 (/usr/local/bin/node)
   npm    : 6.5.0
   OS     : macOS Mojave
   Xcode  : Xcode 9.4.1 Build version 9F2000

一开始它给了我一个谷歌地图的错误和一个信号,然后我删除它们,然后它给了我这个错误

我只想拥有我将上传到 Apple 应用商店的 iOS 版本。过去 4 天我一直坚持这个问题,但没有找到任何可行的解决方案。

P.S : 我不是 ionic 开发者,我只需要上传这个和应用程序。

【问题讨论】:

    标签: ios cordova ionic-framework ionic3


    【解决方案1】:

    路径中的空格似乎存在问题。我会将项目移动到路径中没有空格的目录,然后重试。

    【讨论】:

    • 谢谢,这行得通!现在请告诉我如何再次添加 google maps 和 onesignal,我尝试了以下操作,但它给了我错误:cordova plugin add googlemaps Cannot find plugin.xml for plugin "googlemaps"。请尝试重新添加。
    • 如果它有效,您应该接受帮助他人的答案,并且您不应该在 cmets 中提问,但是,您可能缺少 Google Maps 插件的 API 密钥和秘密。详情见github页面:github.com/mapsplugin/cordova-plugin-googlemaps
    猜你喜欢
    • 2016-10-03
    • 1970-01-01
    • 2018-06-07
    • 1970-01-01
    • 2019-07-28
    • 1970-01-01
    • 1970-01-01
    • 2019-06-19
    • 1970-01-01
    相关资源
    最近更新 更多