facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

App release failing with v16.3.1

Open zvjerka24 opened this issue 1 year ago • 7 comments

Checklist before submitting a bug report

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

zvjerka24 avatar Jan 03 '24 11:01 zvjerka24

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

gameboys84 avatar Jan 04 '24 07:01 gameboys84

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.

zvjerka24 avatar Jan 04 '24 07:01 zvjerka24

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.

gameboys84 avatar Jan 04 '24 07:01 gameboys84

Downgrade to 16.2.0 should fix your error.

zvjerka24 avatar Jan 04 '24 07:01 zvjerka24

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

gameboys84 avatar Jan 04 '24 08:01 gameboys84

I'm wondering why no one else reported this issue, since this version has been live for almost 1 month.

zvjerka24 avatar Jan 04 '24 09:01 zvjerka24

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.   

gpernelle avatar Jan 28 '24 23:01 gpernelle