Git Product home page Git Product logo

Comments (1)

mikeyamato avatar mikeyamato commented on August 21, 2024 2

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".
Screen Shot 2019-04-15 at 10 40 07 AM

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.
Screen Shot 2019-04-15 at 12 14 03 PM

Screen Shot 2019-04-15 at 12 30 22 PM

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.