I've been struggling with this problem for a while now, I created a new project and imported the FacebookSDK, and then tried to run a build, the build worked but I got an exception in the console saying Exception: Project file not found at file path C:/Users/Username/Documents/TESTFACEBOOK/TestProject
. When I take the build to xcode and then build from there, it gives me a Mach-O linker error like so:
Undefined symbols for architecture armv7:
"_iosLogin", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosLogout", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosInit", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosSetShareDialogMode", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFeedRequest", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosAppRequest", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBSettingsPublishInstall", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsSetLimitEventUsage", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosGetDeepLink", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsLogPurchase", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsLogEvent", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
Here are the steps I've taken to try and solve this problem:
This was coming from line 82 in XCProject.cs, I went to inspect, and thought I'd try hard coding the file path, that script was looking for project.pbxproj, so I pointed the file path directly at that, and it still didn't work.
I tried manually adding the FacebookSDK.a library in my xcode project, at first it wasn't there, even after adding it nothing changed.
I've searched pretty much everywhere, found nothing about the problem I'm having. There was a person who had posted here about a Mach-O linker error similar to mine, however his console error message was coming from a different script, and was a different message.