facebook-sdk-for-unity icon indicating copy to clipboard operation
facebook-sdk-for-unity copied to clipboard

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

Open utkusaridede opened this issue 1 year ago • 67 comments

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Unity Editor Version: 2020.3.42f1
  • Unity SDK Version: 15.1.0
  • Installation Platform & Verison: [iOS|Android] version 15.1.0

Goals

I want to upgrade the Facebook SDK from 11.0.0 to 15.1.0.

Expected Results

I expect the application to run without a crash.

Actual Results

2022-12-12 10:58:02.112200+0300 X[2885:960799] [general] Error loading /var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/UnityFramework (140): dlopen(/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit Referenced from: <9BADC43E-9E20-3632-B97D-D01CF81F4F4D> /private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/UnityFramework Reason: tried: '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/preboot/Cryptexes/OS@rpath/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/System/Library/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache) 2022-12-12 10:58:02.144931+0300 X[2885:960799] [general] Error loading /var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/UnityFramework (140): dlopen(/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit Referenced from: <9BADC43E-9E20-3632-B97D-D01CF81F4F4D> /private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/UnityFramework Reason: tried: '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/preboot/Cryptexes/OS@rpath/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/UnityFramework.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/private/var/containers/Bundle/Application/69D00D39-D41D-4E4B-B51A-BD2E4D7F88DD/X.app/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2), '/System/Library/Frameworks/FBAEMKit.framework/FBAEMKit' (errno=2, not in dyld cache)

Steps to Reproduce

  • Add OneSignal SDK 3.0.7.
  • Add Firebase SDK 10.2.0 which requires enabling iOS Resolver Setting - "Add use_frameworks! to Podfile"
  • Add Facebook SDK 15.1.0 which states "Add use_frameworks! to Podfile" should not be added as far as I understand.
  • Build and run on the real device. An immediate crash will happen.

Code Samples & Details

A code sample isn't required to reproduce the issue.

It seems that the required Facebook and other frameworks are not included in the Unity-iPhone General "Frameworks, Libraries, and Embedded Content" section if the mentioned use_frameworks! is included in the podfile.

utkusaridede avatar Dec 12 '22 08:12 utkusaridede

I have the same issue, anyone resolved this? ---Edit Fixed this issue by revert SDK version to 14.1.0

go3k avatar Dec 12 '22 10:12 go3k

I have the same issue, anyone resolved this? ---Edit Fixed this issue by revert SDK version to 14.1.0

Reverting to the Facebook SDK 11.0.0 fixes, too. Using the most recent version has a problem.

utkusaridede avatar Dec 12 '22 13:12 utkusaridede

Don't you even test it on the real machine when the release comes out? Speechless FB

SilkageNet avatar Dec 14 '22 06:12 SilkageNet

Same problem. Unity 2021.3.1f1. I just update facebook from 14.1 to 15.1

unf0rgettable avatar Dec 16 '22 09:12 unf0rgettable

Same issue here. Building with Unity 2021.3.16f1 and Facebook SDK 15.1.0. Immediate crash when attempting to run the application on an iOS device.

Rolling back to 14.1.0 which had no issues (apart from the need to manually specify the Android SDK path in the Unity editor).

Hoping for better-tested versions of the SDK down the line. 🤞

plotlessplot avatar Dec 17 '22 18:12 plotlessplot

it seems to relate to this issue in the facebook-ios-sdk https://github.com/facebook/facebook-ios-sdk/issues/2128

i can make the latest version run fine if i make those suggested Podfile updates, then running pod install.

still wish they would properly test there stuff.

cmcpasserby avatar Dec 20 '22 13:12 cmcpasserby

I was not able to fix it by removing ":linkage => :static", because the Firebase SDK seems to rely on it.

However, I noticed that with FB Unity SDK 14.1.0, the generated Podfile had...

use_frameworks! :linkage => :static 
use_frameworks!

...at the end, whereas with 15.1.0 there was only...

use_frameworks! :linkage => :static

I changed my Podfile to the following and it worked correctly. The game loads and seems to be working with no issues. I'm unsure if this can create problems with other SDKs, though.

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

platform :ios, '12.0'

target 'UnityFramework' do
  pod 'AppLovinMediationByteDanceAdapter', '4.8.1.0.1'
  pod 'AppLovinMediationFacebookAdapter', '6.12.0.1'
  pod 'AppLovinMediationFyberAdapter', '8.1.7.1'
  pod 'AppLovinMediationGoogleAdapter', '9.14.0.1'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '9.14.0.1'
  pod 'AppLovinMediationUnityAdsAdapter', '4.4.1.0'
  pod 'AppLovinSDK', '11.6.0'
  pod 'FBSDKCoreKit', '~> 15.1'
  pod 'FBSDKCoreKit_Basics', '~> 15.1'
  pod 'FBSDKGamingServicesKit', '~> 15.1'
  pod 'FBSDKLoginKit', '~> 15.1'
  pod 'FBSDKShareKit', '~> 15.1'
  pod 'Firebase/Analytics', '10.3.0'
  pod 'Firebase/Core', '10.3.0'
  pod 'Firebase/Crashlytics', '10.3.0'
  pod 'Firebase/DynamicLinks', '10.3.0'
  pod 'Firebase/Messaging', '10.3.0'
  pod 'Firebase/RemoteConfig', '10.3.0'
end
target 'Unity-iPhone' do
end
use_frameworks! :linkage => :static
use_frameworks!

plotlessplot avatar Dec 20 '22 14:12 plotlessplot

so for me i just had 1 use_frameworks! at the end of the file, and one after the target 'UnityFramework' do line.


platform :ios, '12.0'

target 'UnityFramework' do
  use_frameworks!
  pod 'AppLovinMediationAdColonyAdapter', '4.9.0.0.2'
  pod 'AppLovinMediationChartboostAdapter', '9.1.0.0'
  pod 'AppLovinMediationFacebookAdapter', '6.12.0.1'
  pod 'AppLovinMediationFyberAdapter', '8.1.7.1'
  pod 'AppLovinMediationGoogleAdapter', '9.14.0.1'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '9.14.0.1'
  pod 'AppLovinMediationHyprMXAdapter', '6.0.3.1'
  pod 'AppLovinMediationInMobiAdapter', '10.1.2.3'
  pod 'AppLovinMediationIronSourceAdapter', '7.2.6.0.1'
  pod 'AppLovinMediationMintegralAdapter', '7.2.8.0.1'
  pod 'AppLovinMediationUnityAdsAdapter', '4.4.1.0'
  pod 'AppLovinMediationVungleAdapter', '6.12.1.1'
  pod 'AppLovinSDK', '11.6.0'
  pod 'AppsFlyerFramework', '6.9.1'
  pod 'FBAudienceNetwork', '> 6.3.0'
  pod 'FBSDKCoreKit', '~> 15.1'
  pod 'FBSDKCoreKit_Basics', '~> 15.1'
  pod 'FBSDKGamingServicesKit', '~> 15.1'
  pod 'FBSDKLoginKit', '~> 15.1'
  pod 'FBSDKShareKit', '~> 15.1'
  pod 'Firebase/Analytics', '10.3.0'
  pod 'Firebase/Core', '10.3.0'
  pod 'Firebase/Crashlytics', '10.3.0'
  pod 'Firebase/Messaging', '10.3.0'
  pod 'Firebase/RemoteConfig', '10.3.0'
end
target 'Unity-iPhone' do
end
use_frameworks!

cmcpasserby avatar Dec 20 '22 14:12 cmcpasserby

Мне не удалось исправить это, удалив ":linkage => :static", потому что Firebase SDK, похоже, полагается на это.

Однако я заметил, что с FB Unity SDK 14.1.0 сгенерированный подфайл...

use_frameworks! :linkage => :static 
use_frameworks!

... в конце, тогда как с 15.1.0 было только...

use_frameworks! :linkage => :static

Я изменил свой Podfile на следующий, и он работал правильно. Игра загружается и работает без проблем. Однако я не уверен, что это может создать проблемы с другими SDK.

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

platform :ios, '12.0'

target 'UnityFramework' do
  pod 'AppLovinMediationByteDanceAdapter', '4.8.1.0.1'
  pod 'AppLovinMediationFacebookAdapter', '6.12.0.1'
  pod 'AppLovinMediationFyberAdapter', '8.1.7.1'
  pod 'AppLovinMediationGoogleAdapter', '9.14.0.1'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '9.14.0.1'
  pod 'AppLovinMediationUnityAdsAdapter', '4.4.1.0'
  pod 'AppLovinSDK', '11.6.0'
  pod 'FBSDKCoreKit', '~> 15.1'
  pod 'FBSDKCoreKit_Basics', '~> 15.1'
  pod 'FBSDKGamingServicesKit', '~> 15.1'
  pod 'FBSDKLoginKit', '~> 15.1'
  pod 'FBSDKShareKit', '~> 15.1'
  pod 'Firebase/Analytics', '10.3.0'
  pod 'Firebase/Core', '10.3.0'
  pod 'Firebase/Crashlytics', '10.3.0'
  pod 'Firebase/DynamicLinks', '10.3.0'
  pod 'Firebase/Messaging', '10.3.0'
  pod 'Firebase/RemoteConfig', '10.3.0'
end
target 'Unity-iPhone' do
end
use_frameworks! :linkage => :static
use_frameworks!

for me it didn't work

unf0rgettable avatar Dec 20 '22 20:12 unf0rgettable

source 'https://cdn.cocoapods.org/'
platform :ios, '12.0'

target 'UnityFramework' do
  pod 'AppLovinMediationAdColonyAdapter', '4.9.0.0.2'
  pod 'AppLovinMediationByteDanceAdapter', '4.8.1.0.1'
  pod 'AppLovinMediationFacebookAdapter', '6.12.0.1'
  pod 'AppLovinMediationGoogleAdapter', '9.14.0.1'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '9.14.0.1'
  pod 'AppLovinMediationIronSourceAdapter', '7.2.6.0.1'
  pod 'AppLovinMediationMintegralAdapter', '7.2.8.0.1'
  pod 'AppLovinMediationUnityAdsAdapter', '4.5.0.0'
  pod 'AppLovinMediationVungleAdapter', '6.12.1.1'
  pod 'AppLovinSDK', '11.6.0'
use_frameworks!
  pod 'FBSDKCoreKit', '~> 15.1'
  pod 'FBSDKCoreKit_Basics', '~> 15.1'
  pod 'FBSDKGamingServicesKit', '~> 15.1'
  pod 'FBSDKLoginKit', '~> 15.1'
  pod 'FBSDKShareKit', '~> 15.1'
  pod 'Firebase/Analytics', '10.1.0'
  pod 'Firebase/Auth', '10.1.0'
  pod 'Firebase/Core', '10.1.0'
  pod 'Firebase/Crashlytics', '10.1.0'
  pod 'Firebase/Storage', '10.1.0'
end
target 'Unity-iPhone' do
end
use_frameworks!

this podfile configuration and pod install WORKS!

unf0rgettable avatar Dec 20 '22 21:12 unf0rgettable

We had the same issue. Using XCode 14.1.0 seems to fix the problem.

kritikosabzorba avatar Dec 21 '22 13:12 kritikosabzorba

I had same issue.. Had to revert FB SDK

KiranJodhani avatar Dec 29 '22 13:12 KiranJodhani

source 'https://cdn.cocoapods.org/'
platform :ios, '12.0'

target 'UnityFramework' do
  pod 'AppLovinMediationAdColonyAdapter', '4.9.0.0.2'
  pod 'AppLovinMediationByteDanceAdapter', '4.8.1.0.1'
  pod 'AppLovinMediationFacebookAdapter', '6.12.0.1'
  pod 'AppLovinMediationGoogleAdapter', '9.14.0.1'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '9.14.0.1'
  pod 'AppLovinMediationIronSourceAdapter', '7.2.6.0.1'
  pod 'AppLovinMediationMintegralAdapter', '7.2.8.0.1'
  pod 'AppLovinMediationUnityAdsAdapter', '4.5.0.0'
  pod 'AppLovinMediationVungleAdapter', '6.12.1.1'
  pod 'AppLovinSDK', '11.6.0'
use_frameworks!
  pod 'FBSDKCoreKit', '~> 15.1'
  pod 'FBSDKCoreKit_Basics', '~> 15.1'
  pod 'FBSDKGamingServicesKit', '~> 15.1'
  pod 'FBSDKLoginKit', '~> 15.1'
  pod 'FBSDKShareKit', '~> 15.1'
  pod 'Firebase/Analytics', '10.1.0'
  pod 'Firebase/Auth', '10.1.0'
  pod 'Firebase/Core', '10.1.0'
  pod 'Firebase/Crashlytics', '10.1.0'
  pod 'Firebase/Storage', '10.1.0'
end
target 'Unity-iPhone' do
end
use_frameworks!

this podfile configuration and pod install WORKS!

these steps worked for me too. Using XCode 14.2 and Facebook SDK 15.1

iremguner avatar Jan 16 '23 20:01 iremguner

In order to modify the generated Podfile directly in Unity you can create a script like this:

using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;

public class PodFilePostProcess : MonoBehaviour
{
#if UNITY_IOS
    [PostProcessBuildAttribute(45)]//must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
    private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
    {
        if (target == BuildTarget.iOS)
        {

            using (StreamWriter sw = File.AppendText(buildPath + "/Podfile"))
            {
                sw.WriteLine("use_frameworks!");
            }
        }
    }
#endif
}

oliverebert avatar Jan 17 '23 12:01 oliverebert

In order to modify the generated Podfile directly in Unity you can create a script like this:

using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;

public class PodFilePostProcess : MonoBehaviour
{
#if UNITY_IOS
    [PostProcessBuildAttribute(45)]//must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
    private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
    {
        if (target == BuildTarget.iOS)
        {

            using (StreamWriter sw = File.AppendText(buildPath + "/Podfile"))
            {
                sw.WriteLine("use_frameworks!");
            }
        }
    }
#endif
}

I am using version 15 and this script allowed my app to launch again on my device (was crashing at launch).

P.S. One issue though, I believe it shouldn't be a monobehaviour. This scripts generally go on the editor folder in Assets, and hence there's no need to inherit from monobehaviour. In fact, (I think) Unity cannot build the project if you attach it to a monobehaviour.

josealvarez97 avatar Jan 22 '23 05:01 josealvarez97

In order to modify the generated Podfile directly in Unity you can create a script like this:

using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;

public class PodFilePostProcess : MonoBehaviour
{
#if UNITY_IOS
    [PostProcessBuildAttribute(45)]//must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
    private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
    {
        if (target == BuildTarget.iOS)
        {

            using (StreamWriter sw = File.AppendText(buildPath + "/Podfile"))
            {
                sw.WriteLine("use_frameworks!");
            }
        }
    }
#endif
}

I am using version 15 and this script allowed my app to launch again on my device (was crashing at launch).

P.S. One issue though, I believe it shouldn't be a monobehaviour. This scripts generally go on the editor folder in Assets, and hence there's no need to inherit from monobehaviour. In fact, (I think) Unity cannot build the project if you attach it to a monobehaviour.

I had issues with my production version. It started crashing again. I am using Unity Cloud build, not sure if there is an issue with that. My development version was working fine on my Mac with my development certificate, but once I uploaded the production version to TestFlight (and App Store in fact), my app was crashing at launch. That was very unfortunate because it happened in production, of course.

Really bothered by this issue.

josealvarez97 avatar Jan 23 '23 13:01 josealvarez97

Same here. Downgraded though

alkanyunus avatar Jan 28 '23 12:01 alkanyunus

Hi, sorry to hear about this issue. We are looking into it to fix in the next version.

Just a couple of questions:

  • Which cocoapods version are you using?
  • Could you try to use cocoapods 1.11.3 ?

We recommended cocoapods 1.11.3 for UnitySDK 15.1.0 -> Upgrade guide: https://developers.facebook.com/docs/unity/upgrading-7.x

Thank you

JordiFB avatar Feb 09 '23 10:02 JordiFB

Hi! @JordiFB

pod --version
1.11.3 UnitySDK 15.1.0

Problem exist! Dear FB Team, it seems that EVERY last versions of SDK i upgraded (..->14.0, 15.1) was not ready for production and crashed. You definetely should do something with QA process, kmon...

..sorry for bold - cant remove style(

artMacBookPro avatar Feb 12 '23 07:02 artMacBookPro

Same issue here, too. "use_frameworks!" is not a viable solution. Please fix.

ahmetyazir22 avatar Feb 20 '23 17:02 ahmetyazir22

  1. Download the Facebook SDK.
  2. Delete the "Required device capabilities" entry in the info.plist file inside all Facebook Frameworks.

stzjunoh avatar Feb 24 '23 06:02 stzjunoh

Revert Facebook SDK to 14.1.0 fix the problem. FFS FB, hire some QA.

Schrodinger123 avatar Feb 27 '23 07:02 Schrodinger123

@artMacBookPro Could you try the latest version 16.0.0? Check the upgrade guide before https://developers.facebook.com/docs/unity/upgrading-7.x

JordiFB avatar Mar 01 '23 13:03 JordiFB

Could you try the latest version 16.0.0?

Tried today. The problem exists FB SDK 16.0.0 Unity 2020.3.45 Xcode 14.2

Apoll0 avatar Mar 03 '23 10:03 Apoll0

Thanks @Apoll0 for testing it. We will continue working on it.

JordiFB avatar Mar 03 '23 12:03 JordiFB

Also if you deselect “link frameworks statically” in external dependency manager everything works as expected WBR3 марта 2023 г., в 14:53, JordiFB @.***> написал(а): Thanks @Apoll0 for testing it. We will continue working on it.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Apoll0 avatar Mar 03 '23 13:03 Apoll0

I get this issue on Facebook SDKs 14 Unity 2021.3.16 LTS (iOS) Xcode 13.4.1 Cocoapods 1.11.3 MacOS 12.6

(SDK 15 & 16 tell me I don't have cocoapods installed and crash the Unity build process)

When submitting to Appstore with SDK 14, the build is rejected with: contains disallowed file 'Frameworks'

try this: https://forum.unity.com/threads/2019-3-validation-on-upload-to-store-gives-unityframework-framework-contains-disallowed-file.751112/#post-7698952

worked for me!

HawkenKing avatar Mar 04 '23 06:03 HawkenKing

Any news on this?

gollobo avatar Apr 04 '23 07:04 gollobo

Same experience for me after updating 14.1.0 to 16.0.0, in 2 projects so far. Unity 2021.3.21 Xcode 14.2 Cocoapods 1.12.0

Haven't tried any of the workarounds so far.

andymads avatar Apr 20 '23 14:04 andymads

A week has already been spent on establishing the work of ios because of fb sdk. How is this possible?

The assembly takes place in Unity Cloud. Accurately reproduced in such combinations:

Unity 2022.2.14f or 2021.3.23f1 (LTS) Xcode - 14.1.0 Fb sdk 16.0.0

DmitrySharov avatar Apr 24 '23 15:04 DmitrySharov