An error occurs when I run it on the iPhone 16 pro(ios 18.2) simulator.
Error Message:
Launching lib/main.dart on iPhone 16 Pro in debug mode... Running pod install... Running Xcode build... Xcode build done. 39.4s Failed to build iOS app
Swift Compiler Error (Xcode): Could not find module 'receive_sharing_intent' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, at: /Users/ijuho/Projects/haruru/build/ios/Debug-iphonesimulator/receive_sharing_intent/receive_sharing_intent.framework/Modules/receive_sharing_intent.swiftmodule /Users/ijuho/Projects/haruru/ios/Share%20Extension/ShareViewController.swift:7:7
Could not build the application for the simulator. Error launching application on iPhone 16 Pro.
Same problem here, any progress?
Go to Build Phases of your Runner target and move Embed Foundation Extension to the top of Thin Binary. run pod install then reload your IDE
I am facing the same problem, and @JosephKalash's solution does not work on xcode, no "Embed Foundation Extension" in the latest xcode(16.4).
Same as @huluwa-dev - "Embed Foundation Extension" is nowhere to be found. I moved "Embed App Extensions" above binary, but did not help. Any ideas anyone?
PS: Right, in my case I had in the podfile config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = 'arm64 i386', so no wonder it didn't build 🙈 Now it works wih the simulator.
I could also bring back "Embed Foundation Extension" through the recommended settings in the pods issue in xcode.