facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.78k stars 3.54k forks source link

'../FBSDKMath.h' file not found #722

Closed winzig closed 9 years ago

winzig commented 9 years ago

Trying to use the 4.x Facebook SDK in Version 6.3 (6D554n), in a Swift project (so Swift 1.2). I have use_frameworks! on in my Podfile.

When I try to build my project, I get this error:

.../Pods/Facebook-iOS-SDK/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKUIUtility.h:23:9: '../FBSDKMath.h' file not found

Any ideas?

ninjudd commented 9 years ago

I'm encountering this same error.

ninjudd commented 9 years ago

Actually, I get the issue described in #716 first, then when I click "Validate Project Settings, Update to recommended settings", I get this error.

I am using CocoaPods version 0.36.3 and use_frameworks!, which is necessary to use Cartography.

ninjudd commented 9 years ago

FYI, I just installed the SDK manually instead of via CocoaPods, and that worked.

I did have to install Bolts using CocoaPods though. Using the one in the FacebookSDK download gave me the following error:

Documents/FacebookSDK/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h:21:9: Include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKAppLinkResolver'
deeprnd commented 9 years ago

me too but with different file - "AppEvents/FBSDKAppEvents+Internal.h"

chrisp-fb commented 9 years ago

I commented on https://github.com/facebook/facebook-ios-sdk/issues/725 which sounds like mostly the same issue - you shouldn't use the use_frameworks! flag with the Facebook SDK. If you do have swift dependencies, @ninjudd 's suggestion to use the traditional method of linking to the downloaded libraries should work.

chrisp-fb commented 9 years ago

Closing in favor of https://github.com/facebook/facebook-ios-sdk/issues/725 (Note I provided some new podspecs in that thread you can use as a workaround)