Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

flutter_filereader-Swift.h 找不到这个文件 #41

Open
oliverzyh opened this issue Mar 24, 2021 · 4 comments
Open

flutter_filereader-Swift.h 找不到这个文件 #41

oliverzyh opened this issue Mar 24, 2021 · 4 comments

Comments

@oliverzyh
Copy link

/Users/gainer/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_filereader-2.2.0/ios/Classes/FlutterFileReaderPlugin.m:2:9: fatal error: 'flutter_filereader/flutter_filereader-Swift.h' file not found

@zhangzhengithubs
Copy link

解决了吗

@zhangzhengithubs
Copy link

我的也遇到了

@ZXQ-Kyle
Copy link

ZXQ-Kyle commented Apr 21, 2021

我的解决方法:
1、as中编辑FlutterFileReaderPlugin.m文件,源代码这里第一行多了一个回车

#import "FlutterFileReaderPlugin.h"
#import <flutter_filereader/flutter_filereader-Swift.h>

@implementation FlutterFileReaderPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  [SwiftFlutterFileReaderPlugin registerWithRegistrar:registrar];
}
@end

2、在xcode中检查该文件是否一致,不是的话就改成一致的

@moQingTing
Copy link

我遇到这个问题是因为使用模拟器运行,真机运行不会有问题

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants