How to Build & Run Unity to iOS for Testing

preview_player
Показать описание
In this video I'll show you how to quickly build to iOS and iPhone/iPad using Unity. You'll need a Mac and an iOS device.

Wishlist my new game BUMBI on Steam!

🔗 Relevant Video Links 🔗
►Xcode - download latest version
►Apple USB-C to Lightning Cable (I bought the 2m one)
► Nintendogs Meets AR: How I Made a Virtual Pet Simulator in 3 Days

Summary of the steps:
1. Download Xcode from Apple's Developer Website (link above)
2. Add iOS Module support in Unity Hub to the version you are using
3. In Build Settings Switch to the new iOS platform
4. Select Development Build
5. Make sure API version is minimum 12.0 for iOS in the Player Settings
6. Build & Run - if error that cannot find Xcode path, go to Xcode settings, then Location, then reset the Set Command Line option to Xcode (you will need to enter your Apple ID password) (just reclick it, I don't know why it fixes it)
7. Xcode will now pop up with the build. You need to Enable Automatic Signing under the Signing and Capabilities Tab, and create a new Team with yourself if you haven't already.
8. Connect your phone to the computer and enable Developer Mode on the Phone (Settings - Privacy & Security - Developer Mode - Check Yes and Restart Phone)
9. In Xcode, at the top bar make sure your phone is selected as the output device.
10. Click play on the top left to build to phone.
11. Trust the app on your phone, go to General - VPN & Device Management - Click Your Developer App - and Click Trust
12. Tada! Click your app and allow permissions as necessary.

🤝 Support Me 🤝

►⏱️ Timestamps ⏱️
0:00 Intro
0:22 Download XCode
1:09 Downdload iOS package
1:40 Build Settings
3:59 XCode Settings
4:51 Connect Phone and Enable Developer Mode
5:56 Trust App
6:48 Outro

💖💖THANK YOU TO ALL MY PATRONS 💖💖

❯❯❯ My Links ❮❮❮
💗 Patreon 💗
💬 Discord Server 💬
🐦 Twitter 🐦
📚 Facebook 📚
👍 Like and Subscribe! 👍

🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!

#unitytutorial #gamedev #unity
Рекомендации по теме
Комментарии
Автор

This is exactly the tutorial I needed, I've been avoiding trying to build anything for my iPad because I thought I needed the dev account.

barisaxo
Автор

Awesome! This helps a lot.
Props to apple for somehow managing to make a simple process so much more stressful and complicated than it needed to be...

rodrigoortiz
Автор

Hey, thanks so much for this video! Sometimes I get overwhelmed with all the different tech stacks I'm learning, and having someone like you to gentle guide me through an experience is super valuable. It's been a good 4 years since I've gone through this process, so thank you for showing me the ropes this time around - much smoother than my first go!!! Thank you!

ewwitsantonio
Автор

One of the things I don't like is that you need to have also Unity with iOS development "plugin" and also xcode, which downloads additional platforms every time you run it. This cause that I need to have around 25-30GB space used for program that is used only for compiling application 🤷🏻‍♂

PS. More MacOS content, yeeey! 🙌

blazeDev_vlog
Автор

I was getting a lot of errors until I gave access to the command line in the Xcode settings, thank you for the info.

FireExhaust-rb
Автор

Thanks so much. You saved my life at the last day before the final deadline.

mangolingo
Автор

So the app will be playable for 2-3 days only? Am I correct?

pablos
Автор

I received an error 'phasescriptexecution failed with a nonzero exit code' and Idk how to fix it.
I followed the step in this video and the beginner video.

劉彥廷-yi
Автор

Android phones are in most cases easier to use than iPhones. Moving around apps and using the keyboard is way easier imo. When an Android user is buying a new phone, he can choose if he wants a phone with a better camera, a phone that is better for gaming, a budget phone or just an overall good phone. Switching from an Android to Android is easy and there are a lot of options. All Androids work well together with Quick Share instead of Airdrop, RCS messaging instead of iMessage and NFC can be used between devices. Also releasing apps for Apple products is a nightmare for most developers since you need to use Xcode to make it work for Apple products, and you need a Mac to use Xcode. Releasing apps for Windows, Linux and Android is much simpler, you don't need your own app for that. Forcing developers to use a Mac is just one of the many things Apple does to force people to pay more. Android has more features, and that makes some people think that it's harder to use, but you don't need to use those features. They are there but they are not in the way. I get that people say that the Apple ecosystem is great and that all the products work well together, but it is the same for Android. It can screen cast to TVs, be used with Windows and Linux PCs and it can use third party apps for earbuds and watches. Android has more phones, is easier to use, has more features, more apps, is easier for developers and most of the time it's way cheaper than Apple products.

potetmoscpp
Автор

This was incredibly useful for solving several issues keeping me from testing on my iPhone. Thank you for such a detailed video!

deepSpaceLabs
Автор

Thank you for your video. I just follow the steps you say and the app runs successfully on my iPhone. I've never seen my app runs on my iPhone before. And it's funny when you say restart everything for Unity recognizes Xcode 😆 but it's true.

LinhNguyen-gdwn
Автор

Thanks a million for taking the time and effort to make this tutorial!

jumpkut
Автор

thanks, that Xcode build path tripped me up!

MarkThomas-fu
Автор

Thanks so much for this. Always these fiddle starter bits that seem to take an age unless someone just runs through it!

Brocollipy
Автор

Thanks for this great video. This has been a real PITA even with your video, so I can only imagine how painful it was to work out. One issue I had was that the enable developer mode switch was not available until I unplugged and replugged in the phone after Xcode was open.

KamBha
Автор

You are an Amazing teacher.👏🏻
I like that you explain everything with care for details & you also have a good sense of humor. The World needs motivated and curious teachers like you in Colleges (or maybe we don't need Colleges anymore, only nano degrees / Online Courses & YouTube... but that's a totally separated topic).

Thank you for the dedication & love you put into every Video. It's very well appreciated 🎮😅👍🏻

alec_almartson
Автор

thanks, I literally just got my mac computer like last week so you're right on time as usual

pourmydrank
Автор

Hi, thank you for making this video! I wanted to ask you something: I'm trying to develop a AR app but I can't make it work. I get five weird errors I never got before (I used to use a different mac with a different phone and I had no problems building the app), such as "RenderPluginDelegate.h:3:10 double-quoted include "LifeCycleListener.h" in framework header, expected angle-bracketed instead". I also noticed that I never had to trust my mac, that is weird because maybe its not being recognized by the cable... I honestly have no idea how to fix all of this. Do you have any ideas?
Thank you so much :)

Emilia_Gozzano
Автор

Thanks very clear and to the point. Second time I'm watching it so I don't miss anything!

gazeth
Автор

Thank you so much for your tutorial! It was well explained and easy to follow

Jeireme