-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Unity version
Unity 2022.3 LTS & 6000.0 LTS & 6000.1
Common issues
- I have checked the common issues
Flutter version
3.32.6
Description
If you launch play mode with the build target set to iOS, calling SendToFlutter.send will trigger the following error.
EntryPointNotFoundException: FlutterEmbedUnityIos_sendToFlutter assembly:<unknown assembly> type:<unknown type> member:(null)
SendToFlutter.Send (System.String data) (at Assets/FlutterEmbed/SendToFlutter/SendToFlutter.cs:21)
Fix
Simply checking if we are in the Unity Editor fixes this:
-#if UNITY_IOS
+#if UNITY_IOS && !UNITY_EDITOR
// Call an obj-C function name
FlutterEmbedUnityIos_sendToFlutter(data);
#endifMinimum reproducible example (MRE)
Just run the example Unity project in the Unity Editor, with build target iOS.
The AR check will immediately send a message to Flutter, which triggers this error,
Happens on both 2022.3.62 and 6000.1.11
What platforms are you seeing the problem on?
iOS
Devices
No response
Anything else?
No response