iOS Build Environment Help Center

Facebook sdk error

append delete Tien Phan

Window 10
Build verison 3.59
ios SDK 16.4

I can't build the game when adding facebook sdk (tried all sdk versions from 9 to 16, Unity 2019 -> 2023), the specific error is :
+ [arm64] Compiling Libraries\FacebookSDK\SDK\Editor\iOS\Swift\FBSDKTournamentUpdater.swift...
+ [arm64] Compiling Libraries\com.unity.ads\Plugins\iOS\UnityAdvertisement.swift...
Libraries/FacebookSDK/SDK/Editor/iOS/Swift/FBSDKTournamentUpdater.swift:21:8: error: no such module 'FBSDKCoreKit'
import FBSDKCoreKit
^
+ [arm64] Compiling Libraries\FacebookSDK\SDK\Editor\iOS\Swift\FBSDKShareTournamentDialog.swift...
Libraries/FacebookSDK/SDK/Editor/iOS/Swift/FBSDKTournamentUpdater.swift:21:8: error: no such module 'FBSDKCoreKit'
import FBSDKCoreKit
^
+ [arm64] Compiling Libraries\FacebookSDK\SDK\Editor\iOS\Swift\FBSDKTournamentFetcher.swift...
detected compiler error, aborting multithreaded build.
Libraries/FacebookSDK/SDK/Editor/iOS/Swift/FBSDKTournamentUpdater.swift:21:8: error: no such module 'FBSDKCoreKit'
import FBSDKCoreKit
^
Libraries/FacebookSDK/SDK/Editor/iOS/Swift/FBSDKTournamentUpdater.swift:21:8: error: no such module 'FBSDKCoreKit'
import FBSDKCoreKit
^
please help me !

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

Are you using the precompiled Facebook frameworks ? Or did you use CocoaPods ?

append delete #2. Tien Phan

I just downloaded from https://developers.facebook.com/docs/unity/ then imported into unity, used and build project ios ,used your build tool, I don't know how to precomplie or use cocopod, can you guide me ? Thanks !

append delete #3. Tien Phan

After following the instructions, I added the full decomplice framework file to the project but the error still appeared :

1 error generated.
detected compiler error, aborting multithreaded build.
Print file included from Libraries\FacebookSDK\SDK\Editor\iOS\FBUnityInterface.mm:26:
Libraries/FacebookSDK/SDK/Editor/iOS/FBUnitySDKDelegate.h(22,9): fatal error: 'UnityFramework/UnityFramework-Swift.h' file not found
#import <UnityFramework/UnityFramework-Swift.h>

please help me !

append delete #4. Pierre-Marie Baty

I'm sorry but I don't understand this phrase: "I added the full decomplice framework file to the project"

What do you mean exactly ? Please use the exact terms for describing things, or explain in detail what you did.

Do you know what's a compiler, a compilation process ? If you don't, you'll probably have a hard time fixing errors - not much worse than you'd have with Xcode, but in general, some knowledge of how generating C/C++ programs works is highly recommended.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty