NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
190 stars 107 forks source link

nativescript/facebook iOS crash since 2.2.0 #471

Closed felixkrautschuk closed 1 year ago

felixkrautschuk commented 1 year ago

After upgrading nativescript/facebook from 2.1.3 to 2.2.0, the iOS app is crashing right after the start.

Termination Reason: DYLD 1 Library missing Library not loaded: @rpath/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics

@NathanWalker seems to be related to this commit: https://github.com/NativeScript/plugins/commit/e4604e60c9b2780aea0c79788af0255caf69cf26

felixkrautschuk commented 1 year ago

With latest NativeScript components (nativescript/core 8.5.3, nativescript/ios 8.5.1, cli 8.5.3), the error message looks a bit different:

Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit

I see other issues/discussions about that crash, however they are mostly related to Unity apps. https://developers.facebook.com/community/threads/1241428960053832/ https://github.com/facebook/facebook-sdk-for-unity/issues/659 https://github.com/facebook/facebook-ios-sdk/issues/2128

I tried some of the "workarounds", but I was not able to find a working solution. I am not an iOS expert though...

If no one else finds a way, this plugin should stick go back to version 14.1.0 for Facebook on iOS (crashes occor from 15.0.0+).

felixkrautschuk commented 1 year ago

The issue is/was related to Codoapods version for some reason. I was using 1.11.3 and after upgrading to 1.12.1, the crash does not happen anymore.