You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the Extension build failed with error:
failed to emit precompiled header '/Users/abc/Library/Developer/Xcode/DerivedData/Runner-bvirpnxqsoxfpjdpqnyargnrgjqa/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_1HWKR7Y3YIO2T-clang_2Q7Q0RSIRDI04.pch' for bridging header '/Users/abc/Desktop/practice/test_adding_extension/ios/Runner/Runner-Bridging-Header.h'
/Users/abc/Desktop/practice/test_adding_extension/ios/Runner/GeneratedPluginRegistrant.h:10:9 'Flutter/Flutter.h' file not found
The text was updated successfully, but these errors were encountered:
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
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 ?
i met a problem with adding extension in ios.
failed to emit precompiled header '/Users/abc/Library/Developer/Xcode/DerivedData/Runner-bvirpnxqsoxfpjdpqnyargnrgjqa/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_1HWKR7Y3YIO2T-clang_2Q7Q0RSIRDI04.pch' for bridging header '/Users/abc/Desktop/practice/test_adding_extension/ios/Runner/Runner-Bridging-Header.h'
/Users/abc/Desktop/practice/test_adding_extension/ios/Runner/GeneratedPluginRegistrant.h:10:9 'Flutter/Flutter.h' file not found
The text was updated successfully, but these errors were encountered: