문제

I use XCode 4.5

I downloaded the SDK 3.1.1 from https://github.com/downloads/facebook/facebook-ios-sdk/FacebookSDK-3.1.1.pkg

and then I import the framework by dragging first and it does not work so I use the method of add other... in the build phases

I have this in my project:

enter image description here

and this in my build phases:

enter image description here

but when I import the FacebookSDK library like this

#import <FacebookSDK/FacebookSDK.h>

I have a file not found: enter image description here

Did I miss something?

도움이 되었습니까?

해결책

Ok I found the solution.

Actually the problem was from my Framework Search Paths in the search paths category.

I installed several time the facebook package and import the facebookSDK.framework several times and it adds me the link automatically in my Framework Search Paths.

I just removed all links and recreate a correct one manually and it worked.

다른 팁

if you have facebooksdk.frame work and its not working try this. Remove frame work, delete it. clear your frame work search paths. drage FacebookSDK.frame again and update your frame work path if you are working in team. Relative Path

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top