Closed alexnu closed 6 years ago
same goes for me, any solutions?
In my case I forgot to delete cordova-plugin-firebase and got error 65.
Try running
cordova plugin rm cordova-plugin-firebase
I don't have cordova-plugin-firebase installed, only firebase 4.1.3 on my package.json but I don't think that causes the problem.
Exactly the same issue.
Currently no idea what more to do.
I had same issue mostly when i tried to install the plugin i had an error Failed to install 'cordova-plugin-firebase-analytics':undefined Error: CocoaPods was not found. Please install version 1.0.1 or greater from https://cocoapods.org/.
My solution is to follow these steps:
1) Force to uninstall plugin "cordova plugin remove cordova-plugin-firebase-analytics --save" (until you get this error "Error: Plugin "cordova-plugin-firebase-analytics" is not present in the project. See cordova plugin list
."
2) So you must update your cocoapods following these steps "sudo gem install cocoapods" (to get last version of cocoapods) and "pod setup" (for sync new version into your OS)
Then, now you can reinstall plugin "cordova plugin add cordova-plugin-firebase-analytics --save".
The build will be success
Note: my supposition of this plugin that you can build only with Xcode 8+ (because i have 7.2 and i had that issue)
No luck. Just compile error.
cli packages: (/usr/local/lib/node_modules) @ionic/cli-utils : 1.19.0 ionic (Ionic CLI) : 3.19.0
global packages: cordova (Cordova CLI) : 7.1.0
local packages: @ionic/app-scripts : 3.1.5 Cordova Platforms : android 6.3.0 ios 4.5.1 Ionic Framework : ionic-angular 3.9.2
System: Android SDK Tools : 25.2.5 ios-deploy : 1.9.2 ios-sim : 5.0.11 Node : v6.9.5 npm : 5.6.0 OS : OS X El Capitan Xcode : Xcode 8.2.1 Build version 8C1002
Environment Variables: ANDROID_HOME : /usr/local/opt/android-sdk
Misc: backend : legacy
iOS
platforms/ios
on XCodeio.ionic.starter
in all files for a unique identifierionic cordova run ios --device --livereload
> ionic cordova build ios is failing
After adding this plugin, the IOS build is failing, I am using this only for IOS app Tried everything, which is mentioned in the post but didn't workout. Following below error I am getting after adding this plugin.
The following build commands failed: Ld build/emulator/MyApp.app/MyApp normal x86_64 (1 failure) (node:24305) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args:
Packages version used: ionic - 3.19.1 cordova - 8.0.0
xcode - Version 9.2 macOS Sierra - 10.12.16
Can anybody help me out why I am getting this error ?
my ionic iOS build is failing
(node:13834) UnhandledPromiseRejectionWarning: Unhandled promise rejection.
@pravs2011 same problem sample log :
Ld build/emulator/RTI.app/RTI normal x86_64
cd /Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/bhumin/Desktop/gitREPO/rtidev/node_modules/.bin:/Users/bhumin/Library/Android/sdk//tools:/Users/bhumin/Library/Android/sdk//platform-tools:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -L/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator -L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/Protobuf -L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/nanopb -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseInstanceID/Frameworks -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseMessaging/Frameworks -FRTI/Plugins/com.googlemaps.ios -FRTI/Plugins/cordova-plugin-ms-adal -filelist /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/Objects-normal/x86_64/RTI.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/Objects-normal/x86_64/RTI_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/RTI.app.xcent /Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator/libCordova.a -framework CoreLocation -framework CoreTelephony -framework CoreImage -lz -framework QuartzCore -framework SystemConfiguration -weak_framework WebKit -framework ADAL -framework UserNotifications -liconv -framework AVFoundation -framework CoreVideo -framework AudioToolbox -framework Accelerate -framework CoreData -framework CoreText -framework GLKit -framework ImageIO -lc++ -framework OpenGLES -framework UIKit -framework GoogleMapsBase -framework GoogleMaps -framework GoogleMapsCore -Xlinker -dependency_info -Xlinker /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/Objects-normal/x86_64/RTI_dependency_info.dat -o /Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator/RTI.app/RTI
ld: warning: directory not found for option '-L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/nanopb'
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/emulator/RTI.app/RTI normal x86_64
(1 failure)
(node:72758) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args: -xcconfig,/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/cordova/build-debug.xcconfig,-workspace,RTI.xcworkspace,-scheme,RTI,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/sharedpch
(node:72758) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@bhumin3i your error looks different to the one the issue is about, although error code is the same. However, I've been getting exactly the same output as yours and found a workaround.
For some reason just re-adding the plugin fixes it for me. I added it to my npm postinstall script:
"postinstall": "ionic cordova prepare && ionic cordova plugin remove cordova-plugin-firebase-analytics && ionic cordova plugin add cordova-plugin-firebase-analytics@0.13.0 --variable FIREBASE_VERSION=\"11.6.+\"",
Hope this helps.
So, to avoid building Error, just make sure you CLOSE the Xcode window before you add the plugin, and open it only after building the app. This way all should work just fine.
Another issue comes up after though: The App terminates with the following error:
*** Terminating app due to uncaught exception 'com.firebase.core', reason: 'Default app has already been configured.'
To resolve this issue, I follow the first steps of this: https://github.com/firebase/quickstart-cpp/blob/master/analytics/testapp/readme.md#ios
cd platform/ios
pod install
I hope it will works for u.
Same problem, POD install doesn't fix it. any help?
The following build commands failed: CompileC /var/root/Library/Developer/Xcode/DerivedData/HPTUMovil-brdzlsijtnmxcvdagzhuqcajuvwg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/Objects-normal/x86_64/FIRNetwork.o FirebaseCore/Firebase/Core/FIRNetwork.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) (node:5795) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/hptumovil/Documents/HPTUMovil/platforms/ios/cordova/build-debug.xcconfig,-workspace,HPTUMovil.xcworkspace,-scheme,HPTUMovil,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/hptumovil/Documents/HPTUMovil/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/hptumovil/Documents/HPTUMovil/platforms/ios/build/sharedpch (node:5795) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:5795) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
same for me. please help
` /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/felaray/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/felaray/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DFIRCore_VERSION=5.0.5 -DFirebase_VERSION=5.4.0 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Index/DataStore -iquote /Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/FirebaseCore-generated-files.hmap -I/Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/FirebaseCore-own-target-headers.hmap -I/Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/FirebaseCore-all-target-headers.hmap -iquote /Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/FirebaseCore-project-headers.hmap -I/Users/felaray/Downloads/App/platforms/ios/build/emulator/include -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Private -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Private/FirebaseCore -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/FirebaseCore -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/GoogleToolboxForMac -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Firebase/CoreOnly/Sources -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/Firebase -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/FirebaseAuth -I/Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/GTMSessionFetcher -I/Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/DerivedSources/i386 -I/Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/DerivedSources -F/Users/felaray/Downloads/App/platforms/ios/build/emulator -fno-autolink -isystem /Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public -isystem /Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/Firebase -isystem /Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/FirebaseAuth -isystem /Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/FirebaseCore -isystem /Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/GTMSessionFetcher -isystem /Users/felaray/Downloads/App/platforms/ios/Pods/Pods/Headers/Public/GoogleToolboxForMac -MMD -MT dependencies -MF /Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/Objects-normal/i386/FIRNetworkURLSession.d --serialize-diagnostics /Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/Objects-normal/i386/FIRNetworkURLSession.dia -c /Users/felaray/Downloads/App/platforms/ios/Pods/FirebaseCore/Firebase/Core/FIRNetworkURLSession.m -o /Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/Objects-normal/i386/FIRNetworkURLSession.o
BUILD FAILED The following build commands failed: CompileC /Users/felaray/Library/Developer/Xcode/DerivedData/JobDone_家當-bqoqetoqlutkgyfugkrnmidujzpe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/Objects-normal/i386/FIRNetwork.o FirebaseCore/Firebase/Core/FIRNetwork.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) (node:6461) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/felaray/Downloads/App/platforms/ios/cordova/build-debug.xcconfig,-workspace,JobDone 家當.xcworkspace,-scheme,JobDone 家當,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5,build,CONFIGURATION_BUILD_DIR=/Users/felaray/Downloads/App/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/felaray/Downloads/App/platforms/ios/build/sharedpch (node:6461) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:6461) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. `
cordova platform Installed platforms: ios 4.5.4
cordova plugin cordova-plugin-device 2.0.2 "Device" cordova-plugin-firebase 1.0.5 "Google Firebase Plugin" cordova-plugin-firebase-authentication 1.0.1 "cordova-plugin-firebase-authentication" cordova-plugin-inappbrowser 3.0.0 "InAppBrowser" cordova-plugin-whitelist 1.3.3 "Whitelist"`
pod install pod repo update
i confirm that this error only in command line when u open the project in xcode it runs without error
For my recent App I am seeing a build error when using command line build option
sudo ionic cordova build ios --release However, when I open my-proj.xworkspace and build it goes through fine but App crashes as expected.
For my previous App in May I was seeing this error in build option and I found that comment by "Gradix93 commented on Oct 27, 2017" in above of this chain to be of perfect help.
However there is a sequence of steps one should maintain to go through successfully. I will post that sequence after I run it through my recent app. This is particularly after including firebase analytics in the App. cocoapads is the key to be in place. more soon.
Gradix93 steps not working with me
i update pods pod --version 1.5.3
After several (I mean several several) rounds of experimenting, reading and testing here are the steps I have found to clearly get out of this issue. It worked for 2 iOS Apps have I applied to. Hope it helps all.
Failed to install 'cordova-plugin-firebase-analytics': undefined
$ cordova plugin remove cordova-plugin-firebase-analytics --save Uninstalling cordova-plugin-firebase-analytics from ios
[!] The Podfile does not contain any dependencies.
Note the 0.13.0 version of firebase-analytics used here
DISCONNECT iPHONE before running below command $ sudo ionic cordova build ios --release BUILD SUCCEEDED
Same problem, POD install doesn't fix it. any help?
- BUILD FAILED **
The following build commands failed: CompileC /var/root/Library/Developer/Xcode/DerivedData/HPTUMovil-brdzlsijtnmxcvdagzhuqcajuvwg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/Objects-normal/x86_64/FIRNetwork.o FirebaseCore/Firebase/Core/FIRNetwork.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) (node:5795) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/hptumovil/Documents/HPTUMovil/platforms/ios/cordova/build-debug.xcconfig,-workspace,HPTUMovil.xcworkspace,-scheme,HPTUMovil,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/hptumovil/Documents/HPTUMovil/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/hptumovil/Documents/HPTUMovil/platforms/ios/build/sharedpch (node:5795) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:5795) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
$ sudo ionic cordova build ios --release
@yapching The build will indeed fail but if you ignore that and go open the .xcworkspace file after getting this error, the app actually does run fine.
I had same issue mostly when i tried to install the plugin i had an error Failed to install 'cordova-plugin-firebase-analytics':undefined Error: CocoaPods was not found. Please install version 1.0.1 or greater from https://cocoapods.org/.
My solution is to follow these steps:
- Force to uninstall plugin "cordova plugin remove cordova-plugin-firebase-analytics --save" (until you get this error "Error: Plugin "cordova-plugin-firebase-analytics" is not present in the project. See
cordova plugin list
."- So you must update your cocoapods following these steps "sudo gem install cocoapods" (to get last version of cocoapods) and "pod setup" (for sync new version into your OS)
Then, now you can reinstall plugin "cordova plugin add cordova-plugin-firebase-analytics --save".
The build will be success
Note: my supposition of this plugin that you can build only with Xcode 8+ (because i have 7.2 and i had that issue)
Should note that pod setup
takes a very long time
similar to this stackoverflow issue
pod setup
and pod repo update
do not fix` BUILD FAILED
The following build commands failed: Ld /Users/neil/Library/Developer/Xcode/DerivedData/Cardihab_App-ccypvivwehrhfsgvurieehkuktar/Build/Intermediates.noindex/Cardihab\ App.build/Release-iphonesimulator/Cardihab\ App.build/Objects-normal/x86_64/Cardihab\ App normal x86_64 Ld /Users/neil/Library/Developer/Xcode/DerivedData/Cardihab_App-ccypvivwehrhfsgvurieehkuktar/Build/Intermediates.noindex/Cardihab\ App.build/Release-iphonesimulator/Cardihab\ App.build/Objects-normal/i386/Cardihab\ App normal i386 (2 failures) (node:48331) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/neil/Projects/cardihabApp/platforms/ios/cordova/build-release.xcconfig,-workspace,Cardihab App.xcworkspace,-scheme,Cardihab App,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/neil/Projects/cardihabApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/neil/Projects/cardihabApp/platforms/ios/build/sharedpch (node:48331) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:48331) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
`
I don't have cordova-plugin-firebase installed, only firebase 4.1.3 on my package.json but I don't think that causes the problem.
It may still be in your config.xml
,
does the plugin appear the list when you run ionic cordova plugins ls
?
Hello everyone, still not working guys? I have a similar error...
` BUILD FAILED
The following build commands failed: CompileC /Users/manel/Library/Developer/Xcode/DerivedData/TopStockAlerts-gymujfxkawqxonepqjfijwueghha/Build/Intermediates.noindex/TopStockAlerts.build/Debug-iphonesimulator/TopStockAlerts.build/Objects-normal/x86_64/FirebaseAnalyticsPlugin.o /Users/manel/Documents/ionic_projects/topstock/platforms/ios/TopStockAlerts/Plugins/cordova-plugin-firebase-analytics/FirebaseAnalyticsPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC /Users/manel/Library/Developer/Xcode/DerivedData/TopStockAlerts-gymujfxkawqxonepqjfijwueghha/Build/Intermediates.noindex/TopStockAlerts.build/Debug-iphonesimulator/TopStockAlerts.build/Objects-normal/x86_64/AppDelegate+FCMPlugin.o /Users/manel/Documents/ionic_projects/topstock/platforms/ios/TopStockAlerts/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (2 failures) xcodebuild: Command failed with exit code 65 [ERROR] An error occurred while running subprocess cordova.`
I am facing quite similar with the problems. I am using ionic 3. I updated the macOS & Xcode 3 days before and I am not facing any problem with that until I installed some plugin and cannot build. I achieved to solve this by using backup ios folder instead of current folder. (P/s: incase you have backup your project before, in my situation, I do not add any crucial plugins with the latest backup ios folder)
Which is, I put current ios folder into another place and replace with the successful ios folder before (without the plugin) and try to build again.
Hope it helps for some people.
I tried building my app in iOS for the first time after having added cordova-plugin-firebase-analytics, and I am getting the following error: