0
votes

** BUILD FAILED **

The following build commands failed:

/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 failure) xcodebuild: Command failed with exit code 65

ionic Info:-

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

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

global packages:

Cordova CLI : 9.0.0 ([email protected])

local packages:

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

System:

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 with 4.1.0 version working fine with my project but it contains some 'UIWebview' component that rejected by Apple as per new policy and when I tried to use latest version 5.1.0 it generate above error. How to resolve above error

1

1 Answers

0
votes

UIWebView is the older webview for iOS, newer apps have to use its replacement WkWebView. Apps using the older webview will not be accepted by the App Store for much longer. The plugin probably still references the older webview in its code, which is why you're receiving the error.

The plugin itself has now been archived meaning it will not receive any future updates that might resolve this error. See here and here.

Fortunately, this plugin was a fork. cordova-plugin-firebasex is another fork that does not seem to have this same issue. Both being forks of the same original plugin, it should be fairly easy to replace the code. Plus, the developers of cordova-plugin-firebase-lib also recommend migrating to this fork.