简体   繁体   中英

No such module 'PFFacebookUtils'

I am getting No such module 'PFFacebookUtils' error on below line in my AppDelegate:

import PFFacebookUtils

I have checked and both ParseFacebookUtils.framework and Parse FacebookUtilsV4.framework are properly installed.

I believe my briding header is also working fine because I have #import <ParseFacebookUtilsV4/PFFacebookUtils.h> in it and there are no error there. I have other Parse frameworks installed and they are all functioning fine and their import statement have no errors.

What could I be doing wrong?

I was able to resolve this issue by removing the line import PFFacebookUtils from swift file but leave the import in bridging header. Unless someone has a better answer?

Do you have any spaces in the name of your project? If that's the case you should head over to your Build Settings and find "Framework Search Paths". If you double-click on the tab with the name of your project (in my case "Project With Spaces"), you will see that Xcode has separated the project name to separate entries. You should remove the bottom entries that Xcode added (in my case "With" and "Spaces"), and change the actual entry (the one starting with "$(PROJECT_DIR)") to the project name - and here's the crucial part - but include a '\\' before each space. That way, Xcode will keep the path as a single entry.

Before I made the changes: 在我进行更改之前

After I made the changes: 我进行更改后

If your using any Libraries, you should do the same thing but to "Library Search Paths" instead.

Hope this helps!

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