Comments (1)
Here's what I did to fix this issue with success.
As I looked further into this issue I saw the file UnitySharedDecls.h
was within Classes/Unity/
. So I went into the calling file, SplashScreen.mm
(Classes/UI/
), and updated the path to be #include "Unity/UnitySharedDecls.h"
.
The following error may happen to some. If not, just continue to the next step. 'Classes/iPhone_Sensors.h' file not found
called by DynamicLibEngineAPI.mm
. I went into DynamicLibEngineAPI.mm
and updated the affecting line to be #include "iPhone_Sensors.h"
.
I wouldn't expect anything less if there wasn't another error. This time, Undefined symbol: _OBJC_CLASS_$_AVPlayerViewController
. To fix this add the AVKit.framework.
There was one more hurdle that had to do with "Copy Data" (...file path.../ios/UnityExport/Data: No such file or directory
). For this I deleted reference of the existing Data file and added in reference to the Data folder from the project.
After all was said and done, build succeeded!
Hopefully this will help others trying to get the demo up and going on iOS.
My setup:
SDK iOS: 12.2,
Xcode: 10.2,
react: 16.5.0,
react-native: 0.57.0,
react-native-unity-view: ^1.3.0
from react-native-unity-demo.
Related Issues (20)
- UnityView dismissal HOT 3
- Unable to successfully execute: npm run ios and android
- Unable to successfully execute: npm run ios and android HOT 2
- Can't build to phone HOT 2
- Can not build on Xcode 10.2.1 and unity 2019.2.0b1
- This demo is not working in iOS platform. After run "npm run watch" command as per mentioned steps, shows below error in terminal. HOT 2
- use_native_modules! skipped the react-native dependency 'react-native-unity-view'. No podspec file was found in react native version 0.60.5
- ARKit or Vuforia? HOT 1
- Crashes on Android due to error "libmain.so not found" with RN > 0.60 HOT 1
- Error while building application HOT 1
- 'RegisterMonoModules.h' file not found on Unity 2019.3.0 and Xcode 11.3
- Cannot find Library.Extension
- Android export error HOT 1
- error: Build input file cannot be found: Bulk_UnityEngine.UnityConnectModule_0.cpp
- Could not find path for Manifest and incorrect build path on build for android
- Not Woking For Unity 2020
- Expected ';' after method prototype at UnityUtils.h
- Get error when build example project
- Error when run demo HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-unity-demo.