Skip to content

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

Closed
@zhsuperman

Description

@zhsuperman

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions