Comments (12)
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>
from facebook-sdk-for-unity.
Removing removing ":linkage => :static" fixed it in UCB at least for ad hoc profile.
You can do it in Unity as well:
from facebook-sdk-for-unity.
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.
Same issue on our side, it's exploding by not including the FBAEMKit as expected.
from facebook-sdk-for-unity.
Same issue here
from facebook-sdk-for-unity.
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.
@SaariTech, @HanzaRu, @eranroza
FWIW - I think this might be a dupe/reoccurrence of this issue: #659
from facebook-sdk-for-unity.
@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.
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.
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.
@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.
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)
- "_valueToSum" parameter in the event manager is empty when upgraded to SDK v16.0.1 HOT 2
- FacebookSDK generates excessive permanent GC memory
- HideUnityDelegate not used on Android?
- InvalidCastException : Unable to cast object of type ‘EditorFacebook’ to type ‘AndroidFacebook’
- [Android] Auto-Logging Purchase Issue after upgrading to Play Billing Library 5 HOT 3
- DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead HOT 4
- Feature Request: Remove BOM from info.plist
- Library Conflict In unity
- Fetching profile picture results in empty texture2d HOT 1
- Exception: Too many receivers, total of 1000 HOT 1
- AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='setIsUnityInit'
- FBUnityLoginActivity crash int java.lang.Enum.ordinal()' HOT 2
- Feature Request: Support App Privacy Manifest HOT 24
- missing Microsoft Xbox's build targets (using in 2020.3.x and higher) HOT 1
- [IOS] Unity Crashes on Startup with Deep Link Launch EXC_BAD_ACCESS (code=1, address=0x378) HOT 21
- Android 34 / FB SDK - can't build ( A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade ) HOT 7
- Login from developer account
- Feature Request: Request Newest Facebook SDKv17.0.0 for unity HOT 9
- Facebook SDK does not work with Unity 2023
- Feature Request: malloc deallocate buffer in iOS SDK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-sdk-for-unity.