Has anyone tried to build Unity apps for iOS 7 with the preview of Xcode 5? Does it work out of the box?
Unity 4.1.5f1 (latest version) projects do not compile with XCode 5 – I tested with a near-empty project as well as complex projects with multiple native Objective-C plugins. I’d wait on updating until Unity issues a fix.
EDIT
Projects do actually compile and deploy properly – it just takes about 5 minutes to compile one of the dll files – this may get faster as newer builds of Xcode 5 get issued.
Yea I tested with 4.1.3f1 and xcode 5 didn’t work for me either… However I was able to compile my game in the current release of xcode and test on ios 7.
Thanks PuriPuri and agentsmith for your replies! I will try you method, agentsmith!
Cheers
Please post more details on what errors do you get and what OSX version do you use.
Is a unity engineer able to say whether you’re planning to update 3.x too?
Apologies but I’m assuming the issues will affect both versions as I’m not able to take the leap and test it out.
TIA
To properly answer to this question we need at least one detailed issue report. So far we haven’t received one (if you have your case number please PM me). And please keep in mind that new Apple tools are very early developer previews and are subject of further improvement in nearest future.
one more thing to note: you absolutely must download command line tools (just xcode5 is not enough)
I just tried to compile again and evidently I didn’t wait long enough – it took about 6 minutes for the compiler to compile mscorlib.dll.s but it did eventually.
On Xcode 4x the build would take about 15 seconds, so something is definitely different, but it does actually build and deploy properly to an iOS 7 device from Unity 4.1.5f1! I’ll still submit the bug report.
EDIT
Should also add that installing the command line tools in Alexey’s post likely fixed the problem. Xcode will appear to hang when compiling but it should work after 5 to 6 minutes of working on mscorlib.dll.s
I’m seeing the same 5 minute build times for mscorelib, so nothing new to report there. I was able to build and debug my app.
Something else I’ve noticed, though, is that backgrounding the app and then returning to it seems to lower the framerate dramatically. I know this is all Beta software, but i’m wondering if anyone else is seeing this?
Hmm never mind, I can’t seem to reproduce this behavior anymore. The overall framerate of my app is down in iOS7 but i’ll investigate a little more.
I am trying to use Xcode 4.6.2 to build for iOS 7, but it doesn’t list my phone as a devices it can build to. In Organizer - Devices it says this “The version of iOS on “XYZ’s iPhone” is not supported by this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK” Is there something in addition I need to do to build? I haven’t tried with XCode 5 yet.
You must use XCode 5 Developer Preview to build for iOS7. Good thing is that it installs along side of the current version of XCode.
On a somewhat-related note, it looks like iOS 7 will support external game controllers now. Hopefully the Unity guys can tie it into the Input class ASAP.
Hope Unity will support Bots in XCode 5
-
continuously builds
-
nightly bots with app archiving
-
code control
It’s a bug in Xcode 5 toolchain. We are submitting bug to the Apple.
@Mantas, cool, thanks for the update. I have a feeling that there will be a lot of these temporary bugs prior to iOS 7 being released. Should we open up a sticky thread for these issues or tag iOS 7 beta related forum posts in any way?
I have Xcode 4 and 5 installed, and Unity automatically tries to open Xcode Projects in Xcode 5 when using Build and Run, does anyone know how to change this?
xcode 5 on install most likely changed the mime type or metadata to open .xcodeproj files with it instead of xcode4. you most likely have to manually reset it. though i forget where.
Of course you can just build it without running it and open the proj-file with Xcode 4 - that’s what I do right now
Just tried building a Unity 4.1.5f with the today’s Xcode 5 Developer Preview 3 and it now compiles projects as fast as Xcode 4 did – it can now be used to test without having to wait five minutes for it to compile!
There is a new problem though: on my iPhone 5 running iOS7 beta 3 the text from the status bar (and battery status icon) is being overlaid on top of the Unity GL view…This didn’t happen with earlier betas, nor with iOS 6 and below (AFAIK)