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工程出错 #10

Closed
deekea opened this issue Nov 7, 2019 · 3 comments
Closed

ios工程出错 #10

deekea opened this issue Nov 7, 2019 · 3 comments

Comments

@deekea
Copy link

deekea commented Nov 7, 2019

..../flutter/.pub-cache/hosted/pub.flutter-io.cn/image_editor-0.1.4/ios/Classes/FlutterImageEditorPlugin.m:2:9: 'image_editor/image_editor-Swift.h' file not found

请问这个问题怎么解决?

@CaiJingLong
Copy link
Member

  1. Try to update pod version. My version is 1.8.4.
  2. Run next command in console:
flutter pub get
cd ios
pod install
  1. Edit your Podfile file.
# Insert next line.
use_frameworks! 
target 'Runner' do

...

@CaiJingLong
Copy link
Member

CaiJingLong commented Nov 7, 2019

Oc calls the swift plugin issue.
There is also have a method simple to resolved it, if your ios part of the code has not been modified, delete your ios folder, and recreate use command $ flutter create . .

@deekea
Copy link
Author

deekea commented Nov 7, 2019

thanks. it work just add use_frameworks! into Podfile file. Then pod install and build.

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