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

FB SDK 17.0.1+ crashes on iOS 13.1.3: relative file paths not allowed '@rpath/libswiftXPC.dylib' #2430

Open
5 tasks done
Wnntyl opened this issue May 28, 2024 · 2 comments
Open
5 tasks done

Comments

@Wnntyl
Copy link

Wnntyl commented May 28, 2024

Checklist before submitting a bug report

Xcode version

15.0.1

Facebook iOS SDK version

17.0.2

Dependency Manager

CocoaPods

SDK Framework

Other / I don't know

Goals

I want my app to be able to start

Expected results

I expect not to have a crash

Actual results

Hi!

Short: Our game crashes on launch on iOS 13.1.3 with FB SDK 17.0.1 and 17.0.2.

Log:

May 22 16:38:45 iPhone-XS-QA MyApp(CoreFoundation)[387] : Error loading /var/containers/Bundle/Application/99834DD0-4983-46BC-A990-0725895ABFC2/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/99834DD0-4983-46BC-A990-0725895ABFC2/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): relative file paths not allowed '@rpath/libswiftXPC.dylib'

More info:

  • The case is 100% reproducible on iOS 13.1.3 with FB SDK 17.0.1+
  • FB SDK v17.0.0 is fine, no crash. The older versions don't crash either.
  • Device: XS Max
  • We don't see the crash on more recent major versions of iOS, like 14, 15, 16, 17 - they're OK.
  • We tested it with an empty project. Only the FB SDK was integrated. So there was no interference from other SDKs.
  • We only have one device with iOS 13. We don't know how many old versions are affected. Interestingly, this message may indicate that there is no crash on iOS 13.4.1

Our game supports iOS 12+. Since the v17.0.1+ is mandatory because of the Apple Privacy Manifest support, we are going to ship an update soon knowing some of our users, including payers, won't be able to launch the game which is unfortunate.

Steps to reproduce

  • Build an iOS app with FB SDK v17.0.1+
  • Try to launch it on iOS 13.1.3
    Some other older iOS versions may be affected too.

Code samples & details

// A podfile from the empty test project:

source 'https://cdn.cocoapods.org/'

platform :ios, '12.0'

target 'UnityFramework' do
  pod 'FBSDKCoreKit', '17.0.2'
  pod 'FBSDKCoreKit_Basics', '17.0.2'
  pod 'FBSDKGamingServicesKit', '17.0.2'
  pod 'FBSDKLoginKit', '17.0.2'
  pod 'FBSDKShareKit', '17.0.2'
end
target 'Unity-iPhone' do
end
@jksmx
Copy link

jksmx commented Jun 17, 2024

swiftXPC require iOS17.4+, iOS17.4+ require XCode15.3
So, you need upgrade XCode version to 15.3 to resolve this problem.

Info from follow links:

You can follow my step to find why it happen :

  1. download & unzip firebase ios sdk
  2. Go to folder where contain FBAEMKit
  3. ar -x FBAEMKit non-fat file, you can get many .o file
  4. use nm -u *.o to check link symbol .

follow log is some of my result , you can find __swift_FORCE_LOAD_$_swiftXPC

SKAdNetworkReporting.o:
__swift_FORCE_LOAD_$_swiftCompatibility50
__swift_FORCE_LOAD_$_swiftCompatibility51
__swift_FORCE_LOAD_$_swiftCompatibility56
__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency
__swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements
__swift_FORCE_LOAD_$_swiftCoreFoundation
__swift_FORCE_LOAD_$_swiftDarwin
__swift_FORCE_LOAD_$_swiftDispatch
__swift_FORCE_LOAD_$_swiftFoundation
__swift_FORCE_LOAD_$_swiftObjectiveC
__swift_FORCE_LOAD_$_swiftXPC

@guojunliu
Copy link

swiftXPC require iOS17.4+, iOS17.4+ require XCode15.3 So, you need upgrade XCode version to 15.3 to resolve this problem.

Info from follow links:

You can follow my step to find why it happen :

  1. download & unzip firebase ios sdk
  2. Go to folder where contain FBAEMKit
  3. ar -x FBAEMKit non-fat file, you can get many .o file
  4. use nm -u *.o to check link symbol .

follow log is some of my result , you can find __swift_FORCE_LOAD_$_swiftXPC

SKAdNetworkReporting.o:
__swift_FORCE_LOAD_$_swiftCompatibility50
__swift_FORCE_LOAD_$_swiftCompatibility51
__swift_FORCE_LOAD_$_swiftCompatibility56
__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency
__swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements
__swift_FORCE_LOAD_$_swiftCoreFoundation
__swift_FORCE_LOAD_$_swiftDarwin
__swift_FORCE_LOAD_$_swiftDispatch
__swift_FORCE_LOAD_$_swiftFoundation
__swift_FORCE_LOAD_$_swiftObjectiveC
__swift_FORCE_LOAD_$_swiftXPC

I am using Xcode15.3 and Xcode15.4 and this crash still occurs on iOS13.1.2 devices

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

3 participants