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

关于Bridge-Header的问题 #3

Open
huangxinyu1213 opened this issue Dec 20, 2015 · 2 comments
Open

关于Bridge-Header的问题 #3

huangxinyu1213 opened this issue Dec 20, 2015 · 2 comments

Comments

@huangxinyu1213
Copy link

你好,我在按照你的项目在重写一遍,但在添加Bridge-Header之后,#import MAMapKit.h就会报错,提示文件找不到,不知道是哪里出了问题,求解答
f7131b89-4efd-48c9-af23-3fe405782b26

@ZhongTaoTian
Copy link
Owner

我猜测可能有两个原因
一是创建Bridge-Header出现问题,建议你在Swift工程里直接创建一个OC的文件,系统会自动关连创建一个Bridge-Header文件
二是MamapKit是高德地图的头文件,需要首先集成高德地图的SDK,你可以试试

@huangxinyu1213
Copy link
Author

你好,问题已经解决了,是我写的有问题,之前我是:#import <MAMapKit.h> ,因为以前就这么写没发现问题,但这里就有。所以只要写全了,就好了:#import <MAMapKit/MAMapKit.h>。
另外,谢谢你,从你这里面学到不少东西。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants