简体   繁体   中英

Swift: Apple Mach-O Linker Error

I'm working on Parse/Facebook login that keeps giving me the following error:

Undefined symbols for architecture x86_64: "_FBSDKAccessTokenDidChangeNotification", referenced from:

There are over 60+ such errors, not sure why they are appearing since this code is working in a different project. I was copying over some code and this started happening, any advice?

Check if you have the import part copied to your new project as well, so does the dependencies.

When it said undefined symbols, it means the function _FBSDKAccessTokenDidChangeNotification can't be found while compiling, which usually means the correspond framework/SDK/library were not there.

While I'm not sure what caused this issue, the following solution cleared up the error messages:

Go to the main page for the app (on the navigation thing on the left click on your apps name or the top section) -> Build Settings and under Linker Flags, make sure there is nothing in your Other Linker Flags

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM