Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Instant crash when build for iOS on Windows

Discussion in 'Unity 5 Pre-order Beta' started by derkoi, Dec 23, 2014.

  1. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,238
    Just putting this out here in case anyone else has similar issues that they've traced?

    I've been working on a backup of my project in Unity 5 beta for a while now and it's going pretty smoothly aside from trying to build for iOS on my windows machine. I can build to Android fine but I get an instant crash with beta 14 to beta 18. My project is far too large to submit a bug report and I think it's possibly some assets I have in the project as i can build to iOS with another simpler project.

    So before I start going through my project, can anyone share anything they've come across that's similar?

    Cheers
     
  2. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,238
    Anyone? This is still happening. :(
     
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Whats the error message displayed, you not giving us much info to work on, hence no replies.
     
  4. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    afaik you can't build to iOS from Windows...?
     
  5. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,238
    I checked the logs and I have this:

     
  6. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,238
    It works just fine with a simple project. You need to build the Xcode project & transfer it to a Mac though.
     
  7. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,238
    Just to clarify, I hit build and Unity closes down, no error in the console.
     
  8. RustyFlash

    RustyFlash

    Joined:
    Oct 8, 2014
    Posts:
    88
    Have you tried deleting the contents of cache and temp, then reopening the project in unity?

    I also had a very similar problem when updating to b17-18 where an instant death occurred when building for ios. Another thing I did was went into /ProjectSettings and deleted all that I thought was non-important or easy to re-enter. (the only ones I believe I left were TagManager and InputManager).

    It worked for me.

    (ps. deleting only when Unity is closed of course)
     
  9. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,238
    OK guys, thanks for your help. I managed to find the issues. I had some iOS plugins for GameCenter and other iOS features in the project. I deleted all those and it's now building fine. I've not added them back in to the project yet, so I'm not sure it's a permanent issue or some issue to do with upgrading the project. Reimporting might fix it though.

    What I did notice is that I had multiple files that should of been overwritten that didn't and have a number after them.

    eg:

    someFile.dll
    someFile 1.dll
    someFile 2.dll

    Not sure if this is a feature of Unity 5 or a bug but I've noticed it for quite a few of my files and it's a hassle deleting the extra copies.