2

I've got a project on Xcode which works with FacebookSDK. As recommanded by facebook, the SDK is installed on ~/Documents/FacebookSDK, and in my Build Settings, I had this path to the "Framework Search Paths" part. Everything works fine, but I'm trying to use Continuous Integration with Xcode Server, and when I try to integrate my project, it can't find the FacebookSDK (I've got this error message : "Issue: 'FacebookSDK/FacebookSDK.h' file not found.").

I thought it was because the build is made on the server, so I installed FacebookSDK on "~/Documents/FacebookSDK" on the server, but the issue is still here. What can I do?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Bierrot
  • 56
  • 4

3 Answers3

1

Ok I finally found the solution.

--> Simply add the path to "Libray Search Path". (something like "$(SRCROOT)/Vendor/FacebookSDK")

I don't understand why we don't need this stuff for build and run but for CI, but it works now.

Bierrot
  • 56
  • 4
0

Simply follow this steps:

  • Remove old path from Header Search path

  • Make sure your FacebookSDK is in your project folder

  • Go to Targets -> Build Phases -> Link Binary With Libraries

  • Click on + than go to app folder & select Facebook SDK

  • It will set the actual path of SDK

  • After that clean project & make build

Hope it will help.

cyberlobe
  • 1,783
  • 1
  • 18
  • 30
  • Thanks for helping. Actually, it works fine for build and run on device or simulator, but the error appears when I integrate my project for Continuous Integration with XCode Server. – Bierrot Dec 12 '14 at 11:12
  • @PierreApo make sure you have Linked FacebookSDK from your apps folder. It must me in your App folder other wise it will not work with continuous integration. – cyberlobe Dec 12 '14 at 11:15
  • Yes, before it was on ~/Documents/... but now I moved and linked it into the app folder. It still working for build and run, except for CI... – Bierrot Dec 12 '14 at 11:18
0

For those who are working with React Native (React Native FBSDK), put $(PROJECT_DIR)/../Frameworks/FacebookSDK in Framework Search Paths on RCTFBSDK.xcodeproj after moving FB SDK to ios/Frameworks. It will work.

Lucas Veiga
  • 1,758
  • 7
  • 27
  • 45