city_pickers icon indicating copy to clipboard operation
city_pickers copied to clipboard

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

Open Pbosss opened this issue 5 years ago • 12 comments

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

Pbosss avatar Jun 18 '19 03:06 Pbosss

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

hanxu317317 avatar Jun 18 '19 08:06 hanxu317317

@Pbosss

hanxu317317 avatar Jun 24 '19 03:06 hanxu317317

装包报错

Pbosss avatar Jun 25 '19 09:06 Pbosss

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

FiathZZ avatar Aug 20 '19 09:08 FiathZZ

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

FiathZZ avatar Aug 21 '19 06:08 FiathZZ

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

xiaoma13 avatar Nov 11 '19 13:11 xiaoma13

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

hanxu317317 avatar Nov 13 '19 02:11 hanxu317317

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

wuyong0087 avatar Nov 15 '19 17:11 wuyong0087

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

hanabi1224 avatar Nov 26 '19 16:11 hanabi1224

@hanabi1224 受教~~

hanxu317317 avatar Dec 16 '19 07:12 hanxu317317

解决办法: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 avatar Feb 26 '20 08:02 lanzhu1993

我在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 ... 打开正确的文件,一切正常。 非常感谢,您保存了我的一周

lanzhu1993 avatar Feb 26 '20 08:02 lanzhu1993