external framework File/File.h (Parse/Parse.h) fil

2019-01-17 12:46发布

So every time I update my app, Xcode claims not to be able to find a particular external framework even though it's there. It's happened again with Xcode 6 and my usual methods (I'm fairly inexperienced, so these basically involve clicking and typing things until something happens (I exaggerate but not by much)) aren't working.

I'm getting a Lexical or Preprocessor Issue error that says 'Parse/Parse.h' file not found.' But here are screenshots of it in the project and added to the library:

enter image description here

enter image description here

I also followed the steps in the most upvoted answer at ‘ld: warning: directory not found for option’ but still nothing.

Any idea what to do? Any idea at all? I'm tearing my hair out here.

10条回答
不美不萌又怎样
2楼-- · 2019-01-17 13:14

I had the same issue when upgrading parse to 1.4v. You have to delete Parse.framework from Framework List and from the project directory, when removed from both places copy again and check "Copy items to destination's group folder". It worked for me.

查看更多
We Are One
3楼-- · 2019-01-17 13:17

Ok, so I was having this problem as well. I uninstalled all my pods, reinstalled them again, and had no luck. So the good news (and bad news considering the time I spent trying to find the problem) is that I eventually managed to solve it. Apparently, you have to import Foundation/Foundation.h before parse. I don't know whether this will work for you or not, but I tried everything on the net, and only this seemed to work. If you have any instances of this:

#import <Parse/Parse.h>
#import <Foundation/Foundation.h>

flip it around so that Foundation is declared first:

#import <Foundation/Foundation.h>
#import <Parse/Parse.h>

I also read somewhere that some people had issues with Facebook SDK and Parse SDK import. Apparently, the two have Bolt.Framework in common or something, which causes error. I removed Facebook SDK as well, which at first didn't make any difference. I hope I could help.

查看更多
Summer. ? 凉城
4楼-- · 2019-01-17 13:20

For people coming from Ionic + Cordova if you are getting this error I solved it by removing my current parsePlugin and replacing it with this fork.

For simplicity, I used these console commands (Replace PARSE_APP_ID and PARSE_CLIENT_KEY with your keys in the Parse Console):

cordova plugin rm com.parse.cordova.core.pushPlugin
cordova plugin add https://github.com/grrrian/phonegap-parse-plugin --variable APP_ID=PARSE_APP_ID --variable CLIENT_KEY=PARSE_CLIENT_KEY
查看更多
叼着烟拽天下
5楼-- · 2019-01-17 13:23

Its work for me. Just go to Build Active Architecture Only and Debug should be yes and Release should be No enter image description here

查看更多
登录 后发表回答