react-native-unity-view icon indicating copy to clipboard operation
react-native-unity-view copied to clipboard

iOS - RNUnityView was not found in the UIManager.

Open rd3-elizeu opened this issue 4 years ago • 9 comments

I was able to export the project and run in my device using the example project from RN. Followed the tutorial to integrate the UnityView into the xcode workspace and all seemed fine. Then i copied the "Example Code" from the bottom of the "README" to the App.js file and it gave me this error. IMG_5090

IMG_5089

rd3-elizeu avatar Nov 30 '20 17:11 rd3-elizeu

I have the exact same problem for Android. Any tips from anyone on this? Help is highly appreciated!

theoter avatar Dec 03 '20 21:12 theoter

I have this problem too!

chathuri4 avatar Dec 24 '20 01:12 chathuri4

Any solution? I have the same issue on Android.

assassins719 avatar Jan 06 '21 22:01 assassins719

If you're running this in a simulator it won't work. You need to run it on a physical device.

dave-vazquez avatar Mar 20 '21 19:03 dave-vazquez

iOS real device, still doesn't work. react native 0.64.1, Unity 2021.1.7f1

thomashagstrom avatar Jun 24 '21 19:06 thomashagstrom

Have you added this to the top of your main.m

#import "UnityUtils.h"

and changed your int main to look like:

int main(int argc, char * argv[]) { @autoreleasepool { InitArgs(argc, argv); return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }

kcinnay001 avatar Mar 04 '22 11:03 kcinnay001

Any idea for resolve this?

vahtykov avatar Aug 24 '22 18:08 vahtykov