facebook-ios-sdk
facebook-ios-sdk copied to clipboard
App release failing with v16.3.1
Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing GitHub issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
14.2
Facebook iOS SDK version
16.3.1
Dependency Manager
SPM
SDK Framework
Core
Goals
Release the app to the app store
Expected results
App release (linking) is failing while releasing with Xcode 14.2. For some internal reasons, the pipeline has to use this version of the Xcode.
When I revert the version to the previously used v16.2.0, the app is linking fine.
Actual results
⚠️ ld: Could not find or use auto-linked library 'swiftCompatibilityPacks' ⚠️ ld: Could not find or use auto-linked library 'swiftCompatibility56' ⚠️ ld: Could not find or use auto-linked library 'swiftObservation' ⚠️ ld: Could not find or use auto-linked framework 'Symbols'
❌ ld: symbol(s) not found for architecture arm64
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to reproduce
No response
Code samples & details
No response
same Xcode & Facebook version as you, but my build issue is this:
Showing All Issues ⚠️Could not find or use auto-linked library 'swiftCompatibilityPacks' ⚠️Could not find or use auto-linked library 'swiftCompatibility56' ⚠️Could not find or use auto-linked library 'swiftObservation' ⚠️Could not find or use auto-linked framework 'CoreAudioTypes' ⚠️Could not find or use auto-linked framework 'Symbols' ❌Undefined symbol: _$s10Foundation3URLV6string25encodingInvalidCharactersACSgSSh_SbtcfC ❌Undefined symbol: OBJC_CLASS$_FBSDKBridgeAPI ❌Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility56
Hi @gameboys84, While looking into your issues I remember that at some point I had the same one. ❌Undefined symbol: _$s10Foundation3URLV6string25encodingInvalidCharactersACSgSSh_SbtcfC
It seems the error depends on what other libs you have. Since I updated multiple libraries at the same time, initially I didn't know which one was problematic and I was reverting one by one. At some point that was the error.
Hi @gameboys84, While looking into your issues I remember that at some point I had the same one. ❌Undefined symbol: _$s10Foundation3URLV6string25encodingInvalidCharactersACSgSSh_SbtcfC
It seems the error depends on what other libs you have. Since I updated multiple libraries at the same time, initially I didn't know which one was problematic and I was reverting one by one. At some point that was the error.
Thanks for the reply, I just upgrade the Facebook sdk from 12.3.1 to 16.3.1, and fixed some other errors, and this is the last 3 error of my project.
Furthermore, I saw this error sometimes, and not sure there is relative or not.
Failed to build module 'FBSDKGamingServicesKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)', while this compiler is 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.
Downgrade to 16.2.0 should fix your error.
Downgrade to 16.2.0 should fix your error.
Yes, a friend in need is truly indeed.
I just try the version 14.1, 15.1 is OK, and 16.2.1 is OK too..
This must be an ISSUE! @facebook-github-bot
I'm wondering why no one else reported this issue, since this version has been live for almost 1 month.
Having the same issue since couple of days. What is the best way to downgrade to 16.2.1?
Here is the issue in my case:
Swift Compiler Error (Xcode): No such module 'FBSDKShareKit'
/Users/g/github/apps/audioguide/audioguide_app/build/ios/Debug-iphonesimulator/FBSDKGamingServicesKit.framework/Modules/FBSDKGamingServi
cesKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:6:7
Swift Compiler Error (Xcode): Failed to build module 'FBSDKGamingServicesKit'; this SDK is not supported by the compiler (the SDK is built with
'Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)', while this compiler is 'Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56
clang-1500.1.0.2.5)'). Please select a toolchain which matches the SDK.
/Users/g/Library/Developer/Xcode/DerivedData/Runner-azjftqqdqoeotfgjdztbsetgtlgo/SourcePackages/checkouts/facebook-ios-sdk/Sources/Faceb
ookGamingServices/Exports.swift:9:18
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.