New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module 'FBSDKCoreKit' not found #1102
Comments
|
It seems add these code in version 5.9 and 5.10. if change back the version to 5.8. It's still ok |
|
The downgrade from version 5.10 to 5.8 worked for me. Thank you. |
This comment has been minimized.
This comment has been minimized.
|
Is this issue unity specific? Are you able to reproduce this using FBSDKCoreKit v5.10.0 via Cocoapods in a sample project? |
|
I ask because in a new sample project with a very simple Podfile that just includes: Have you tried cleaning and removing derived data? (probably not the solution but usually helps surface things) |
Are you using use_frameworks! in your sample project? Without it, the import should fail. Also, adding the modular_headers flag should fix the issue: |
|
Same error with this config: I solved the problem by doing the following:
Here is my full Podfile in case you need more details: |
|
@nicolasform, using the This is clearly not a good solution and I will revisit using Apologies for the inconvenience. Going to close this for now as there is a plan to fix as well as the two workarounds:
Thanks a ton @polmum for saving me the valuable time of finding the modular headers fix. :D |
|
Pushed updated versions of the pods. Please try again without any workarounds. :D |
|
@joesus I don't see any new releases. Any advice on how to get the update "to take"? |
It is bad practice but I decided it made sense in this case to overwrite the pushed pods because they were mis-released and unusable. If you deintegrate your pods 'pod deintegrate' and reinstall 'pod install' you should get the current code. I would also recommend the usual incantation of deleting derived data and cleaning the build folder. |
Thanks, that solved my problem after a lot of brainstorming trying to solve |
|
@floriangbh, thanks for bringing this up! I am kicking myself! 😣Fix pushed to #1106. Feel free to point your package to that branch and let me know if it works. Hoping to get this into the first patch release sometime in the near future! |
|
@joesus thanks for the quick-fix ! It seem to be ok when I targeting the |
|
On my side the branch didn't change anything, I was still unable to compile, but |
same here, this is not fixed yet |
|
Same here, with version 5.10.1 this is not fixed yet. |
|
really stupid... |
|
5.8.0 doesn't work for me... |
|
Open Xcode and add -fcxx-modules to Build Settings->Other C++ Flags->Debug and Release fields. |
|
Yes as stated above, the facebook-unity-sdk-7.17.2 worked when it pointed to version 5.8. |
Its a stupid question but i really don't know where do i update 5.8 inplace of 5.10. |
|
Should be fixed for Unity projects with: #1122 |
|
I couldn't avle to resolve this issue.
Kindly guide me if any1 resolved this issue
…On Mon, 18 Nov 2019, 9:18 pm Joe Susnick, ***@***.***> wrote:
Should be fixed for Unity projects with: #1122
<#1122>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1102?email_source=notifications&email_token=ALX3CE27J6DL6SJ3D4TSHPTQUK545A5CNFSM4JKW2PE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEK75YA#issuecomment-555089632>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALX3CE7TFRJ3FQ35TW4SY43QUK547ANCNFSM4JKW2PEQ>
.
|
|
Yep, we are still stuck. pod 'FBSDKCoreKit', :modular_headers => true Does not seem to change anything. We need more information. I changed all 10 files to #import instead of @import, and then it was all reverted the next build I made. |
|
Ok, thanks. I believe this was installed from the Unity package 'facebook-unity-sdk-7.18.0' so I will try 'facebook-unity-sdk-7.17.2' which sounds like it uses 5.8? |
|
The problem is that they use ~> 5.2 which is picking the latest 5.x build.
So you just need to find your Dependencies.xml file and change the ~> 5.2 to = 5.8
… On Nov 26, 2019, at 7:57 PM, jeffposey ***@***.***> wrote:
Ok, thanks. I believe this was installed from the Unity package 'facebook-unity-sdk-7.18.0' so I will try 'facebook-unity-sdk-7.17.2' which sounds like it uses 5.8?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
After I update from ~> 5.2 to 5.8.0 the CoreKit problem disappears buy now ShareKit is not found, Could you please release a new Facebook SDK for Unity if you have solved it in iOS? None of the Unity SDK versions build on iOS and I really don't know what should we do, we are stuck here. |
This solved my issue. |
|
did you try 5.8 instead of 5.8.0 ?
…On Thu, Jan 9, 2020 at 3:10 AM Jason Phan ***@***.***> wrote:
Neither solution worked for me. flutter clean, clear DerivedData, pod
deintegrate, then even tried explicitly stating FBSDK* to be 5.8.0 and set
modular header to true in podfile did not do the trick. App is still
running perfectly fine in the iOS/Android emulators.
pod 'FBSDKCoreKit', '5.8.0', :modular_headers => true
pod 'FBSDKLoginKit', '5.8.0'
Any other suggestions?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1102?email_source=notifications&email_token=AGJLYGBUU2G6D6UBQJYALIDQ43LY5A5CNFSM4JKW2PE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIPMPMQ#issuecomment-572442546>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGJLYGBTZZGFKJ4REXCZRHDQ43LY5ANCNFSM4JKW2PEQ>
.
|
|
@adamlucktastic - I tried '5.8'; still set to 5.8.0 with the same error. So far, I've tried downgrading the version to 5.8, use modular headers, add missing framework search path, and manually add the framework but no luck - Nothing works. The weird thing is building succeeds and I'm able to login successfully via Facebook on the iOS emulator. I just can't archive it to publish the app. |
|
Have you install pod for unity build Xcode project. It helped me fix the
issue.
Write cd & drag Unity-iphone.xcodeproj in terminal & press enter
then write pod install in terminal. it will install pod file & xcworkspace
file in your Xcode project.
open that file & build the Xcode project from Xcode.
I hope it helps.
…On Fri, Jan 10, 2020 at 7:44 AM Jason Phan ***@***.***> wrote:
@adamlucktastic <https://github.com/adamlucktastic> - I tried '5.8';
still set to 5.8.0 with the same error. So far, I've tried downgrading the
version to 5.8, use modular headers, add missing framework search path, and
manually add the framework but no luck - Nothing works. The weird thing is
building succeeds and I'm able to login successfully via Facebook on the
iOS emulator. I just can't archive it to publish the app.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1102?email_source=notifications&email_token=ALX3CE5FO3SAFFKMCO642ATQ47OKJA5CNFSM4JKW2PE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISPTBA#issuecomment-572848516>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALX3CE2M7KJFDN3WTYLCGB3Q47OKJANCNFSM4JKW2PEQ>
.
|
|
For anyone that this issue still happens, can you guys try to add |
|
@ZebingZong I tried setting use_frameworks! right after platform declaration as well but no luck. I even tested it with use_modular_headers! but still can't archive the iOS app. I created a new Flutter app and able to archive it with no problem. There's something funky going on with FB SDK. It's never good to have too many dependencies/pods - I'm considering an alternative login method. |
|
@umairh2018 Thanks for the help. I'm actually using FBSDK on Flutter iOS. Tested most of the solutions proposed on the web and still unable to archive it. Possibly building an alternative by end of the week. |
|
@jasondphan sorry for the unpleasure experience but we are actively working on the fix. Because it is holidays seasons, so the response is slower than usual. Have you tried with some early versions of FBSDK (e.g., 5.5.0) to unblock yourself? And please make sure you delete 1) Podfile.lock 2) Pods folder 3) yourprojectname.xcworkspace. And also clean the build for xcode before you try to build new project with new podfile. |
|
@ZebingZong Thank you for working on a fix for this critical error. Yes, I've been carefully cleaning and deleting the needed files/folders before each podfile run. Just tested it with 5.5.0 and can't archive. After commenting out import FBSDKCoreKit in the AppDelegate.swift to see where it takes me, I'm now getting errors in the GeneratedPluginRegistrant.m file stating some of the @import modules are missing. Not sure if this is related or another Swift/Obj-C issue. ` - FBSDKCoreKit (5.5.0):
|
|
Hmm, it is very interesting. Can you please share the podfile for your project? Also which interface that you are using for FBSDK (Objective-C / Swift / Unity)? |
|
The interface is compiled to Objective-C from Flutter and using flutter_facebook_login package. Podfile below: // CocoaPods analytics sends network stats synchronously affecting flutter build latency. project 'Runner', { def parse_KV_file(file, separator='=') target 'Runner' do // Flutter Pod copied_flutter_dir = File.join(dir, 'Flutter') end // Keep pod path relative so it can be checked into Podfile.lock. // Plugin Pods // Prepare symlinks folder. We use symlinks to avoid having Podfile.lock // Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. post_install do |installer| // To resolve FirebaseCore missing headers when building for iOS pod 'Firebase/Analytics' // pod 'FBSDKCoreKit' // didn't work // Didn't work // Didn't work // pod 'FBSDKCoreKit', '~> 5.8', :modular_headers => true // didn't work |
|
So to make sure I understand your issue, you are actually being able to compile and build the project with FBSDK but only encounter the issue when you are trying to archive it. If this is correct, I think your issue is not directly related to this one. I would suggest you to open another issue and give detailed explanation there to avoid the confusion. Thanks for your cooperation! |
Correct, "Module 'FBSDKCoreKit' not found" when trying to archive to publish the app. I'll create a separate issue if I can't solve this by end of Sunday or use a different login method. Thanks for your time @ZebingZong |
|
Are you having archiving or distributing to the store. Can you provide some of the errors you’re seeing ?
… On Jan 10, 2020, at 12:02 AM, umairh2018 ***@***.***> wrote:
Have you install pod for unity build Xcode project. It helped me fix the
issue.
Write cd & drag Unity-iphone.xcodeproj in terminal & press enter
then write pod install in terminal. it will install pod file & xcworkspace
file in your Xcode project.
open that file & build the Xcode project from Xcode.
I hope it helps.
On Fri, Jan 10, 2020 at 7:44 AM Jason Phan ***@***.***> wrote:
> @adamlucktastic <https://github.com/adamlucktastic> - I tried '5.8';
> still set to 5.8.0 with the same error. So far, I've tried downgrading the
> version to 5.8, use modular headers, add missing framework search path, and
> manually add the framework but no luck - Nothing works. The weird thing is
> building succeeds and I'm able to login successfully via Facebook on the
> iOS emulator. I just can't archive it to publish the app.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1102?email_source=notifications&email_token=ALX3CE5FO3SAFFKMCO642ATQ47OKJA5CNFSM4JKW2PE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISPTBA#issuecomment-572848516>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALX3CE2M7KJFDN3WTYLCGB3Q47OKJANCNFSM4JKW2PEQ>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
How is this closed? 😂 |
|
Also rolling back to |
@adamlucktastic - Archiving to release to the App store. It's working perfectly on the emulator. The only error I was seeing was "Module 'FBSDKCoreKit' not found". I even tried writing a custom header but it wouldn't take it. Tried Swift 4.2 and 5 too. In the end, I opted for a better login method for my target audience. Thanks for jumping in. @developer239 - word. |
|
Changing |
Please do not do or advise doing this. Happy to help diagnose the issue with using the latest version of the FBSDKCoreKit pod. Also, just so we can improve the documentation. How did you decide to use ‘pod FacebookCore’? Did you read this somewhere? |
|
@joesus |
Good to know! I’ll make sure we get that updated to avoid future confusion! |
|
Anybody can resolve my this issue
https://stackoverflow.com/questions/59062922/facebook-banner-ad-issue-in-unity
Can't able to use banner ad in unity
…On Sat, 18 Jan 2020, 10:55 pm Joe Susnick, ***@***.***> wrote:
@joesus <https://github.com/joesus>
Thanks for your advice.
At first, I read Facebook Analytics Quickstart Guide for iOS
<https://developers.facebook.com/docs/analytics/quickstart-list/ios>
So I didn't notice that.
Good to know! I’ll make sure we get that updated to avoid future confusion!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1102?email_source=notifications&email_token=ALX3CEYT3WGKSV5VQCV36KLQ6M7C5A5CNFSM4JKW2PE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJJ6H7A#issuecomment-575923196>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALX3CE5AOCA4WPYPVZ6P44TQ6M7C5ANCNFSM4JKW2PEQ>
.
|
|
I am using the facebook audience network in Unity for advertisement. I am currently facing an issue while showing facebook banner ads in unity. Just when i call banner ad show call. Exception triggers: java.lang.illegalargumentexception: adsize at com.facebook.ads.redexgen.x.8h.(:18251) Anybody knows how can I resolve this issue? Thanks in advance |
|
@umairh2018 please open a new issue with steps to reproduce. |
|
The openers issue has been resolved. Comments on this issue are not longer helpful. Locking it. |

Checklist
Environment
11.2Goals
build iOS Project Successful
Expected Results
no compile error
Actual Results
has compile error
" Module 'FBSDKCoreKit' not found "
Steps to Reproduce
export iOS Project from Unity and build
Code Samples & Details
notice the error from below code
the compile execute the else part then throw a error.
when replace all these code with
it work's perfect.
The text was updated successfully, but these errors were encountered: