juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.09k stars 505 forks source link

Assets/SteamVR/Input/SteamVR_Input.cs(10,13): error CS0234: The type or namespace name 'Newtonsoft' does not exist in the namespace 'Valve' (are you missing an assembly reference?) #899

Closed ChurikiTenna closed 7 months ago

ChurikiTenna commented 7 months ago

Describe the bug

When I tried to Flutter -> Export iOS (Debug or Release), it fails with errors.

Assets/SteamVR/Input/SteamVR_Input.cs(10,13): error CS0234: The type or namespace name 'Newtonsoft' does not exist in the namespace 'Valve' (are you missing an assembly reference?)
Assets/SteamVR/Input/SteamVR_Input_ActionFile.cs(8,13): error CS0234: The type or namespace name 'Newtonsoft' does not exist in the namespace 'Valve' (are you missing an assembly reference?)
... 187 more errors like that

When I try to run on Unity (with ▶️ button), it builds with no problems.

To Reproduce

  1. Get SteamVR here: https://assetstore.unity.com/packages/tools/integration/steamvr-plugin-32647
  2. Import SteamVR on Package Manager.
  3. Flutter -> Export iOS (Debug or Release)

Expected behavior Export successfully

Screenshots

スクリーンショット 2023-11-20 17 48 52

Unity (please complete the following information):

Additional context

Export Android works fine.

ChurikiTenna commented 7 months ago

@juicycleff

timbotimbo commented 7 months ago

Can you make an iOS build in Unity without this flutter plugin (using the regular build UI in unity)? Since StreamVR is meant for desktop platforms, it wouldn't surprise me if building for iOS is not supported.

ChurikiTenna commented 7 months ago

The error happened because SteamVR does not support iOS. Sorry for the buzz. Closing.