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

=== BUILD TARGET image_gallery_saver OF PROJECT Pods WITH CONFIGURATION Debug === #24

Closed
Florence2016 opened this issue Apr 25, 2019 · 5 comments

Comments

@Florence2016
Copy link

Florence2016 commented Apr 25, 2019

.pub-cache/hosted/pub.dartlang.org/image_gallery_saver-1.1.0/ios/Classes/ImageGallerySaverPlugin.m:2:9: fatal error: 'image_gallery_saver/image_gallery_saver-Swift.h' file not found
#import <image_gallery_saver/image_gallery_saver-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@Florence2016
Copy link
Author

i hope for immediate response thank.. 👍

@Florence2016 Florence2016 changed the title Unable to determine Swift version for the following pods: === BUILD TARGET image_gallery_saver OF PROJECT Pods WITH CONFIGURATION Debug === May 3, 2019
@yang-chao
Copy link

.pub-cache/hosted/pub.dartlang.org/image_gallery_saver-1.1.0/ios/Classes/ImageGallerySaverPlugin.m:2:9: fatal error: 'image_gallery_saver/image_gallery_saver-Swift.h' file not found
#import <image_gallery_saver/image_gallery_saver-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

H, there, have you solved this problem?

@yang-chao
Copy link

yang-chao commented May 31, 2019

Problem solved!

  1. Edit .m file, replace #import <image_gallery_saver/image_gallery_saver-Swift.h> with #import <image_gallery_saver-Swift.h>
  2. Refer to this post https://stackoverflow.com/questions/52536380/why-linker-link-static-libraries-with-errors-ios, add an empty swift file and create bridging header.
  3. Run it!

@xqqlv xqqlv closed this as completed Sep 9, 2019
@ZHanOBa
Copy link

ZHanOBa commented Sep 20, 2019

Thanks for sharing

@ZHanOBa
Copy link

ZHanOBa commented Nov 5, 2019

我也遇到了同样的问题,解决方法如下:
1.卸载掉插件,重新安装

2.创建新的桥接文件

3.编辑.m文件,将#import <image_gallery_saver-Swift.h>替换为#import <image_gallery_saver/image_gallery_saver-Swift.h>,和楼上说的相反

4.运行!

5.保存到相册功能可以正常使用!

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

4 participants