Code Monkey home page Code Monkey logo

Comments (25)

bhumin3i avatar bhumin3i commented on July 25, 2024 12

@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.

from cordova-plugin-firebase-analytics.

brunolm avatar brunolm commented on July 25, 2024 7

iOS

  • Open platforms/ios on XCode
  • Find & Replace io.ionic.starter in all files for a unique identifier
  • Click the project to open settings
  • Signing > Select a team
  • Go to your device Settings > General > DeviceManagement
    • Trust your account/team
  • ionic cordova run ios --device --livereload

from cordova-plugin-firebase-analytics.

florent1933 avatar florent1933 commented on July 25, 2024 7

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.

from cordova-plugin-firebase-analytics.

Gradix93 avatar Gradix93 commented on July 25, 2024 2

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)

from cordova-plugin-firebase-analytics.

yapching avatar yapching commented on July 25, 2024 2

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

from cordova-plugin-firebase-analytics.

amitme avatar amitme commented on July 25, 2024 1

> 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 ?

from cordova-plugin-firebase-analytics.

pravs2011 avatar pravs2011 commented on July 25, 2024 1

my ionic iOS build is failing

(node:13834) UnhandledPromiseRejectionWarning: Unhandled promise rejection.

from cordova-plugin-firebase-analytics.

ilyalukyanov avatar ilyalukyanov commented on July 25, 2024 1

@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 [email protected] --variable FIREBASE_VERSION=\"11.6.+\"",

Hope this helps.

from cordova-plugin-firebase-analytics.

dimitri320 avatar dimitri320 commented on July 25, 2024 1

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.'

from cordova-plugin-firebase-analytics.

muralijai avatar muralijai commented on July 25, 2024 1

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.

if you get this below message when you try to install firebase-analytics in MAC, here is how you go about it.

Failed to install 'cordova-plugin-firebase-analytics': undefined

Failed to restore plugin "cordova-plugin-firebase-analytics" from config.xml. You might need to try adding it again. Error: /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)

I had to set the permission for the directory for everyone to read/write using getInfo menu item in MAC for that directory. This was because I don't have all rights to files.

$ cordova plugin remove cordova-plugin-firebase-analytics --save
Uninstalling cordova-plugin-firebase-analytics from ios

[!] The Podfile does not contain any dependencies.

Removing "cordova-plugin-firebase-analytics"
Removing plugin cordova-plugin-firebase-analytics from config.xml file...
Removing cordova-plugin-firebase-analytics from package.json

$ sudo gem install cocoapods
Successfully installed cocoapods-1.5.3
Parsing documentation for cocoapods-1.5.3
Done installing documentation for cocoapods after 4 seconds
1 gem installed

$ pod setup
Setting up CocoaPods master repo
$ /usr/local/bin/git -C /Users/general/.cocoapods/repos/master fetch origin --progress
remote: Counting objects: 12879, done.
remote: Compressing objects: 100% (194/194), done.
remote: Total 12879 (delta 5221), reused 5165 (delta 5165), pack-reused 7507
Receiving objects: 100% (12879/12879), 1.51 MiB | 321.00 KiB/s, done.
Resolving deltas: 100% (8693/8693), completed with 1801 local objects.
From https://github.com/CocoaPods/Specs
76a31b08e7c..7f76a16af16 master -> origin/master
$ /usr/local/bin/git -C /Users/general/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
master
$ /usr/local/bin/git -C /Users/general/.cocoapods/repos/master reset --hard origin/master
Checking out files: 100% (1348/1348), done.
HEAD is now at 7f76a16af16 [Add] LSiOSTableView 0.2.1
Setup completed

I had to set the permission for the directory for everyone to read/write using getInfo menu item in MAC for that directory. This was because I don't have all rights to files.

$ vi platform/ios/Podfile
ensure that in the Podfile the below shows
pod 'Firebase/Core', '~> 4.1'

$ pod install
Analyzing dependencies
Downloading dependencies
Installing Firebase (4.13.0)
Installing FirebaseAnalytics (4.2.0)
Installing FirebaseCore (4.0.20)
Installing FirebaseInstanceID (2.0.10)
Installing GoogleToolboxForMac (2.1.4)
Installing nanopb (0.3.8)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 6 total pods installed.

I had to set the permission for the directory for everyone to read/write using getInfo menu item in MAC for that directory. This was because I don't have all rights to files.

Note the 0.13.0 version of firebase-analytics used here

$ cordova plugin add [email protected] --save
Installing "cordova-plugin-firebase-analytics" for ios
Adding cordova-plugin-firebase-analytics to package.json
Saved plugin info for "cordova-plugin-firebase-analytics" to config.xml

I had to set the permission for the directory for everyone to read/write using getInfo menu item in MAC for that directory. This was because I don't have all rights to files.

$ sudo ionic cordova build ios --release
** BUILD SUCCEEDED **

opened xcode using xcworkspace
set device to generic ios device
Shift+command+k - clean ok
command+b - build ok
connected iphone to MAC
xcode automatically sets device to connected iphone
Shift+command+k - clean ok
command+b - build ok
run app on device iphone
crashed because the GoogleService-Info.plist was not found
GoogleService-Info.plist file has to be in platform/ios folder
manually copied GoogleService-Info.plist file to platform/ios folder
Then added the GoogleService-Info.plist file using xcode project
run app on device iphone
worked fine this time

DISCONNECT iPHONE before running below command
$ sudo ionic cordova build ios --release
** BUILD SUCCEEDED **

from cordova-plugin-firebase-analytics.

anhiliate avatar anhiliate commented on July 25, 2024

same goes for me, any solutions?

from cordova-plugin-firebase-analytics.

saoron avatar saoron commented on July 25, 2024

In my case I forgot to delete cordova-plugin-firebase and got error 65.

Try running

cordova plugin rm cordova-plugin-firebase

from cordova-plugin-firebase-analytics.

alexnu avatar alexnu commented on July 25, 2024

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.

from cordova-plugin-firebase-analytics.

lordgreg avatar lordgreg commented on July 25, 2024

Exactly the same issue.

Currently no idea what more to do.

from cordova-plugin-firebase-analytics.

vadimwe avatar vadimwe commented on July 25, 2024

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

from cordova-plugin-firebase-analytics.

hptumovil avatar hptumovil commented on July 25, 2024

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.

from cordova-plugin-firebase-analytics.

felaray avatar felaray commented on July 25, 2024

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

from cordova-plugin-firebase-analytics.

mohamedsharaf avatar mohamedsharaf commented on July 25, 2024

i confirm that this error only in command line when u open the project in xcode it runs without error

from cordova-plugin-firebase-analytics.

muralijai avatar muralijai commented on July 25, 2024

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.

from cordova-plugin-firebase-analytics.

mohamedsharaf avatar mohamedsharaf commented on July 25, 2024

Gradix93 steps not working with me

i update pods
pod --version
1.5.3

from cordova-plugin-firebase-analytics.

hvaughan3 avatar hvaughan3 commented on July 25, 2024

@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.

from cordova-plugin-firebase-analytics.

neilbo avatar neilbo commented on July 25, 2024

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)

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.

`

from cordova-plugin-firebase-analytics.

neilbo avatar neilbo commented on July 25, 2024

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?

from cordova-plugin-firebase-analytics.

manel00 avatar manel00 commented on July 25, 2024

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.`

from cordova-plugin-firebase-analytics.

nurzarifah avatar nurzarifah commented on July 25, 2024

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.

from cordova-plugin-firebase-analytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.