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

UnityFramework/NativeCallProxy.h file not found

Open strataga opened this issue 3 years ago • 27 comments

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.

strataga avatar May 06 '22 15:05 strataga

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

azesmway avatar May 06 '22 15:05 azesmway

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 )

azesmway avatar May 06 '22 15:05 azesmway

yes that is what i have

Screen Shot 2022-05-06 at 12 15 33 PM

strataga avatar May 06 '22 16:05 strataga

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

azesmway avatar May 06 '22 16:05 azesmway

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

strataga avatar May 06 '22 18:05 strataga

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

azesmway avatar May 06 '22 18:05 azesmway

i copied the example directory and followed the README

strataga avatar May 06 '22 19:05 strataga

i copied the example directory and followed the README

I just did the same - everything worked fine for me

azesmway avatar May 06 '22 20:05 azesmway

would you remind recording your screen and uploading the video?

strataga avatar May 06 '22 21:05 strataga

would you remind recording your screen and uploading the video?

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

azesmway avatar May 07 '22 09:05 azesmway

@azesmway i sent you a request for access

strataga avatar May 09 '22 14:05 strataga

@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

azesmway avatar May 09 '22 15:05 azesmway

ok shot you an email with my personal email

strataga avatar May 09 '22 15:05 strataga

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/<user_name>/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?

TommasoVerolaLD-zz avatar May 13 '22 13:05 TommasoVerolaLD-zz

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

does this file exist?

azesmway avatar May 13 '22 13:05 azesmway

yes, and i also set the target membership as public

Schermata 2022-05-13 alle 15 14 59

TommasoVerolaLD-zz avatar May 13 '22 13:05 TommasoVerolaLD-zz

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

azesmway avatar May 13 '22 13:05 azesmway

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

TommasoVerolaLD-zz avatar May 13 '22 13:05 TommasoVerolaLD-zz

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

azesmway avatar May 13 '22 16:05 azesmway

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

azesmway avatar May 13 '22 18:05 azesmway

@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 ..!

lebind12 avatar May 15 '22 22:05 lebind12

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

TommasoVerolaLD-zz avatar May 16 '22 13:05 TommasoVerolaLD-zz

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

yes, sure

azesmway avatar May 16 '22 15:05 azesmway

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

Undefined symbol: OBJC_CLASS$_FrameworkLibAPI

exotexot avatar Jun 21 '22 15:06 exotexot

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?

ahmedyasindev avatar Nov 30 '23 10:11 ahmedyasindev

?

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

azesmway avatar Nov 30 '23 11:11 azesmway

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.

ahmedyasindev avatar Nov 30 '23 13:11 ahmedyasindev