iosxcodecontinuous-integrationxcode-serverfacebook

FacebookSDK with Continuous Integration - Xcode


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?


Solution

  • 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.