receive_sharing_intent icon indicating copy to clipboard operation
receive_sharing_intent copied to clipboard

An error occurs when I run it on the iPhone 16 pro(ios 18.2) simulator.

Open nicelee777 opened this issue 10 months ago • 5 comments

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.

nicelee777 avatar Feb 04 '25 07:02 nicelee777

Same problem here, any progress?

santb08 avatar Feb 13 '25 06:02 santb08

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

JosephKalash avatar Feb 19 '25 06:02 JosephKalash

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).

huluwa-dev avatar Jun 23 '25 10:06 huluwa-dev

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?

dabblingwithcode avatar Jul 20 '25 15:07 dabblingwithcode

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.

dabblingwithcode avatar Jul 21 '25 09:07 dabblingwithcode