Skip to content

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

@Wnntyl

Description

@Wnntyl

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

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