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

could not build Objective-C module 'flutter_freshchat'(Not able to take iOS build) #58

Open
Sunsiha opened this issue May 18, 2021 · 0 comments

Comments

@Sunsiha
Copy link

Sunsiha commented May 18, 2021

In one of my project Iam using flutter_freshchat integration. In that am facing an issue in iOS, when I add flutter_freshchat: ^1.3.0 in pubspec.yaml. Am not able to build only with this. Am getting error the following;

<module-includes>:1:9: note: in file included from <module-includes>:1:#import "Headers/flutter_freshchat-umbrella.h" ^/Users/docty/Workspace/Projects/Docty/ios/Pods/Target Support Files/flutter_freshchat/flutter_freshchat-umbrella.h:13:9: note: in file included from /Users/docty/Workspace/Projects/Docty/ios/Pods/Target Support Files/flutter_freshchat/flutter_freshchat-umbrella.h:13:#import "FlutterFreshchatPlugin.h" ^/Users/docty/Workspace/FlutterDevelopments/flutter/.pub-cache/git/flutter_freshchat-37d8d569f7adc8c6451384634386f1151b1d686f/ios/Classes/FlutterFreshchatPlugin.h:2:9: error: include of non-modular header inside framework module 'flutter_freshchat.FlutterFreshchatPlugin': '/Users/docty/Workspace/Projects/Docty/ios/Pods/FreshchatSDK/FreshchatSDK/FreshchatSDK.h'#import "FreshchatSDK.h" ^<unknown>:0: error: could not build Objective-C module 'flutter_freshchat'

But when I use the workaround like the following link I am able to build.
#33

That time I have to remove the domain from FlutterFreshchat.init. But without a domain it's not loading the data also. May I know why I am getting this kind of issue. Struggling from past one week. I tried all the git issues solution. It's not working.

Flutter details:

Flutter 1.22.3 • channel unknown • unknown source Framework • revision 8874f21e79 (7 months ago) • 2020-10-29 14:14:35 -0700 Engine • revision a1440ca392 Tools • Dart 2.10.3

Xcode details:
Version 12.5

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

1 participant