【问题标题】:ionic ios build failed with code 65 cordova-plugin-firebase-lib离子 ios 构建失败,代码为 65 cordova-plugin-firebase-lib
【发布时间】:2021-03-01 16:37:17
【问题描述】:

** 构建失败 **

以下构建命令失败:

/Users/andreibobocea/Library/Developer/Xcode/DerivedData/2MIL-fmvwsooudyjevcgvbdlehkoxtgwh/Build/Intermediates.noindex/2MIL.build/Debug-iphonesimulator/2MIL.build/Objects-normal/x86_64/FirebasePlugin.o /Users/andreibobocea/Downloads/handyman-2mil/platforms/ios/2MIL/Plugins/cordova-plugin-firebase-lib/FirebasePlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 次失败) xcodebuild:命令失败,退出代码为 65

离子信息:-

cli 包:(/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

全局包:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)

本地包:

@ionic/app-scripts : 3.1.11
Cordova Platforms  : ios 5.1.1
Ionic Framework    : ionic-angular 3.9.2

系统:

ios-deploy : 1.11.3
Node       : v8.9.3
npm        : 5.5.1
OS         : macOS
Xcode      : Xcode 12.1 Build version 12A7403

cordova-plugin-firebase-lib 4.1.0 版本在我的项目中运行良好,但它包含一些被 Apple 根据新政策拒绝的“UIWebview”组件,当我尝试使用它在上面生成的最新版本 5.1.0 时错误。 如何解决上述错误

【问题讨论】:

    标签: ios ionic-framework ionic3 cordova-plugins ionic-native


    【解决方案1】:

    UIWebView 是旧的 iOS 网页视图,较新的应用程序必须使用它的替换 WkWebView。使用 App Store 中较旧的 webview will not be accepted 的应用程序使用时间更长。该插件可能仍会在其代码中引用较旧的 webview,这就是您收到错误的原因。

    插件本身现已存档,这意味着它将不会收到任何可能解决此错误的未来更新。请参阅herehere

    幸运的是,这个插件是一个分支。 cordova-plugin-firebasex 是另一个似乎没有同样问题的分支。两者都是同一个原始插件的分支,替换代码应该相当容易。另外,cordova-plugin-firebase-lib 的开发者也推荐迁移到这个分支。

    【讨论】:

    • 我尝试在项目中使用 cordova-plugin-firebasex 插件,但现在我的应用程序在 URL 方案中添加反向客户端 ID [NSNull 长度] 后崩溃并出现以下错误:无法识别的选择器发送到实例 0x7fff8002ebb0 2020 -12-22 14:41:23.809805+0530 2MIL[63531:1837469] *** 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[NSNull 长度]:无法识别的选择器发送到实例 0x7fff8002ebb0”*** 首先抛出调用堆栈:(0x000000010a2e5c68 __64-[FIRPhoneAuthProvider verifyPhoneNumber:UIDelegate:completion:]_block_invoke + 280)
    • 您能否详细说明“在 URL 方案中添加反向客户端 ID 后”是什么意思?我们需要了解所做的工作,了解导致异常的原因。
    • 我们从 GoogleService-info.plist 文件中获取反向客户端 ID,例如“com.googleusercontent.apps.XXXXX”,需要在 project.plist 文件下的 URL Scheme 中添加 CFBundleURLTypesCFBundleTypeRoleEditorCFBundleURLNameREVERSED_CLIENT_IDCFBundleURLSchemescom.googleusercontent.apps.XXXXXX
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-26
    • 2021-01-19
    • 2016-05-28
    • 1970-01-01
    • 1970-01-01
    • 2016-09-30
    相关资源
    最近更新 更多