Error building the Xcode project

Hello

I was able to build the Xcode project for the sample Startrooper project and then it was installed as an iPhone application without a problem. In fact it looks much better than the remote version.

Now, I am trying to build my ported game and I receive the following error when building the Xcode project:

Any clues?

did you import the project into the iPhone Editor so it can be upgraded?

I guess so. I duplicated my Unity project and then I opened one scene with the Unity-iPhone, then it showed a dialog message about a conversion, I accepted and it opened fine.

This definitely sounds like a bug. Please go to Help->Report a Problem. Attach your project folder, give a short description, and we’ll take a look.

Thanks Sam

It is uploading right now.

Hello Sam

I did not receive a confirmation email.

Can you please confirm that Unity Support received the compressed project?

Thank you

I think we’ve got a clogged pipe right now, and we’re all at the conference so we can’t go in and fix it. If you haven’t received the email by monday, email me.

I ran into the same error message with both of the Unity Pro projects that I’ve tried to bring into Unity iPhone so far.

I submitted one as a bug report, but since then I’ve narrowed the problem down to my pause menu script (called Options.js, also on the Unify wiki) which has a bunch of OnGUI code. Once I removed that script (not just detached it, but completely deleted it from the project), the build succeeded. That script is pretty big, though, so I don’t know what exactly was causing the problem.

Thank you for sharing that info.

I don’t use the Options.js but I will try to get rid of unnecessary GUI code to see what happens.

I pasted my code back in and narrowed down the problem further. Looks like it was my use of the Process class, imported from System.Diagnostics.

Once I removed that, the error is gone, so maybe it occurs when the mono compiler encounters unsupported .NET classes.

Thank you so much! :smile:

You hit the nail in the head.

The game did have a “System.Diagnostics” call which I deleted and now it builds and runs on the iPhone.

I owe you one.

Andres :smile: