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. Dismiss Notice

Building from Windows to iPhone

Discussion in 'iOS and tvOS' started by Goroh_, Jul 24, 2019.

  1. Goroh_

    Goroh_

    Joined:
    Mar 3, 2019
    Posts:
    7
    Hey guys, I think this is in the right spot.

    I've been having a bit of trouble trying to build from my Windows 10 laptop to my iPhone 6 and 7. I have a game test build ready to put on my iPhone and I've read a bunch of forums and watched a couple videos but I admit I'm a bit lost.
    Can anyone direct me to a guide or video that explains pretty clearly what I have to do? Or if I'm just missing something really simple?

    Thanks!
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You need a Mac to build for iOS. You can create an XCode project in Windows, but then you need to build that project on a Mac with XCode. From XCode you can publish directly to your phone or to iTunes Connect/TestFlight/App Store.
     
  3. DarkVerse

    DarkVerse

    Joined:
    Jan 9, 2017
    Posts:
    57
    What version of Unity do you have?
    I have been building from Windows to iPhone as Jeff described - build XCode project in Unity, transfer to Mac and then build/deploy via XCode. I was doing this with Unity 2018.3 successfully (you must open the xcworkspace in XCode NOT the project) but I have been forced to upgrade to Unity 2019.1 and Unity Hub and now with the same project I cannot build to iPhone. The build process in Unity now does not generate a xcworkspace and just the project.
    I will warn you that the iPhone build process is painful.
     
  4. DarkVerse

    DarkVerse

    Joined:
    Jan 9, 2017
    Posts:
    57
    Ok, I seem to have worked my problems and can now build to iOS from Windows with 2019.1.
    There is a new package that you need to add to the project "Google VR iOS" (via the Package Manager) which adds in the code necessary to build the xcworkspace and manage the pods and dependencies. This used to be included in Unity itself but seems to have been stripped out to a separate package. I could not find any information about this in the documentation for 2019.1 at all (or anywhere). The documentation is not up to date but without this package in your project you will not be able to build to iOS. This is in addition to the "GoogleVRForUnity" package.

    Hope this helps you or anyone else that may stumble onto this.
     
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    With a Windows system only, you are able to install a game on an iPhone and publish to the App Store and TestFlight?
     
  6. DarkVerse

    DarkVerse

    Joined:
    Jan 9, 2017
    Posts:
    57
    No, I build in Unity on Windows which creates and xcworkspace (and project) and transfer that to a Mac. From the Mac I can open the xcworkspace and build and publish to Test Flight/Spp Store/test device. To do it without access to a Mac I think you need to use Cloud Build, which I have not used so cannot comment on it.
     
  7. intellime

    intellime

    Joined:
    Mar 18, 2018
    Posts:
    13
    Take a look at this tool in AssetStore, I didn't try it by myself but I head of it. It costs for 60$ but anyway it may help if you just need to base all of your development process on your Windows machine:
    https://assetstore.unity.com/packages/tools/utilities/ios-project-builder-for-windows-15522

    Actually you need a MAC for the first use (just copying a couple of files from your MAC), but after that you are completely free to develop and build using your Windows machine.
     
  8. Felicionato

    Felicionato

    Joined:
    Nov 9, 2015
    Posts:
    4
    @intellime I purchased that tool, it is not even a package, you get an url to download the tool, the url doesn't work and the seller does not answer.
     
  9. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    The download worked for me for the free trial anyway (I didn't install it). I would recommend to always try the free trial before spending real money https://www.pmbaty.com/iosbuildenv/