If the project is compiling locally and failing in App Center. This is likely related to Facebook SDK expecting that it's installed in the user's home directory, which can be problematic for continuous integration builds. To workaround this requirement please try the approach below.
Check in the FacebookSDK to your repository. It can go anywhere, but the script below assumes it's added to <repo-root>/vendor/FacebookSDK.
Create a bash script named
appcenter-post-clone.sh
then commit this next to the project file you selected in the build configuration pane.
Include the following contents like below, to symlink
~/Documents/FacebookSDK
:
#!/bin/sh
if [ ! -L ~/Documents/FacebookSDK ]; then
echo 'Symlinking ~/Documents/FacebookSDK to Facebook SDK in repo'
ln -s $(cd ./vendor/FacebookSDK; pwd) ~/Documents/FacebookSDK
fi
Please note, if this is the first time including this script in your repository, ensure it's shown under more options within build configuration:
All that should be required now is to click save: