azesmway / react-native-unity

MIT License
263 stars 61 forks source link

UnityFramework/NativeCallProxy.h file not found #18

Open appjitsu opened 2 years ago

appjitsu commented 2 years ago

I followed the README but I'm getting the following error:

UnityFramework/NativeCallProxy.h file not found

Screen Shot 2022-05-06 at 2 33 51 PM Screen Shot 2022-05-06 at 11 39 33 AM

I'm not sure what I'm missing. Help is very much appreciated.

azesmway commented 2 years ago

telegram-cloud-photo-size-2-5449793052123183613-y

azesmway commented 2 years ago

it's written in the documentation

  1. In Build Phases remove UnityFramework.framework from Linked Binary With Libraries
  2. In Build Phases move Embedded Frameworks before Compile Sources ( drag and drop )
appjitsu commented 2 years ago

yes that is what i have

Screen Shot 2022-05-06 at 12 15 33 PM
azesmway commented 2 years ago

xcode caches data very often and it is desirable to delete the cache, in your case xcode simply does not see the unity framework

appjitsu commented 2 years ago

cleared cache, closed xcode, rebooted. none of that worked.

azesmway commented 2 years ago

I would be glad to help you, but I don't know how and what you do, how you set up the project. this is all you need to see to help you

appjitsu commented 2 years ago

i copied the example directory and followed the README

azesmway commented 2 years ago

i copied the example directory and followed the README

I just did the same - everything worked fine for me

appjitsu commented 2 years ago

would you remind recording your screen and uploading the video?

azesmway commented 2 years ago

would you remind recording your screen and uploading the video?

https://drive.google.com/file/d/1fhlhvbNEV3Utf86jvoAjoOfnAFsBxZoq/view?usp=sharing

appjitsu commented 2 years ago

@azesmway i sent you a request for access

azesmway commented 2 years ago

@azesmway i sent you a request for access

Administrators of verizon.com have prevented the sharing of organization "" data with their users.

please download file

appjitsu commented 2 years ago

ok shot you an email with my personal email

TommasoVerolaLD-zz commented 2 years ago

Hello, @azesmway with the changes you suggested and as i saw in the video, The project is building on a real device but when I try to archive it, I'm getting this error

"/Users//Desktop/example/node_modules/@azesmway/react-native-unity/ios/ReactNativeUnityView.h:4:10: 'UnityFramework/NativeCallProxy.h' file not found"

Schermata 2022-05-13 alle 12 50 24 The issue that I'm facing now is that when you try to "archive" the project, selecting "Any ios Device", the build fail with error above. I've tried almost everything. Could I kindly ask you any suggestions to sort out why the archive is failing?

azesmway commented 2 years ago

RN63 — RN63 xcodeproj 2022-05-13 16-10-54

does this file exist?

TommasoVerolaLD-zz commented 2 years ago

yes, and i also set the target membership as public

Schermata 2022-05-13 alle 15 14 59
azesmway commented 2 years ago

RN63 — RN63 xcodeproj 2022-05-13 16-38-22

you do not create a unity framework - it must be created first, and then the compilation of the common code

TommasoVerolaLD-zz commented 2 years ago

I followed your suggestions, but unfortunately, the archive still fails. Could I kindly ask you to try to archive it ? and see if on your machine is working ?

Schermata 2022-05-13 alle 15 17 56

azesmway commented 2 years ago

I managed to repeat the error. I will think how to fix the problem

azesmway commented 2 years ago

I know a solution that allows you to build a project for appstore you need to build UnityFramework.framework separately and put it in the plugin

react-native-unity podspec 2022-05-13 21-40-29

RN63 — RN63 xcodeproj 2022-05-13 21-42-55

lebind12 commented 2 years ago

@azesmway It works. Thanks. But we need to instruct more detail. (For newer in IOS)

We can build UnityFramework.framework here. 스크린샷 2022-05-16 오전 7 33 13

And if Build is Success, 스크린샷 2022-05-16 오전 7 33 49

We can find UnityFramework left side. 스크린샷 2022-05-16 오전 7 34 47

And We can go UnityFramework directory with this arrow, right side of xcode. 스크린샷 2022-05-16 오전 7 35 36

Add UnityFramework.framework in [example]/node_moduels/@azesmway/react-native-unity/. like this 스크린샷 2022-05-16 오전 7 37 45

Finally We should add code in react-native-unity.podspec file. s.vendored_frameworks = 'ios/UnityFramework.framework' 스크린샷 2022-05-16 오전 7 39 27

With this process, I can Build Successfully. Thanks @azesmway ..!

TommasoVerolaLD-zz commented 2 years ago

Thank you so much!! is working 🎉
Could I make a pr where I add this in the documentation?

azesmway commented 2 years ago

Thank you so much!! is working 🎉 Could I make a pr where I add this in the documentation?

yes, sure

exotexot commented 2 years ago

Following all these steps: On build process I get error:

Undefined symbol: _OBJCCLASS$_FrameworkLibAPI

ahmedyasindev commented 10 months ago

RN63 — RN63 xcodeproj 2022-05-13 16-10-54 @azesmway does this file exist?

Hi Azesmway, i am trying on this issue last 5 days. can you help ? Issue: my plugin ios folder is not creating when i build unity project. what we can do for this issue?

azesmway commented 10 months ago

?

Of course I can. but I need to see your project and what you're doing.

ahmedyasindev commented 10 months ago

Hey, @azesmway Thanks for your reply. For now i found this thread https://github.com/azesmway/react-native-unity/issues/40#issuecomment-1235218490 and continue to follow remaining steps. i hope it will go smooth. if not i will comment here with the situation with screenshots. thanks again for being active.