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

ios报 没有发现 #import <city_pickers/CityPickersPlugin.h> #36

Open
Pbosss opened this issue Jun 18, 2019 · 12 comments
Open

ios报 没有发现 #import <city_pickers/CityPickersPlugin.h> #36

Pbosss opened this issue Jun 18, 2019 · 12 comments

Comments

@Pbosss
Copy link

Pbosss commented Jun 18, 2019

ios没有#import <city_pickers/CityPickersPlugin.h>这个文件 请问是怎么回事

@hanxu317317
Copy link
Owner

这个文件应该是flutter 自动编译生出来的. 您是example无法跑起来? 还是装包报错?

@hanxu317317
Copy link
Owner

@Pbosss

@Pbosss
Copy link
Author

Pbosss commented Jun 25, 2019

装包报错

@FiathZZ
Copy link

FiathZZ commented Aug 20, 2019

该问题是否解决,同一个问题, flutter打包成framework,然后GeneratedPluginRegistrant.m报错'city_pickers/CityPickersPlugin.h' file not found. @Pbosss @hanxu317317

@FiathZZ
Copy link

FiathZZ commented Aug 21, 2019

我在Runner项目里找到了city_pickers的OC文件 "CityPickersPlugin", 拷贝到我的项目中, 解决了'city_pickers/CityPickersPlugin.h' file not found. 希望可以帮到其他人. 如果有更好的办法, 请通知我

@xiaoma13
Copy link

同样遇到了这个问题,一模一样,发生在flutter build ios --release xcode给的提示

@hanxu317317
Copy link
Owner

这个问题. 我也正在找原因. 但是还没有发现是什么导致的.

@wuyong0087
Copy link

我再XCode运行调试的时候,也出现了这个提示。后来处理好了。应该是我flutter clean 项目之后,解决的。

@hanabi1224
Copy link

hanabi1224 commented Nov 26, 2019

@hanxu317317 这个项目看起来是纯dart的,为什么要加上android和ios两个文件夹?删掉就不会引起编译问题了 纯dart的项目应该用 --template=package创建而不是--template=plugin , 后者特指使用MethodChannel来调用平台原生代码的项目

hanabi1224 pushed a commit to hanabi1224/city_pickers that referenced this issue Nov 26, 2019
@hanxu317317
Copy link
Owner

@hanabi1224 受教~~

hanxu317317 added a commit that referenced this issue Dec 16, 2019
hanxu317317 added a commit that referenced this issue Dec 16, 2019
hanxu317317 added a commit that referenced this issue Dec 16, 2019
hanxu317317 added a commit that referenced this issue Dec 16, 2019
@lanzhu1993
Copy link

解决办法:flutter/flutter#10654

I was doing the same mistake, opening Runner.xcodeproj and not Runner.xcworkspace...
Everything works opening the correct file.
Thanks a lot, you saved my week!

我在犯同样的错误,打开Runner.xcodeproj而不是Runner.xcworkspace ...
打开正确的文件,一切正常。
非常感谢,您保存了我的一周!

@lanzhu1993
Copy link

我在Runner项目里找到了city_pickers的OC文件 "CityPickersPlugin", 拷贝到我的项目中, 解决了'city_pickers/CityPickersPlugin.h' file not found. 希望可以帮到其他人. 如果有更好的办法, 请通知我

解决办法:flutter/flutter#10654

I was doing the same mistake, opening Runner.xcodeproj and not Runner.xcworkspace...
Everything works opening the correct file.
Thanks a lot, you saved my week!

我在犯同样的错误,打开Runner.xcodeproj而不是Runner.xcworkspace ...
打开正确的文件,一切正常。
非常感谢,您保存了我的一周

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

7 participants