I'm building an app using react native that uses FBSDK (react-native-fbsdk). The whole thing worked without an issue, but after I update my Xcode from 9.4 to 10.0, I'm no longer able to build the project due to error:
'FBSDKShareKit/FBSDKShareKit.h' file not found
I've found a number of questions that seems to be having the same issue and tried their suggestion, but still can't build successfully. Things I've tried:
- Adding "~/Documents/FacebookSDK" to Framework Search Path
- Make sure FBSDK[Core, Share, Login]Kit.framework and libRCTFBSDK.a are in Link Binary with Libaries
- Using "rm -rf ~/Library/Developer/Xcode/DerivedData" to clean data then tried to build again
- Removing the Frameworks from FacebookSDK folder then added them again
At this point, I'm not sure what else I should try. The weirdest thing is that it was working before updating Xcode, so does that mean there's a change in Xcode itself that caused this?
Anyone have any idea on this or have faced this issue?
EDIT: I've managed to successfully build the project by changing the Build System from New Build System to Legacy Build System. The app now runs (maybe there's something changed in the way Xcode build projects now that's incompatible with the current fbsdk?)