f111fei / react-native-unity-demo

103 stars 80 forks source link

Build/Export iOS Error #9

Closed ascott closed 6 years ago

ascott commented 6 years ago

hi! thanks for this package!

I'm getting this error in Unity when running Build -> Export iOS. I'm not familiar with Unity, any ideas what might be going on here?

To reproduce:

  1. Open unity/Cube/Assets/test.unity (using Unity v. 2017.2.0f3)

  2. Click Build => Export IOS

Assets/Scripts/UnityMessageManager.cs(143,10): error CS0111: A member 
'UnityMessageManager.onUnityMessage(string)' is already defined. Rename this member or use 
different parameter types

Error building Player because scripts had compiler errors

Exception: Build failed: 2 errors
Build.DoBuildIOS () (at Assets/Scripts/Editor/Build.cs:78)

screenshot 2018-05-26 13 06 10

ascott commented 6 years ago

update: this is only an issue on the master branch, i used the unity-2018 branch and did not have this issue.