firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.67k stars 1.49k forks source link

Xcode12.2 use Carthage install Firebase crashlytics and build error #8481

Closed KC-218 closed 3 years ago

KC-218 commented 3 years ago

[REQUIRED] Step 1: Describe your environment

截圖 2021-07-29 16 56 01

And I want to use Crashlytics in Xcode12, What's wrong with my issue?

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur? Build the APP and got an error

ld: in /Users/xx/Desktop/xx/xx/xx/xx/xx/xx/xx/xx/Carthage/Build/iOS/FirebaseRemoteConfig.framework/FirebaseRemoteConfig(FIRConfigValue.o), building for iOS Simulator, but linking in object file built for Mac Catalyst, file '/Users/xx/xx/xx/xx/xx/xx/xx/xx/xx/xx/Carthage/Build/iOS/FirebaseRemoteConfig.framework/FirebaseRemoteConfig' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

And I use these commands to install frameworks.

carthage update --platform iOS --no-use-binaries --use-xcframeworks
or
carthage update --platform iOS --no-use-binaries

google-oss-bot commented 3 years ago

I found a few problems with this issue:

gronico commented 3 years ago

And the error is?

paulb777 commented 3 years ago

--no-use-binaries might be an issue since Firebase only supports binaries.

Duplicate question at https://stackoverflow.com/questions/68630216/xcode12-2-use-carthage-install-firebase-crashlytics-and-build-error

google-oss-bot commented 3 years ago

Hey @Bruce9487. 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!

google-oss-bot commented 3 years ago

Since there haven't been any recent updates here, I am going to close this issue.

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