Open haphu4247 opened 1 year ago
i FOUND OUT THE WAY TO RESOLVE IT.
in XCODE, the Extension is an independent module in ios project. so when adding an extension to ios project, the Extension Target SHOULD NOT REFERENCE to the Runner (TARGET_NAME). that reason why the error occurs when building project.
how to fix: remove SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h" in buildSettings of Extension
i FOUND OUT THE WAY TO RESOLVE IT.
in XCODE, the Extension is an independent module in ios project. so when adding an extension to ios project, the Extension Target SHOULD NOT REFERENCE to the Runner (TARGET_NAME). that reason why the error occurs when building project.
how to fix: remove SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h" in buildSettings of Extension
Hello, I solved the issue with this approach. It can run, but failed after that because the extension cannot find its NSExtension. May I see your NotificationService Info.plist ?
This is the error
This is the extension's info.plist
i FOUND OUT THE WAY TO RESOLVE IT. in XCODE, the Extension is an independent module in ios project. so when adding an extension to ios project, the Extension Target SHOULD NOT REFERENCE to the Runner (TARGET_NAME). that reason why the error occurs when building project. how to fix: remove SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h" in buildSettings of Extension
Hello, I solved the issue with this approach. It can run, but failed after that because the extension cannot find its NSExtension. May I see your NotificationService Info.plist ?
This is the error
This is the extension's info.plist
Just like how you cleared Building Headers, also clear Targets -> Extension -> Build Settings -> Linking General -> Other Linker Flags
i met a problem with adding extension in ios.
/Users/abc/Desktop/practice/test_adding_extension/ios/Runner/GeneratedPluginRegistrant.h:10:9 'Flutter/Flutter.h' file not found