- MAC OS X, Xcode and Virtualbox
- Related Articles
- That’s what she said!
- President Bill Clinton
- What happens in Vegas will not stay in Vegas
- Xcode виртуальная машина. Первый шаг в разработке приложений под Mac
- How to Install Xcode for Windows 10/8/7 PC
- Steps to Install Xcode on Windows Computers
- Пошаговая установка macOS Sierra на VMware на Windows
- Установить Xcode
- Экспорт проекта iOS из Clickteam Fusion 2.5 и запуск в Xcode
- Недостатки:
- Rent a Mac
- Virtualize MacOS
- Build a “Hackintosh”
- Third Party Solutions
- Xcode – App Development Kit
- Requirements to Install Xcode on Windows 7/8/10 OS
- Steps to Install Xcode on Windows 10, 8/8.1 and 7 PC or Laptop
MAC OS X, Xcode and Virtualbox
Related Articles
That’s what she said!
President Bill Clinton
What happens in Vegas will not stay in Vegas
I do not endorse or approve pirating of any kind. Please make sure you own a legitimate copy of OS X.
Let me preface my hate for Apple before I start. I actually used to be somewhat of an Apple fan boy with my lavishing new iPhone, iPad and a ton of apps. That was until I got a new Windows Phone 8 and also decided to start developing for the mobile platform. I love my Windows Phone and will never buy another iPhone and I also love my Microsoft Surface Pro and will never buy another iAnything.(at least willingly) I do realize iPad can be a great device for those people who like to surf the internet, check email and play with basic apps. In the corporate world though as a developer it is useless to me. My Surface is so much more as I can pretty much do anything on it that I can on my desktop or laptop.
Besides all of that the biggest reason for my hate is that Apple makes it real difficult to develop for IOS if you don’t have a MAC. They do not provide a Windows version of their toolset Xcode that is used to develop IOS apps. While Microsoft doesn’t have an exclusive native SDK for MAC to develop for Windows Phone they do have several walk through documents on how to install and setup a development environment in MAC OS like this one. Ok, I am done with my rant and can get on with the article.
The whole point of this article is to describe what it took for me to setup a MAC OS X development environment on my Windows 8.1 computer so I can develop IOS applications. More of a note to self since I will have to do this in the future and can never remember how I did it.
- A computer that supports virtualization.
- Virtualbox from Oracle. https://www.virtualbox.org/
- MAC OS X 10.8X Mountain Lion ISO that has a boot loader included. You can search for this or go to this site. http://leohazard.com/NOTE:Please make sure you have a legitimate copy of this software.
Ok, finally, here we go.
- Install Virtualbox. Nothing fancy here just do all defaults.
- Start Virtualbox and click New.
- In the name type MAC OS X Mountain Lion or whatever you want and make sure the Type is MAC OS X and the Version is Mac OS X 10.8 Mountain Lion (64 bit).
Click Next.
- Memory can be left at 2048 but if you have more to spare you can increase it. There has been issues sometimes if more than 4096 is selected. Click Next.
- Make sure Create a virtual hard drive now is selected and click Create.
- VDI is the default which is fine, click Next.
- Choose Dynamic or Fixed then click Next.
- Hard drive size is up to you but do not go below the default 20GB. I selected 35GB. Click Create.
- Select your new VM that you just created and click Settings.
- You will see all of the different options on the left side. General is fine. System is our first place we need to make changes. Click System. Uncheck Floppy, uncheck Enable EFI.
- Click the Display tab. Increase the Video Memory as high as it will go which should be 128MB. Check Enable 3D Acceleration.
- Click the Storage tab. Delete the SATA controller and VDI in the list. Create an IDE Controller. Add the VDI you had created during the new VM wizard or you could also create a new one. Add the MAC OS X 10.8X Mountain Lion ISO as a CD/DVD Device. Also make sure the Type is ICH6.
- Click Ok to close the settings window.
- Start the VM. You might need to press F8 to enter the boot loader or boot from the CD. If all has been setup correctly you should come up to installation screen.
- Go to Disk Utilities. Choose the hard disk click the Erase tab. Make sure the format is OS X Extended (Journaled) and set a name like OSX. Click Erase.
- Close Disk Utilities.
- Continue the installation but make sure to click Customize on the bottom left when that screen comes up.
- In the customize screen the most important thing to check is one of the boot loaders. Look through the other options and check what you think you might need.
- Continue the install. It will give you an estimate while installing and can be anywhere from 10-30 minutes.
- You will get an Install Succeeded message and a restart button. Click Restart.
- It most likely will not actually restart and hang after a shutdown message. Manually close/shutdown the VM.
- Before you start the VM back up make sure to go into settings and remove the CD/DVD from your IDE controller.
- Start the VM and it should boot into MAC OS X Mountain Lion. If it keeps coming up to a message like boot kernel, hit F8 then type -f to ignore those messages and continue to boot.
- You should be greeted with the MAC OS X preparation screen. Once you are into the OS I suggest shutting down and taking a snapshot.
- You now have a MAC OS X virtual machine that you can install Xcode on and develop IOS applications. I will most likely write a post on Xcode also.
Источник
Xcode виртуальная машина. Первый шаг в разработке приложений под Mac
Xcode is an IDE that is used to develop apps for different operating systems. As we know, we have a lot of different software tools and systems that can be used to develop apps for operating systems like Windows and Linux. On the very another hand, when it comes to developing Mac apps, it is not an easy job. We can easily install any software tool on an operating system like Windows to develop apps on it. But, Mac requires SDK that is Xcode. This is a platform that can be used to develop apps on Mac or iOS. In this post, we will show you how to install Xcode on Windows 10, 8, 7 or Vista PC.
How to Install Xcode for Windows 10/8/7 PC
- Mac OS X Virtual machine
- Intel processor with dual core integrity
- Hardware virtualization
- Xcode application install package
- Memory of the system with at least 2GB
Steps to Install Xcode on Windows Computers
Here you will get to know how you can install the package to your virtual machine in order to get the installation of Xcode completed. You can download the latest Xcode application package from the official site of Apple. All you need is going to the Xcode website, putting your Apple ID and downloading the package. Now if you are ready for the installation process, have a look at this process.
Download Xcode for PC running Windows 10/8/7
Step 14: Type Xcode in the search bar and select the Xcode from the search results.
Install Xcode on Windows Computer
Step 15: Provide your there and click OK.
Download and install xcode on PC
Step 16: You are all done! You have successfully installed Xcode on your machine.
Use Xcode on Windows 7, 8 or 10 PC
You have successfully installed Xcode, app development software on your Windows PC or Laptop. The performance and speed of Xcode won’t be extremely high because you are running this software on Windows, but it can be used for educational purpose. Hope that these steps will help you to install Xcode on Windows 10, 8 and 7 PC.
Доброго времени суток, будущие и настоящие программисты
На прошлом уроке мы поговорили о целях и начале пути программирования для iOS.
Сегодня я расскажу как установить Xcode на OS X .
Первая и самая главная составляющая – Apple MacBook / Mac Mini/ iMac .
Не стоит на этом месте приунывать, есть решение и для любителей Windows!
Поэтому те, кто имеет вышеназванное оборудование, могут смело переходить к следующему шагу . Остальные читают далее.
Устанавливает Mac OS X
Итак, для установки OS X на Windows нам необходимо:
- Ноутбук или настольный компьютер, поддерживающий виртуализацию (большинство современных компьютеров).
- 2 Гб оперативной памяти или больше.
- VMWare Workstation – известная программа для виртуализации систем. Это платная программа, но, немного поискав, можно скачать ее бесплатно(торренты никто не отменял).
- – операционная система, желательно собранная специально под VMWare . Она должна быть не ниже 10.8.4.
- Процессор должен поддерживать виртуализацию.
- В BIOS включена поддержка виртуализации(обязательно проверьте).
- Количество ядер выставляйте согласно количеству ваших физических ядер.
- Качаем и устанавливаем VMware Workstation . На состояние Январь 2014 года я взял VMware Workstation v10.0.1. Русифицируем ее (Если есть желание. Для этого предварительно отключим все процессы vmware в Диспетчере задач).
- Качаем и Распаковываем файлы для патча(анлока) VMware (обычно идет в комплекте с Операционной системой). Заходим в папку, соответствующей нашей версии VmWare. Затем выбираем папку соответствующей нашей операционной системе и запускаем файл “install” от имени администратора и ждем закрытия окна. Если у вас никоим образом не получается воспользоваться этим методом, то в папке есть Патч (VMware Unlocker – Hardware Virtualization Bypasser)
- Распаковываем архив со скачанной Операционной системой.
- Заходим в распакованную папку и запускаем “OS X Mavericks.vmx”.
Откроется наша виртуальная машина VMware
Никаких настроек не производим, она сама выберет подходящие, и нажимаем кнопку ”Включить виртуальную машину”. При первом запуске указываем – “I copied it”.
Начался запуск. Если у Вас долго висит окно с Яблоком, значит вы плохо пропатчили виртуальную машину. Внимательно прочтите инструкцию к вашей версии машины и повторите действия снова, до победного конца!
Итак, система запустилась!
Меняем разрешение и прочие настройки на свой вкус, смотрим, наслаждаемся, но всё это нашей цели не касается
Внимание! Для того, чтобы скачать последнюю версию Xcode необходимо, чтобы работал интернет в OS X. Когда я поставил впервые, у меня он не работал. На следующее утро всё заработало Если не получается, пишите, разберемся.
Открываем AppStore и ищем Xcode. (для установки необходимо будет зарегистрироваться и получить Apple ID, если его у вас еще нет)
Установка пошла. Среда разработки Xcode занимает 2,09 Гб, поэтому надеюсь у Вас безлимитный интернет . Скорость загрузки напрямую зависит от вашего тарифа.
Приложения для iOS тестируются в Xcode , а для этого нужен Mac . Но не расстраивайтесь, если вы не являетесь счастливым обладателем Mac’a , как и я, то вам просто нужен эмулятор macOS для Windows .
Сразу хочу сказать, что если у вас нет аккаунта разработчика Apple Developer , то вы не сможете протестировать игру на реальном устройстве iPhone или iPad . Тесты можно будет проводить только в среде Xcode .
Что бы установить macOS на Windows , вам понадобиться следующее:
- Эмулятор VMware Workstation 12 Player + Patch
- Образ macOS Sierra . Здесь я хотел бы пояснить один момент. Дело в том, что Xcode устанавливается только на macOS последней версии. Поэтому нужна именно macOS Sierra. На момент выхода статьи: версия Xcode — 8.1 и версия macOS Sierra — 10.12.1
Пошаговая установка macOS Sierra на VMware на Windows
1) Извлеките архив macOS 10.12 Sierra.rar , начиная с первого.
2) Установите VMware-player . Затем извлеките архив Patch Tool.zip , откройте папку unlocker208 и запустите файл win-install.cmd от имени администратора:
3) Откройте VMware Player . Вам нужно будет ввести e-mail:
4) Затем нажмите «Create new virtual mahine »:
- Guest OS: Apple Mac OS X
- Version: macOS 10.12
5) Дайте имя новой виртуальной машине:
- введите имя;
- нажмите кнопку «Browse » и создайте папку, в которую будет установлена macOS Sierra (можно оставить путь по умолчанию);
- на следующем шаге отметьте пункт «Store virtual disk as a single file ».
6) Настройте виртуальную машину:
- Нажмите «Edit Virtual Machine Setting »;
- выберите «Hard Disk (SATA) 40 GB »;
- нажмите кнопку «Remove ».
- нажмите кнопку Add ;
- выберите Hard Disk ;
- выберите Hard Disk — SATA ;
- отметьте «Use an Existing Virtual Disk ».
Нажмите «Browse » и выберите файл образа macOS 10.12 Sierra Final by TechReviews.vmdk :
9) Вы можете настроить Ram от 2.56 до 4 Гб и процессор — от 2 до 4 ядра:
Но не у всех есть мощный компьютер способный тянуть эмуляцию на полную катушку, так что лучше настроить:
- виртуальную память на 2GB , а не на 4GB;
- процессор на 2 ядра , а не на 4;
- используйте USB 2.0 , вместо USB 3.0 (с ним бывают проблемы).
10) Отредактируйте файл VMX.
Щелкните правой кнопкой мыши на файле vmx (в папке, которую вы создали на шаге 5) затем выберите Открыть с помощью «Блокнот»:
Скопируйте этот код: smc.version = «0» и вставьте его последней строчкой:
Сохраните файл.
Всё! Теперь запустите эмулятор кнопкой «Play virtual machine ».
Если у вас возникает ошибка при запуске эмуляции, значит вам нужно включить в BIOS так называемую опцию intel virtualization или intel virtual technology :
Установить Xcode
При первом запуске macOS вам нужно будет пройти этапы настроек Apple . Здесь лучше сразу выполнить вход в Apple ID . Вы можете пропустить этот шаг, но идентификатор iTunes (или Apple ID) все равно нужен, что бы установить Xcode из App Store .
Если у вас нет яблочных устройств, то, скорее всего, нет и Apple ID , зарегистрировать его можно на сайте Apple .
Apple ID — это e-mail , который вы указали при регистрации.
Так же нужно будет создать аккаунт учётной записи, пароль можно установить просто 1. Затем для входа в систему введите пароль — 1
Итак, вы сделали Mac из своего компьютера на Windows . Отлично!
Теперь жмите на иконку App Store -> В поиске введите «xcode » -> Установите программу Xcode .
Экспорт проекта iOS из Clickteam Fusion 2.5 и запуск в Xcode
Выберите тип построения проекта — iOS final Xcode project . Clickteam Fusion 2.5 предложит вам выбрать один из размеров экрана.
- 320×480 — старые модели iPhone
- 640×960 — iPhone 4/4S
- 768×1024 — iPad , iPad 2 , iPad mini
- 640×1136 — iPhone 5 , iPhone 5C/5S , iPhone SE .
- 1536×2048 — iPad (3gen) , iPad 4 , iPad Air, iPad Air 2 , iPad mini (Retina) , iPad mini 2 , iPad mini 3 , iPad mini 4 , iPad Pro .
- Вторая строка — это те же самые устройства в положении landscape .
Нажмите File -> Build -> Application и вы получите zip-архив проекта.
Важно: название проекта не должно содержать русских букв.
Я подготовил такой файл для тех, кто ещё не обзавёлся экспортом Clicteam Fusion 2.5 для iOS (скачать App-iOS.zip)
Далее нужно перенести этот zip-архив на Mac . И здесь не получится просто скопировать и вставить файл. Вам нужно скинуть архив на флешку, затем открыть эмулятор, вытащить и снова воткнуть флешку.
Распакованную папку лучше скопировать на рабочий стол и запускать файл с Mac’а , а не с флешки.
Откройте папку и кликните двойным щелчком мыши по файлу с расширением .xcodeproj .
Проект откроется в Xcode . Слева вверху вы можете выбрать устройство для тестирования.
Выберите желаемое устройство и нажмите кнопку Run .
Если нажать и держать лкм в левом нижнем углу кнопки, появиться дополнительное меню.
Когда загрузиться окно симулятора устройства, кликните на иконку приложения.
Что бы закрыть симулятор нажмите Quit в выпадающем меню по клику правой кнопки мыши.
Недостатки:
- Конечно, приложение будет притормаживать.
- Невозможно протестировать множественные касания (Multiple Touch ).
- В симуляторе не работают кнопки клавиатуры. Ну, это и понятно, вы же как бы находитесь в iPhone /iPad .
- И ещё, на всякий случай, в Mac не работает правый Shift .
Но даже несмотря на недостатки, это уже кое-что. И этот способ даёт возможность бесплатно протестировать приложение для iOS .
Приложения для iOS тестируются в Xcode, а для этого нужен Mac. Но не расстраивайтесь, если вы не являетесь счастливым обладателем Mac»a, как и я, то вам просто нужен эмулятор macOS для Windows. Сразу хочу сказать, что если у вас нет аккаунта разработчика Apple Developer, то вы не сможете протестировать игру на реальном устройстве iPhone или iPad. Тесты можно будет проводить только в среде Xcode. Что бы установить macOS на Windows, вам понадобиться следующее: Эмулятор VMware Workstation 12 Player + Patch Образ macOS Sierra. Здесь я хотел бы пояснить один момент. Дело в том, что Xcode устанавливается только на macOS последней…
Как тестировать проект игры под iOS
Как тестировать проект игры под iOS
You can make an app for iOS even if you’re on a PC running Windows 10.
I wish I had known this when I first started because I delayed myself for 3 years before biting the bullet and buying a Mac.
Had I known about running Xcode on Windows or about the solutions below, I might’ve started building iPhone apps much earlier!
Rent a Mac
Before committing to buying a new Mac, you can actually “rent” one for development. You’ll remotely access the Mac and Xcode through your PC.
It’ll be like having the Mac desktop in a window on your Windows Desktop.
The really nice thing about this option is that the cost is really low and it’s the fastest option to get up and running.
If you decide that app development isn’t for you, you just cancel your plan.
These guys were featured in the recent Apple keynote when they introduced the updated Mac Mini! They have the newest Macs available.
(Use coupon code “CODEWITHCHRIS” for 50% off your first month. If you do, please let me know in the comments below. I’ll get a small kick back at no extra expense to you so thank you for supporting my site!)
If you go down this route for iOS app development, make sure you get my Xcode cheatsheet with references and keyboard shortcuts for Windows users .
There are a couple other companies that provide this service:
2. MacInCloud
This is the most well known service out of the three. You won’t have to install Xcode because it comes preinstalled. You can also do pay-as-you-go so it’s a pretty low commitment. Some people complain that it’s slow but you can try it out for yourself since it’s only about a buck an hour!
3. XcodeClub
XcodeClub is run by Daniel who is a passionate developer himself. From the reviews I see, the service is fast and friendly. The pricing is less flexible than MacInCloud and you’ll have to commit to at least a month.
Virtualize MacOS
If you’re a little more technically savvy, you can use virtualization software and run a “virtual Mac” on your PC.
The services above are essentially doing the same thing on their servers and then they charge you a fee to access the virtual machine.
By setting it up yourself on your own PC, you essentially cut the middle man out of the equation.
Unfortunately it does take a little bit of technical know-how to get this up and running.
The two most popular pieces of software to do virtualization are VirtualBox and VMWare Workstation.
You can download them below and then use Google to find a guide on how to install the latest MacOS (Mojave) with either VirtualBox or VMWare Workstation.
After that, spin up your new virtual Mac and download Xcode. This is as close as you’ll get to running actual Xcode on Windows!
4. VirtualBox
VirtualBox is open source software which means that it’s free. That probably explains why it’s a lot more popular than VMWare Workstation when it comes to running MacOS on your Windows machine!
5. VMWare Workstation
Unfortunately you’ll have to pay for this piece of software and at the time of this writing, a license costs about half the price of a brand new Mac Mini which is perfectly suitable for iOS app development. I would recommend you try VirtualBox first or try to buy a used Mac Mini.
Build a “Hackintosh”
You can also build a “Hackintosh” which is a PC that has been customized to run MacOS.
This requires the most effort out of all the options presented so far but it can work for someone who wants a separate physical computer running MacOS.
6. Hackintosh.com
A great resource for all things Hackintosh. The first How-To section contains links to a number of great tutorials for building your own Hackintosh and installing High Sierra.
7. Hackintosh Subreddit
I love looking for Reddit communities on anything that I’m interested in because there are always interesting conversations happening. Reddit provides a way to have a dialogue with like minded individuals, to get help and to help others!
8. Hackintosh Articles on 9to5mac.com
I included this link because it contains up to date news and articles for Hackintosh builds.
Third Party Solutions
Lastly, there are many third party solutions that you can use to do iOS development on Windows.
You won’t be using Xcode in these solutions but you’ll be able to generate an app that can run on iOS devices.
Check out these great Xcode alternatives:
9. React Native
Use JavaScript to build native mobile apps.
10. Xamarin
Use C# to build a mobile app that you can deploy natively to Android, iOS and Windows.
Is an easy task while building software for Mac is not so easy compared to other platforms. For building apps on Mac requires a SDK called Xcode. Xcode is an integrated development environment (IDE) that consists of set of software development tools which are designed by Apple specifically for developing software on Mac OS X and iOS. The app development kit, Xcode is not available for any other operating systems except Mac OS X and iOS. There are many reasons and compatibility issues behind this unavailability. If you are quite firm to install Xcode on your Windows PC (7, 8.1 and 10) and check the working process of SDK framework/development kit on Windows OS, then here is a detailed way on how to install Xcode on Windows 7 and 8/8.1 and Windows 10 pC.
Xcode – App Development Kit
Xcode is an application development kit or simply SDK containing set of software development tools designed for Mac OS X. Xcode is an interface builder which can also be considered as a testing application and an asset management toolkit. Here is a method on how to install Xcode on Windows PC (7, 8 or 8.1 and 10) using Oracle VirtualBox. Hence, by installing this Xcode SDK on your Windows OS, you can create and develop basic apps on Windows PC.
Requirements to Install Xcode on Windows 7/8/10 OS
In this article, we are going to explain you in a detailed way on how to install Xcode on Windows 7, 8 or 8.1 and 10. Before initiating the installation process, you need to have the following system requirements:
- A working Mac OS X virtual machine on VMware or VirtualBox.
- Downloaded Xcode package from Apple site . You need to have Apple ID in order to download Xcode from Apple store.
- Dual Core Intel processor
- Minimum 2GB of RAM (Recommended: 4 GB+)
- Hardware Virtualization
If you are a professional app developer, you have to purchase Apple hardware with OS X and app developer ID. You need to use Xcode on your Apple hardware at the time of testing the app on a real Apple device. As we are using Virtual Box to install Xcode on Windows, make sure that you have a working Mac OS X virtual machine. If you don’t have a copy of an installed Virtual Box, then you can download it here as it is free and open source.
Steps to Install Xcode on Windows 10, 8/8.1 and 7 PC or Laptop
Follow the below steps so as to install Xcode on Windows 10, 8 or 8.1 and Windows 7 desktop or Laptop for iOS SDK.
Step 1: Initially, download and install VMware or VirtualBox on your Windows computer from the above link.
Step 2: Now, you need to download and install OSX Mavericks ISO as a virtual machine.
Step 3: You have to create the virtual machine on your oracle virtual box. For that, you need to open Virtual Box and click New.
Step 4: Now, you will get a new window asking for the name of the new operating system. Enter Name as OSX , Type of the OS as Mac OS X and also enter the Version as Mac OS X (32 bit) . Click Next.
Step 5: You need to select the size of RAM for the virtual machine. The sufficient size of memory for Android to run on your Windows computer requires 1024 MB (1 GB). Select the memory size and then click Next .
Step 6: Now, Select and create the type of virtual hard drive file.
Step 7: Select the type of Hardware file as VDI (VirtualBox Disk Image). It is always recommended to go for VDI in terms of ISO image. Click Next.
Step 8: Select the physical hard drive as Dynamically allocated. Now, you need to allocate the file loaction and size of Android from physical hard drive on your device. Then, Click on Create.
Step 9: Now, you have successfully created virtual machine on your virtual box. You need to mount the iso file which is downloaded before. For that, Go to Settings >> Storage >> Load iso File >> Click Ok >> Start.
Step 10: Later, you just follow the on-screen steps of OSX boot as Wizard and then OSX will be installed in Oracle Virtual.
Step 11: Now, go to safari browser in your Virtualbox and open official Apple App store. Sign in using your Apple ID into the App store. You need to enter the Apple ID and password as shown in the image below:
Step 12: After signing, type xcode in the search box in order to get the complete package. It shows you various related apps. Locate Xcode from different apps and click on Free and Download. Then, click OK to download the kit.
Step 13: After completing the installation process, open it from the applications. Now, you need to provide your root credential in order to get access privilege to install Xcode components and also for modifying your system settings. Enter your name and password and press OK .
Step 14: That’s it,. We have now successfully installed the latest Xcode version on your Windows 10, 8/8.1 and 7 PC using desktop virtualization software VMware workstation.
This way you can install Xcode, app development software on your Windows PC or Laptop. Now, you can create new projects and better apps using this interface. As you are running this software on Windows, the performance and speed of Xcode won’t be extremely high.
However, it can be used for educational purpose, but not for professional app developers. Now it’s time to use Xcode on our PC. So in this way you can easily download and install Xcode on your any windows Personal computer or laptop and you can create better apps as per your need. Hope this tutorial helps you in the best way to install Xcode on Windows 10, 8/8.1 and 7 OS running PC or Laptop.
- QWERTY
- Dougie Connor
- Marcel
- Marcel
- 64bit
- Marcel
- Marcel
- Marcel
- stuart
- Michael Evans
- ranjana
- adventurer
- Mamuka
- Cyborg»sOtherPal
- Sajjad
- ger
Источник