f111fei / react-native-unity-demo

103 stars 80 forks source link

'RegisterMonoModules.h' file not found #8

Closed vomc closed 6 years ago

vomc commented 6 years ago

Hey - very awesome project excited to try this out. Unfortunately the instructions you have in the read me are not working for me...

When I try to run npm run ios I get this output:

MacBook-Pro:react-native-unity-demo cenotaph65$ npm run ios
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'ios' ]
npm info using npm@5.6.0
npm info using node@v8.10.0
npm verb run-script [ 'preios', 'ios', 'postios' ]
npm info lifecycle rnunitydemo@0.0.1~preios: rnunitydemo@0.0.1
npm info lifecycle rnunitydemo@0.0.1~ios: rnunitydemo@0.0.1

> rnunitydemo@0.0.1 ios /Users/cenotaph65/Documents/react-native-unity-demo
> node node_modules/react-native/local-cli/cli.js run-ios

Scanning folders for symlinks in /Users/cenotaph65/Documents/react-native-unity-demo/node_modules (10ms)
Found Xcode project rnunitydemo.xcodeproj
Launching iPhone 6 (iOS 11.3)...
Building using "xcodebuild -project rnunitydemo.xcodeproj -configuration Debug -scheme rnunitydemo -destination id=0AA60518-BFB2-46F2-8AB0-BA1F144C2972 -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/cenotaph65/Documents/react-native-unity-demo/ios/build

xcodebuild: error: The project named "rnunitydemo" does not contain a scheme named "rnunitydemo". The "-list" option can be used to find the names of the schemes in the project.

Installing build/Build/Products/Debug-iphonesimulator/rnunitydemo.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/rnunitydemo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

When I try to open the project using XCode, the build fails with:

screen shot 2018-05-24 at 2 18 18 pm

Will keep trying things but any advice would be appreciated!

Thanks

macrozone commented 6 years ago

@vomc how did you solve this? running into the same issue

macrozone commented 6 years ago

ok solved it: check that you move your unity project folder under /unity with its folder as well. I just moved the contents of the unity project into /unity instead of the folder as well

marlon-wiprud commented 4 years ago

@macrozone Any chance you can explain what you mean by this? check that you move your unity project folder under /unity with its folder as well ?

Running into this issue as well. Any tips are appreciated!