Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework unity_init problem #58

Open
luiching opened this issue Nov 9, 2017 · 1 comment
Open

Framework unity_init problem #58

luiching opened this issue Nov 9, 2017 · 1 comment

Comments

@luiching
Copy link

luiching commented Nov 9, 2017

I have follow the steps to create a framework.
Then i open an objective-c project and embedded the framework.
I am not able to place this line "unity_init(CommandLine.argc, CommandLine.unsafeArgv);" in AppDelegate.
It said Use of undeclared identifier 'CommandLine'.
If i comment out this line and run the app, it will crash and mention "GfxDevice: creating device client; threaded=1
gfx device intialization failed"

Please help.
screen shot 2017-11-09 at 6 17 57 pm

@jiulongw
Copy link

You cannot comment out this otherwise Unity will not initialize. Most likely the bridging header file is not properly configured that's why it complains of undeclared identifier.

Check out this repo with most up to date Unity (2017.2) / Xcode (9.1) support and a demo project you can play with all the settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants