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

flutter line sdk-1.3.0 'flutter line sdk/flutter line sdk-Swift.h' file not found #61

Closed
JW-chenjingwei opened this issue Aug 24, 2022 · 3 comments

Comments

@JW-chenjingwei
Copy link

sdk版本:line sdk-1.3.0

看了文档要求使用use_frameworks!,但是项目已经被禁止使用use_frameworks!,改用了use_modular_headers!,所以会一直报这个错误,
建议:
在FlutterLineSdkPlugin.m文件更改:

#import "FlutterLineSdkPlugin.h"

#if __has_include( <flutter_line_sdk/flutter_line_sdk-Swift.h>)
#import <flutter_line_sdk/flutter_line_sdk-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "flutter_line_sdk-Swift.h"

#endif
@implementation FlutterLineSdkPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  [SwiftFlutterLineSdkPlugin registerWithRegistrar:registrar];
}
@end

可以更新个小版本吗?

@onevcat
Copy link
Member

onevcat commented Aug 26, 2022

Oh. I will check and see if it is a workable solution. Thanks for the feedback!

@onevcat
Copy link
Member

onevcat commented Sep 6, 2022

Should be solved in #62 and I will create a tag soon. Now the package should also support built as static library.

@onevcat onevcat closed this as completed Sep 6, 2022
@onevcat
Copy link
Member

onevcat commented Sep 6, 2022

Version 2.3.0 was released with support for the static library. For any existing users, this change should not cause any issue and the upgrade should be transparent.

https://pub.dev/packages/flutter_line_sdk/versions/2.3.0

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