-
Notifications
You must be signed in to change notification settings - Fork 68
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
xcode9 and unity 2017.1 #52
Comments
Yeah, you need to put |
thanks, but this issue I am having is a crash on startup: Anyone else having the same issue? |
Yes with Xcode 9, no with unity 2017.1. Would love to hear if anybody’s been able to do it :-)
… On Sep 9, 2017, at 2:44 PM, Suraya Shivji ***@***.***> wrote:
Anyone had luck with this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@etown Change
|
@mrniket thanks! I tried your suggested change, but still a crash at startup: did you have to make any other changes from the 5.x method? thanks! |
Hi @etown, sorry for the late reply! I also changed this line in Does that work for you? |
Hey, @mrniket. I'm on the same issue and sadly, the second suggestion didn't help too. |
We were having problems like this in our project so I made two scripts to try and automate this stuff. Given you have:
you should be able to use these scripts if you just change the paths to whatever they are in your project. The https://github.com/ocadotechnology/rapid-router-ios/blob/blockly_translator/fixProjectFile.rb Hopefully these work for you! |
@mrniket thank you, it works! |
I'm using Unity 5.6.2f1 with success on Xcode 9. But with 2017.1.1f1 if I build and insert my project on Xcode 9, I have linker-o symbol not found error. Anybody try to build with Unity 2017.1.1f1 with success ? Plus any idea on how to support plugin in embedded unity app ? I'm trying to use GVRSDK on unity, build project and embed in my native iOS app but can't build it on Xcode... |
@jplongo Here is a complete demo project that embed Unity 2017.1.1f1 into Xcode 9 Swift project: https://github.com/jiulongw/swift-unity You didn't post error details so I can only guess your issue.
As for GVRSDK, as long as you add folder containing .a to library search path and link the library (e.g. |
Hi all , i have updated this :- updated your OTHER_CFLAGS in .xcconfig to but unble to implement these step can any one help me to implement these .rb files you should be able to use these scripts if you just change the paths to whatever they are in your project. The fixProjectFile.rb script tries to set up the file references correctly in your Xcode project file. The projectRefresh.rb script performs the file changes you need to do every time you build from Unity. https://github.com/ocadotechnology/rapid-router-ios/blob/blockly_translator/fixProjectFile.rb |
NSBundle *bundle = [NSBundle bundleForClass:[self class]]; |
I got it working on Xcode version 10.2.1 (10E1001) + Unity 2018.2.18f1 by changing: Unity/Classes/CrashReporter.h from:
to:
|
@ZombieMK :I tried above solution but still getting below error at line UnityInitApplicationNoGraphics([[bundle bundlePath] UTF8String]); Error :Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) Console Output is :2019-04-23 08:28:24.984534+0530 ProjectName[9685:153486] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform. (Filename: ./Runtime/Modules/LoadDylib.cpp Line: 199)........ |
I encountered same problem and didn't get resolved with above solution, but I find the old project has some strange flags in other c++ flags(OTHER_CPLUSPLUSFLAGS): -x objective-c++, which cause the runtime crash for unity, after remove these flags, and do some minor changes for source code, it works! |
has anybody had success? I was able to get it to build what it would crash consistently on startup.
The text was updated successfully, but these errors were encountered: