Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
11.25.1.21.8.4Integrate with Cocoapods and Build successfully.
A successful build.
Compiling failed: #import "FBSDKCoreKit+Internal.h" <- FBSDKCoreKit+Internal.h file not found.
pod 'FBSDKLoginKit' in a PodfileThe issue appears with 5.9.0, and still exists with 5.10.0, while 5.8.0 compiles with no problem.
I checked the file history and apparently the changes here should be responsible for the issue.
https://github.com/facebook/facebook-ios-sdk/commit/f3be0dab4cfbd5c917014e42e8d148aa7a43b8e2#diff-b35b108f781c427e84771f1f2869ef75L24
Have you cleaned the build folder before rebuilding? I am able to build locally using Xcode 11.1 and 11.2 without issue.
It would also be helpful to post a link to a sample app where this is happening. I am unable to reproduce this locally.
@joesus I check it again and now things are getting weird for me.
For the original project, I tried cleaning the build folder and derived destinations, build issue still exists for 5.9.0 & 5.10.0 and gone for 5.8.0. Results are reproducible on multiple macs.
For a new empty project I created, 5.10.0 builds fine without problem.
So seems there might be some legacy settings in my project that is causing this error. I'm looking into it.
You may also consider using SPM for this project if you are not already significantly invested in Cocoapods. 馃檪
@joesus Unluckily I have a 245 lines podfile 馃槶
Going to close this for now since it seems like a legacy build settings issue. Please post any relevant findings as it may help someone with a similar setup. Thanks!!!
There's a PR to handle this:
https://github.com/facebook/facebook-ios-sdk/pull/1106
@joesus I found where the problem is:
Add this line to Podfile, then the error could be reproduced.
install! 'cocoapods', :generate_multiple_pod_projects => true
So seems there's some compatibility issues with the cocoapods generate_multiple_pod_projects parameter.
Correct. Will be fixing this ASAP. Thanks for your patience!