azesmway / react-native-unity-play

Play an unity view in react native
MIT License
40 stars 16 forks source link

UnityFramework/UnityFramework.h file not found #12

Open fredjackyong97siktian opened 2 years ago

fredjackyong97siktian commented 2 years ago

Hi, I have these issue for days, and I couldn't solve it. I am trying to run the ios version of the react native, and it keep saying UnityFramework.h is not found. I have tried Pod Install, Yarn Install. It still failed. Any insights on this? Thanks in advance.

Laptop: M1 Macbook Error: fatal error: 'UnityFramework/UnityFramework.h' file not found

include <UnityFramework/UnityFramework.h>

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

BUILD FAILED

The following build commands failed: CompileC /Users/fredjackyong/Library/Developer/Xcode/DerivedData/kebunapp-fhugorrhcqzaaadcodjvwotasrsq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNUnity.build/Objects-normal/arm64/UnityResponderView.o /Users/fredjackyong/Documents/kebunapp/app/kebunapp/node_modules/react-native-unity-play/ios/RNUnity/UnityResponderView.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNUnity' from project 'Pods') (1 failure)

Dependencies: "react": "17.0.2", "react-native": "0.66.4", "react-native-unity-play": "^0.1.6"

node version: v16.13.1 Xcode version: v13.1

azesmway commented 2 years ago

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

you can download an example and see if it will work for you on M1 I have not tested on M1

akrv7591 commented 2 years ago

IOS TEST

Hello, I tested your example project in m1 MacMini. Build is successful however it stuck for about 1 minute in splash screen shows error given below 2022-01-04 11:47:23.442410+0900 mytest[91520:19866765] Task <D0D80521-ECAA-4CB6-9C97-B583D23F78BC>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x281c0fcc0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <D0D80521-ECAA-4CB6-9C97-B583D23F78BC>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <D0D80521-ECAA-4CB6-9C97-B583D23F78BC>.<1>" ), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=http://10.0.0.214:8081/status, NSErrorFailingURLKey=http://10.0.0.214:8081/status, _kCFStreamErrorDomainKey=4}

After another one minute stuck it runs application successfully. When closing app and opening again app termination after several seconds. I have no idea what is causing that error. Any help appreciated