【问题标题】:Ionic build failed because of Geofencing Plugin由于地理围栏插件,Ionic 构建失败
【发布时间】:2019-12-29 12:45:43
【问题描述】:

我在我的 ionic 项目上安装了社区插件地理围栏。当我现在尝试构建项目时,构建失败。控制台输出为:

The following build commands failed:
        CompileSwift normal x86_64 /Users/maius/Documents/unverpacktewahrheiten/platforms/ios/MyApp/Plugins/cordova-plugin-geofence/GeofencePlugin.swift
        CompileSwift normal x86_64 /Users/maius/Documents/unverpacktewahrheiten/platforms/ios/MyApp/Plugins/cordova-plugin-geofence/SwiftyJson.swift
        CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(3 failures)
xcodebuild: Command failed with exit code 65

我尝试使用 git repo 中的文件更改这些文件,正如在其他一些问题中所解释的那样,但这并没有解决问题。

这些是 ionic 等的版本:

Ionic:

   Ionic CLI                     : 5.4.13 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.7
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.1.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 9 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.3.0

System:

   ios-deploy : 1.10.0
   ios-sim    : 8.0.2
   NodeJS     : v12.13.1 (/usr/local/bin/node)
   npm        : 6.13.4
   OS         : macOS Mojave
   Xcode      : Xcode 11.2.1 Build version 11B500

我认为更改为早期版本可能会有所帮助,但无法弄清楚是哪一个。

感谢您的帮助。

【问题讨论】:

    标签: angular cordova ionic-framework ionic2 ionic3


    【解决方案1】:

    按照以下步骤操作。

    1. 卸载地理围栏插件。
    2. 卸载平台iOS
    3. 安装地理围栏插件
    4. 替换这3个文件(https://github.com/cowbell/cordova-plugin-geofence/tree/master/src/ios69)
    5. 安装平台 iOS。
    6. 构建成功

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-23
      • 2017-08-14
      • 2015-09-04
      • 1970-01-01
      • 1970-01-01
      • 2019-12-25
      • 2021-11-02
      • 1970-01-01
      相关资源
      最近更新 更多