Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FBSDKCoreKit cocoapod compilation fails

I installed the new cocoapods version 1.0.2 today (it was 0.39 before) and since then the compilation of FBSDKCoreKit fails with the following error:

'FBSDKCoreKit/FBSDKCopying.h' file not found Could not build Objective-C module 'FBSDKCoreKit'

The line where it happens is the following:

#import <FBSDKCoreKit/FBSDKCopying.h>

I am using Swift and cleaning and building again does not work as well as running pod install again. If I look inside the FBSDKCoreKit folder, there is actually a FBSDKCopying.h file.

Is this error cocoapods related or FBSDK related? Do you know how to fix this error?

like image 302
Ybrin Avatar asked Mar 01 '26 02:03

Ybrin


1 Answers

Try to close Xcode and then in the project folder delete Build and Pods folders and the .xcworkspace file.

Then run pod install from Terminal to recreate the workspace.

This fix the issue for me.

like image 195
tx2 Avatar answered Mar 02 '26 17:03

tx2