首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由于地理隔离插件导致Ionic构建失败

由于地理隔离插件导致Ionic构建失败
EN

Stack Overflow用户
提问于 2019-12-29 20:45:44
回答 1查看 445关注 0票数 1

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

代码语言:javascript
复制
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的版本,等等:

代码语言:javascript
复制
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

我想换成更早的版本可能会有帮助,但不知道是哪个版本。

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2019-12-30 17:08:24

请按照以下步骤操作。

  1. 卸载geofence plugin.
  2. uninstall platform
  3. install geofence plugin
  4. 替换这3个文件(https://github.com/cowbell/cordova-plugin-geofence/tree/master/src/ios 69)
  5. 安装平台iOS。<代码>H211
  6. 构建成功
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59519526

复制
相关文章

相似问题

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