react-native-unity-demo
react-native-unity-demo copied to clipboard
Can't build to phone
Using XCode Version 10.2.1, branch master, Unity 2018.2.11f1.
RN 0.57 used in the demo has an issue with this version of XCode, as indicated here: https://github.com/facebook/react-native/issues/21071.
Patched RCTLinking using https://www.npmjs.com/package/patch-package, but still can't build to phone.
Order of operations: a. npm install b. installed patch-package c. updated RCTLinking d. ran patch-package e. built from Unity ("Build => ExportiOS") f. attempted build to iPhone XR
XCode throws error:
CpResource /Users/xzper/workspace/web/npm-package/react-native-unity-demo/ios/UnityExport/Data /Users/Taly/Library/Developer/Xcode/DerivedData/rnunitydemo-gqhpfkldifizajayqsdorbkqxfdb/Build/Products/Debug-iphoneos/rnunitydemo.app/Data (in target: rnunitydemo)
cd /Users/Taly/Sites/react-native-unity-demo/ios
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/xzper/workspace/web/npm-package/react-native-unity-demo/ios/UnityExport/Data /Users/Taly/Library/Developer/Xcode/DerivedData/rnunitydemo-gqhpfkldifizajayqsdorbkqxfdb/Build/Products/Debug-iphoneos/rnunitydemo.app
error: /Users/xzper/workspace/web/npm-package/react-native-unity-demo/ios/UnityExport/Data: No such file or directory
Any suggested workarounds?
@talyh Have you run demo successfully in iOS simulator?
@ham118 - I haven't, no. The company I work for decided not to invest more time in trying to get this to work, so I haven't looked at it in a while now.