Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker command failed with exit code 1 (use -v to see invocation) #12982

Closed
zhsuperman opened this issue May 17, 2024 · 5 comments
Closed

Linker command failed with exit code 1 (use -v to see invocation) #12982

zhsuperman opened this issue May 17, 2024 · 5 comments

Comments

@zhsuperman
Copy link

Description

ld: warning: Could not find or use auto-linked library 'swiftCompatibility50': library 'swiftCompatibility50' not found
ld: warning: Could not find or use auto-linked library 'swiftCompatibility51': library 'swiftCompatibility51' not found
ld: warning: Could not find or use auto-linked library 'swiftCompatibility56': library 'swiftCompatibility56' not found
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityConcurrency': library 'swiftCompatibilityConcurrency' not found
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements': library 'swiftCompatibilityDynamicReplacements' not found
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityPacks': library 'swiftCompatibilityPacks' not found
ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
Undefined symbols for architecture arm64:
"_swift_FORCE_LOAD$_swiftCompatibility50", referenced from:
_swift_FORCE_LOAD$swiftCompatibility50$_FirebaseAnalytics in FirebaseAnalytics17
_swift_FORCE_LOAD$swiftCompatibility50$_FirebaseCoreInternal in FirebaseCoreInternal4
_swift_FORCE_LOAD$swiftCompatibility50$_FirebaseCrashlytics in FirebaseCrashlytics85
_swift_FORCE_LOAD$swiftCompatibility50$_FirebaseRemoteConfig in FirebaseRemoteConfig18
_swift_FORCE_LOAD$swiftCompatibility50$_FirebaseRemoteConfigInterop in FirebaseRemoteConfigInterop4
_swift_FORCE_LOAD$swiftCompatibility50$_FirebaseSessions in FirebaseSessions6
_swift_FORCE_LOAD$swiftCompatibility50$_FirebaseSharedSwift in FirebaseSharedSwift4
...
"_swift_FORCE_LOAD$_swiftCompatibility51", referenced from:
_swift_FORCE_LOAD$swiftCompatibility51$_FirebaseAnalytics in FirebaseAnalytics17
_swift_FORCE_LOAD$swiftCompatibility51$_FirebaseCoreInternal in FirebaseCoreInternal4
_swift_FORCE_LOAD$swiftCompatibility51$_FirebaseCrashlytics in FirebaseCrashlytics85
_swift_FORCE_LOAD$swiftCompatibility51$_FirebaseRemoteConfig in FirebaseRemoteConfig18
_swift_FORCE_LOAD$swiftCompatibility51$_FirebaseRemoteConfigInterop in FirebaseRemoteConfigInterop4
_swift_FORCE_LOAD$swiftCompatibility51$_FirebaseSessions in FirebaseSessions6
_swift_FORCE_LOAD$swiftCompatibility51$_FirebaseSharedSwift in FirebaseSharedSwift4
...
"_swift_FORCE_LOAD$_swiftCompatibility56", referenced from:
_swift_FORCE_LOAD$swiftCompatibility56$_FirebaseAnalytics in FirebaseAnalytics17
_swift_FORCE_LOAD$swiftCompatibility56$_FirebaseCoreInternal in FirebaseCoreInternal4
_swift_FORCE_LOAD$swiftCompatibility56$_FirebaseCrashlytics in FirebaseCrashlytics85
_swift_FORCE_LOAD$swiftCompatibility56$_FirebaseRemoteConfig in FirebaseRemoteConfig18
_swift_FORCE_LOAD$swiftCompatibility56$_FirebaseRemoteConfigInterop in FirebaseRemoteConfigInterop4
_swift_FORCE_LOAD$swiftCompatibility56$_FirebaseSessions in FirebaseSessions6
_swift_FORCE_LOAD$swiftCompatibility56$_FirebaseSharedSwift in FirebaseSharedSwift4
...
"_swift_FORCE_LOAD$_swiftCompatibilityConcurrency", referenced from:
_swift_FORCE_LOAD$swiftCompatibilityConcurrency$_FirebaseAnalytics in FirebaseAnalytics17
_swift_FORCE_LOAD$swiftCompatibilityConcurrency$_FirebaseCoreInternal in FirebaseCoreInternal4
_swift_FORCE_LOAD$swiftCompatibilityConcurrency$_FirebaseCrashlytics in FirebaseCrashlytics85
_swift_FORCE_LOAD$swiftCompatibilityConcurrency$_FirebaseRemoteConfig in FirebaseRemoteConfig18
_swift_FORCE_LOAD$swiftCompatibilityConcurrency$_FirebaseRemoteConfigInterop in FirebaseRemoteConfigInterop4
_swift_FORCE_LOAD$swiftCompatibilityConcurrency$_FirebaseSessions in FirebaseSessions6
_swift_FORCE_LOAD$swiftCompatibilityConcurrency$_FirebaseSharedSwift in FirebaseSharedSwift4
...
"_swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements", referenced from:
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_FirebaseAnalytics in FirebaseAnalytics17
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_FirebaseCoreInternal in FirebaseCoreInternal4
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_FirebaseCrashlytics in FirebaseCrashlytics85
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_FirebaseRemoteConfig in FirebaseRemoteConfig18
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_FirebaseRemoteConfigInterop in FirebaseRemoteConfigInterop4
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_FirebaseSessions in FirebaseSessions6
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_FirebaseSharedSwift in FirebaseSharedSwift4
...
ld: symbol(s) not found for architecture arm64

Showing Recent Errors Only
Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility50

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility51

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility56

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibilityConcurrency

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements

Linker command failed with exit code 1 (use -v to see invocation)
我使用cocospods 升级firebase到10.25.0版本 报错

我按照readme 操作Other Linker Settings 天际了-ObjC和-lc++ 也添加了空的swift文件 依然解决不了我的问题,希望能解决我的问题

Reproducing the issue

Showing Recent Errors Only
Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility50

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility51

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility56

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibilityConcurrency

Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements

Linker command failed with exit code 1 (use -v to see invocation)

Firebase SDK Version

10.25.0

Xcode Version

15.4

Installation Method

CocoaPods

Firebase Product(s)

AB Testing, Analytics, Crashlytics, DynamicLinks, Installations, ML Model Downloader, Remote Config

Targeted Platforms

iOS

Relevant Log Output

Showing Recent Errors Only
Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility50

Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility51

Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility56

Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency

Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements

Linker command failed with exit code 1 (use -v to see invocation)

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@kunal08pandey
Copy link

I am also facing the same issue

@paulb777
Copy link
Member

Please see if anything in the discussion at #12603 helps.

@google-oss-bot
Copy link

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

@zhsuperman
Copy link
Author

在项目中添加一个swift文件就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants