Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 #import <AMapFoundationKit/AMapFoundationKit.h> #74

Closed
cskyr opened this issue May 25, 2019 · 4 comments
Closed

关于 #import <AMapFoundationKit/AMapFoundationKit.h> #74

cskyr opened this issue May 25, 2019 · 4 comments
Labels
bug Something isn't working ios Only for ios

Comments

@cskyr
Copy link

cskyr commented May 25, 2019

"react": "16.6.3",
"react-native": "^0.57.8",

将react-native-amap3d及react-native-amap-geolocation使用cocoapods进行安装,pod install后,进行react-native run-ios,会报以下错误;请帮忙看下,怎么解决呢?

/Volumes/DATA/workspace/reactnative/knit/node_modules/react-native-amap-geolocation/lib/ios/AMapGeolocation.m:1:9: fatal error: 'AMapFoundationKit/AMapFoundationKit.h' file not found
#import <AMapFoundationKit/AMapFoundationKit.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Command Analyze failed with a nonzero exit code

@cskyr cskyr added bug Something isn't working ios Only for ios labels May 25, 2019
@Marcello168
Copy link

"react": "16.6.3",
"react-native": "^0.57.8",

将react-native-amap3d及react-native-amap-geolocation使用cocoapods进行安装,pod install后,进行react-native run-ios,会报以下错误;请帮忙看下,怎么解决呢?

/Volumes/DATA/workspace/reactnative/knit/node_modules/react-native-amap-geolocation/lib/ios/AMapGeolocation.m:1:9: fatal error: 'AMapFoundationKit/AMapFoundationKit.h' file not found
#import <AMapFoundationKit/AMapFoundationKit.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Command Analyze failed with a nonzero exit code
我也是遇到了这个问题,请问下应该怎么解决呢

@qiuxiang
Copy link
Owner

用 pod 安装不能 link

@Marcello168
Copy link

用 pod 安装不能 link

谢谢解答,问题解决了,建议在安装文档上也加上这个说明,可能会好一点

@cskyr
Copy link
Author

cskyr commented May 27, 2019

用 pod 安装不能 link

多谢!切实如你所说,unlink后就正常了

@cskyr cskyr closed this as completed May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios Only for ios
Projects
None yet
Development

No branches or pull requests

3 participants