x


Sometimes Unity iPhone build fails, then XCode launches the previously installed build. Can either be avoided?

When I build my app in Unity iPhone (1.5.1), it builds the XCode project, launches XCode (version 3.1.4). XCode compiles the app, sends it to the device, and runs it.

However, often the XCode build triggered by Unity fails outright with an error, something about there being no target selected. Two issues: 1) Instead of stopping, XCode goes ahead and runs the last build that I transferred to the device. If I'm not paying attention I might think that it's running the new build, not the old one. 2) When I click on Build & Go in XCode, the app builds with no errors, transfers to the device, and all is well.

I would like to avoid this phantom build error if possible. But it wouldn't be a big deal if XCode aborted instead of running the version of the app that's already installed on the device. So help with either of these issues would be appreciated.

more ▼

asked Nov 27 '09 at 03:46 AM

Bampf gravatar image

Bampf
5k 8 19 49

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I had similar problems prior to 1.5.1, are you doing Build and Run or going through Build Settings?

I have found that my problems occurred when using Build and Run, so to get around that I go through Build Settings and then override everything in the folder (or create a new folder each time).

Hope that helps!

==

more ▼

answered Dec 04 '09 at 10:31 PM

equalsequals gravatar image

equalsequals
4.5k 16 28 64

You may be right- 1.5.1 seems to have fixed it in my tests today! I am just giving it a couple more days to be sure.

Dec 06 '09 at 04:18 AM Bampf

No sign of the problem since I switched to 1.5.1. Build & Run works from Unity iPhone without any special handholding from me. Thanks!

Dec 08 '09 at 03:05 AM Bampf
(comments are locked)
10|3000 characters needed characters left

I have found this to be the case every time. I tend to just clean my build from within Xcode before telling Unity iPhone to build. This seems to work all the time, though each time I do this, I get an error saying it doesn't have architecture build info or something for arm6, and yes I am building against the device ;) I just hit build form within Xcode at that point. More steps then I would like, but also something that I know that works.

more ▼

answered Dec 07 '09 at 01:10 AM

shykat_games gravatar image

shykat_games
1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2000
x347
x123

asked: Nov 27 '09 at 03:46 AM

Seen: 2397 times

Last Updated: Nov 30 '09 at 01:24 AM