Getting:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/AppDelegateSwizzler":
In Podfile:
Firebase/Core (~> 5.6.0) was resolved to 5.6.0, which depends on
FirebaseAnalytics (= 5.1.1) was resolved to 5.1.1, which depends on
GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
When running an iOS build. Only started happening today on our daily builds. Not sure if there's anything you can do, I've found a corresponding ticket here:
https://github.com/firebase/firebase-ios-sdk/issues/1845
describing the problem, with a workaround.
If bumping to Firebase iOS SDK 5.8.1 is the solution then that's a relatively easy fix. However, the new Xcode 10 buildsystem doesn't seem to play nice with that version on NativeScript.
While on the subject of Xcode 10: did your daily build server switch to Xcode 10 around the time you saw the failure?
No it’s still running Xcode 8
We're seeing the same issue since last night, running xcode 9.3
@patrick-nurt What changed yesterday?
Updated to latest version of your plugin yesterday, was building fine last night - this morning we get the same error in travis:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/AppDelegateSwizzler":
In Podfile:
Firebase/Core (~> 5.6.0) was resolved to 5.6.0, which depends on
FirebaseAnalytics (= 5.1.1) was resolved to 5.1.1, which depends on
GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
My brain has trouble making sense of this as there are too many variables (Xcode versions, NativeScript versions, Plugin versions, Pod versions) and inconsistent behavior (worked after the upgrade, but later it didn't).. so this needs to be pinned down further.
I'm currently already in Xcode 10's "new build system" hell, figuring things out between NativeScript 4 and 5 (@ next) versions which messes up my development machine, so don't expect a quick patch here.
I am having the same issues from a brand new project. Using Sidekick cloud build.
CocoaPods could not find compatible versions for pod \"GoogleUtilities/AppDelegateSwizzler\":
In Podfile:
Firebase/Core (~> 5.5.0) was resolved to 5.5.0, which depends on
FirebaseAnalytics (= 5.1.0) was resolved to 5.1.0, which depends on
GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
(CLI) Specs satisfying the `GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)` dependency were found, but they required a higher minimum deployment target.
Can anyone share a project I can clone to reproduce this issue, along with the NativeScript and Xcode versions that are used to build the project? I simply can't reproduce this specific issue..
I can, but I am not sure what version of Xcode is being used on Sidekick Cloud Builds.
I am having the same issue from yesterday. Getting "Build failed". I have not uploaded it to Github yet. But sure can share google drive link to download nativescript project.
I have created a PR that fixes the issue by updating to Firebase 5.8.1
https://github.com/firebase/firebase-ios-sdk/issues/1845
I still have issue after Adding "pod 'GoogleUtilities', '5.2.3'" and changing Firebase/core to 5.8.1
@Aakashchauhan17 What's the exact issue with that config?
Note that even though I still have no way to reproduce the issue I will add that temp fix (pod 'GoogleUtilities', '5.2.3') to 7.1.0 and we'll see what happens.
@EddyVerbruggen . I am getting this kind of error when trying to tun command 'tns run ios'
Executing before-shouldPrepare hook from /Users/Aakash/Documents/Projects/aakashcam/hooks/before-shouldPrepare/nativescript-dev-webpack.js
Skipping prepare.
Building project...
Xcode build...
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/FirebaseCore'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GoogleAPIClientForREST'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GoogleUtilities'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/QBImagePickerController'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/nanopb'
ld: targeted OS version does not support use of thread local variables in l25192 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/FirebaseCore'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GoogleAPIClientForREST'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/GoogleUtilities'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/QBImagePickerController'
ld: warning: directory not found for option '-F/Users/Aakash/Library/Developer/Xcode/DerivedData/aakashcam-bwdqcnztnmrfltbcxbnlimopwubh/Build/Products/Debug-iphonesimulator/nanopb'
note: Using new build systemnote: Planning buildnote: Constructing build description
* BUILD FAILED *
Unable to apply changes on device: D67E3CFF-7EF5-4154-A95C-0CA64CE2D648. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/Aakash/Documents/Projects/aakashcam/hooks/after-watch/nativescript-dev-typescript.js
Stopping tsc watch
Executing after-watch hook from /Users/Aakash/Documents/Projects/aakashcam/hooks/after-watch/nativescript-dev-webpack.js
@Aakashchauhan17 You're using Xcode 10 and running into a compatibility issue with NativeScript. I'm actually trying to help fix this type of errors in the CLI. It has nothing to do with this plugin.
@EddyVerbruggen
To produce an issue I think you just need to implement firebase into nativescript app. and I am using image labeling in app with "tns-ios": {
"version": "4.2.0"
and emulator is running on ios 12.
Yep. See my previous comment. Using Xcode 9 doesn't give you this headache, so it's because of the new Xcode 10 build system.
@Aakashchauhan17 You're using Xcode 10 and running into a compatibility issue with NativeScript. I'm actually trying to help fix this type of errors in the CLI. It has nothing to do with this plugin.
It was working fine until tomorrow. And I haven't changed anything in code.
Yep. See my previous comment. Using Xcode 9 doesn't give you this headache, so it's because of the new Xcode 10 build system.
Ok. Yes. now I understand. Thanks. So I might need to shift to use xcode 9
Yeah, you can download it from Apple (I did it as well to be able to switch between 9 and 10 when needed). And also keep an eye out on the issues @ https://github.com/NativeScript/nativescript-cli/issues
7.1.0 has been released, with the alledged temp fix for the OP's [!] CocoaPods could not find compatible versions for pod "GoogleUtilities/AppDelegateSwizzler": issue.
If you need a project to tinker with, you can use Picme: github.com/jlooper/picme
@EddyVerbruggen Ok. Cool. I will try to do it with xcode 9.4.1 and firebase sdk 7.1.0 . And thank you so much to look further into this issue
@EddyVerbruggen builds succeeded this morning with latest version. Thank you very much for the quick response. Really appreciated. Sorry for any headaches. :)
also have this issue when I tried building with NS Sidekick

here's a screenshot
@virtualbjorn have you been using the latest version of nativescript-plugin-firebase (7.1.0)? I had the same issue but after I updated to the latest version the build was completed successfully with the nativescript sidekick.
+1
CocoaPods could not find compatible versions for pod "GoogleUtilities/MethodSwizzler":
In Podfile:
Firebase/Core (~> 5.6.0) was resolved to 5.6.0, which depends on
FirebaseAnalytics (= 5.1.1) was resolved to 5.1.1, which depends on
GoogleUtilities/MethodSwizzler (~> 5.2.0)
I'm having this issue as well, and I cannot apply any patch because the patch suggested here:
https://github.com/firebase/firebase-ios-sdk/issues/1845
is over the pod file and the NS build fails so no pod file is created.
How can we fix this?
Yep. See my previous comment. Using Xcode 9 doesn't give you this headache, so it's because of the new Xcode 10 build system.
Ok. Yes. now I understand. Thanks. So I might need to shift to use xcode 9
How to downgrade xcode 10 to xcode 9
You need to first uninstall xcode 10 from application and from the Apple's website go to downloads and select xcode 9.4.x to download. Then you are good to go. It works fine.
Correct. You can also try the “next” (5) version of nativescript which has better Xcode 10 compat.
no need, check the version of the plugin in package.json update it.
No luck. Eventhough i downgraded to xcode 9, firebase 7.1. i am getting error with methodswizzler.
Anyworkarounds are highly appreciated.
Firebase/Core (~> 5.6.0) was resolved to 5.6.0, which depends on
FirebaseAnalytics (= 5.1.1) was resolved to 5.1.1, which depends on
GoogleUtilities/MethodSwizzler (~> 5.2.0)
update the firebase plugin to 7 at least.
El mié., 3 de oct. de 2018 5:58 PM, spmamidi notifications@github.com
escribió:
No luck. Eventhough i downgraded to xcode 9, firebase 7.1. i am getting
error with methodswizzler.
Anyworkarounds are highly appreciated.Firebase/Core (> 5.6.0) was resolved to 5.6.0, which depends on
FirebaseAnalytics (= 5.1.1) was resolved to 5.1.1, which depends on
GoogleUtilities/MethodSwizzler (> 5.2.0)—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/924#issuecomment-426830916,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2xqI8vjesulS5cFLWAafNJarsvEDpwks5uhUEDgaJpZM4W5qX6
.
No Luck. I have updated to 7.
Solved this using version 6 of plugin