Closed luisdelgado24 closed 2 years ago
@luisdelgado24 Sorry about the trouble. This might be an issue similar to #8536. Please take a look and if you're still stuck, share your Podfile and Podfile.lock.
Hi Paul,
I see how the issue is similar to #8536 in that I am getting the "Class foo is implemented in both X and Y. One of the two will be used. Which one is undefined". But from what i see there, the conclusion is that it is problematic to link static frameworks into dynamic frameworks, and so the suggestion is to leverage use_frameworks! :linkage => :static
in the podfile. I gave that a shot but I end up getting a linkage error because there are many duplicate symbols (below)
// long list of more duplicate symbols...
duplicate symbol '_OBJC_CLASS_$_FSTUserDataWriter' in:
/Users/luisdelgado/Library/Developer/Xcode/DerivedData/Apartafit-dasqzxvesvnfteainizhstxqwldf/Build/Products/Debug-iphonesimulator/FirebaseFirestore.o
/Users/luisdelgado/Library/Developer/Xcode/DerivedData/Apartafit-dasqzxvesvnfteainizhstxqwldf/Build/Products/Debug-iphonesimulator/FirebaseFirestore/FirebaseFirestore.framework/FirebaseFirestore(FSTUserDataWriter.o)
duplicate symbol '_OBJC_METACLASS_$_FSTUserDataWriter' in:
/Users/luisdelgado/Library/Developer/Xcode/DerivedData/Apartafit-dasqzxvesvnfteainizhstxqwldf/Build/Products/Debug-iphonesimulator/FirebaseFirestore.o
/Users/luisdelgado/Library/Developer/Xcode/DerivedData/Apartafit-dasqzxvesvnfteainizhstxqwldf/Build/Products/Debug-iphonesimulator/FirebaseFirestore/FirebaseFirestore.framework/FirebaseFirestore(FSTUserDataWriter.o)
ld: 889 duplicate symbols for architecture arm64
My online repo is https://github.com/luisdelgado24/Apartafit and the podfile is stored here . Any thoughts on what I could be doing wrong with my pod file?
The GitHub project integrates Firebase with both CocoaPods and Swift Package Manager. Only one can be used.
I am also seeing a similar crash, I updated Firebase Crashlytics, Analytics, Performance, and RemoteConfig from 8.6.1 -> 8.13.0 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
Hey @luisdelgado24. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@luisdelgado24 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
I've been following the instructions to add sign-in to my iOS app with FirebaseUI. I've already successfully added Firebase to my Xcode project, as well as added FirebaseUI to my Podfile and installed all the relevant pod dependencies. And lastly, I set up only the Google sign-in method, and added the respective handler for sign-in attempts within my
AppDelegate.m
. This is the only file where I have added code, so I'm not doing anything anywhere else. The issue is when I run my app, I'm crashing with a somewhat cryptic message[FBLPromise HTTPBody]: unrecognized selector sent to instance
. I've seen other people having the same issue but no clear answer to what the solution is. I'm just trying to stand-up a basic view-controller with the Google sign-in option.Crash dump
Relevant Code:
You can see my repo with all the files I have locally here
Below is what I have added in my
AppDelegate.m
, where the heavy-lifting is being done in theapplication:didFinishLaunchingWithOptions:
APIThanks in advance for any insights!