Coder Social home page Coder Social logo

Comments (12)

santiagomartinJC avatar santiagomartinJC commented on May 1, 2024 2

I could fix this by adding the addToAllTargets parameter in dependecies.xml
./Assets/FacebookSDK/Plugins/Editor/Dependencies.xml


    <iosPods>
        <iosPod name="FBSDKCoreKit_Basics" version="~> 15.1" **addToAllTargets="true"** />
        <iosPod name="FBSDKCoreKit" version="~> 15.1" **addToAllTargets="true"**/>
        <iosPod name="FBSDKLoginKit" version="~> 15.1" **addToAllTargets="true"**/>
        <iosPod name="FBSDKShareKit" version="~> 15.1" **addToAllTargets="true"**/>
        <iosPod name="FBSDKGamingServicesKit" version="~> 15.1" **addToAllTargets="true"**/>
    </iosPods>

#659 (comment)

from facebook-sdk-for-unity.

vg-swift avatar vg-swift commented on May 1, 2024 1

Removing removing ":linkage => :static" fixed it in UCB at least for ad hoc profile.
You can do it in Unity as well:
image

from facebook-sdk-for-unity.

SaariTech avatar SaariTech commented on May 1, 2024

This is the crash log from iPhone simulator, seems like FBAEMKit wasn't included in the final product. Tested with SDK 16.0.1.

2023-06-03 13:34:40.519121+0200 My App[9209:106057] [general] Error loading /Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/UnityFramework.framework/UnityFramework (238): dlopen(/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit Referenced from: <0F7CEFEA-027B-3BA7-B1D3-E981DFD46333> /Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/UnityFramework Reason: tried: '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/FBAEMKit.framework/FBAEMKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file, no dyld cache), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file, no dyld cache), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file) 2023-06-03 13:34:40.700404+0200 My App[9209:106057] [general] Error loading /Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/UnityFramework.framework/UnityFramework (238): dlopen(/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit Referenced from: <0F7CEFEA-027B-3BA7-B1D3-E981DFD46333> /Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/UnityFramework Reason: tried: '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/FBAEMKit.framework/FBAEMKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file, no dyld cache), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file, no dyld cache), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/Xcode/DerivedData/Unity-iPhone-ffvdbyfnpuaetdhbusuxcqfzwxdn/Build/Products/ReleaseForRunning-iphonesimulator/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/jonatan/Library/Developer/CoreSimulator/Devices/0050B98B-017D-4FF6-AC6A-B8B8318E95C3/data/Containers/Bundle/Application/DE855322-5A70-4469-B666-CB6AD5532E0B/ My App.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file)

from facebook-sdk-for-unity.

HanzaRu avatar HanzaRu commented on May 1, 2024

Same issue on our side, it's exploding by not including the FBAEMKit as expected.

from facebook-sdk-for-unity.

eranroza avatar eranroza commented on May 1, 2024

Same issue here

from facebook-sdk-for-unity.

DaveMariner avatar DaveMariner commented on May 1, 2024

It's crashing in the same way for me, for local builds. Doesn't seem to matter which version of the SDK I use either.

from facebook-sdk-for-unity.

DaveMariner avatar DaveMariner commented on May 1, 2024

@SaariTech, @HanzaRu, @eranroza

FWIW - I think this might be a dupe/reoccurrence of this issue: #659

from facebook-sdk-for-unity.

vg-swift avatar vg-swift commented on May 1, 2024

@SaariTech, @HanzaRu, @eranroza

FWIW - I think this might be a dupe/reoccurrence of this issue: #659

The fix from that thread didn't work for me.
I think it also needs one of these, or all of them:

  • CocoaPods to 1.12.1
  • XCode 14.3.1

from facebook-sdk-for-unity.

vg-swift avatar vg-swift commented on May 1, 2024

I tried multiple permutations of the fixes, and I can say that on Unity Build Automation the only thing needed is to disable Link frameworks statically. (Add use_frameworks! to Podfile is already enabled by default in Google External Dependency Manager)
This is also NOT necessary: addToAllTargets="true"
I use xcode 14.2.0 and Unity mentioned that Cocoapods are either 1.12.0 or 1.12.1 on their machines.

Can confirm that Cocoapods version matters, the build crashes on Cocoapods 1.11.x

from facebook-sdk-for-unity.

vg-swift avatar vg-swift commented on May 1, 2024

Thank you for coming to my Ted Talk, it works for release builds as well, they get uploaded to AppStore and no crashes. I also tested it on a Jenkins CI.
I spend 3-4 full working days testing this, would be nice if someone could confirm that these changes work for them too.

from facebook-sdk-for-unity.

dcosmin-97 avatar dcosmin-97 commented on May 1, 2024

@vg-swift Thank you for your post! So you solve it by unchecking the Link frameworks statically ? I am trying to see if 16.0.2 will solve the issue by itself, but I don't think so!

from facebook-sdk-for-unity.

Spud6703 avatar Spud6703 commented on May 1, 2024

My app crashes at launch after adding the Facebook 16.0.2 SDK with the same problem. When I unchecked "Link frameworks statically" I get errors building in XCode "DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead" for various SDKs such as AppLovin and Unity Ads mediation.

from facebook-sdk-for-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.