Advertisement

How to Develop iOS Apps on Windows PCs by Using a Free Software?

As you know that Microsoft has acquired Xamarin Officially and made xamarin “FREE” for the community edition of Visual Studio. This opens various doors of opportunities for individual developers and small teams.

Xamarin lets you write Android, iOS and Windows mobile Native apps using the shared codebase. It helps .net developers to leverage their C# skills to develop mobile apps. As the “community edition” is free, anyone who is familiar with the “Windows ecosystem”, can easily learn iOS/Android mobile application development.

This is very much helpful for those, who are working with Windows for years. It saves the time of learning a new OS-ecosystem (MAC/Linux) and helps utilize that time for learning mobile application development and it’s a lot easier to learn Mobile application development through Xamarin.

In this tutorial, I will guide you how to setup xamarin environment on Windows PC and develop and run a simple “Hello World” iOS app on Windows PC.

Prerequisites for installation steps:

?     Hardware requirements
a.   1.6 GHz or faster processor
b.   1 GB of RAM (1.5 GB if running on a virtual machine)
c.    4 GB of available hard disk space 5400 RPM hard disk drive
d.   DirectX 9-capable video card (1024x768 or higher resolution)

?     OS Requirements (Any one from Below listed OS)

a.    Windows 10
b.    Windows 8.1
c.     Windows 8
d.    Windows 7 SP1
e.    Windows Server 2012 R2
f.      Windows Server 2012
g.    Windows Server 2008 R2 SP1

Steps for installing Visual Studio 2015 with Xamarin

1.    Download Visual Studio Free Community Edition from https://www.visualstudio.com/downloads/
2.    From the setup, please check the C#/Xamarin checkbox as shown in the figure.

3.    Progress through the setup wizard and wait until the setup is completed.
4.    That’s it!!! Xamarin is installed on your machine and now you can easily start to develop iOS apps on your windows PC.

Steps for creating a simple “Hello World” application for iOS in Xamarin

1.    Once the Xamarin is installed, Go to File->New Project in visual studio. There, you can see the option to create iOS apps as shown in the screenshot.

2.    Select a folder where you want to create the application,Select Blank iphone app, and Click “Create”.

3.    This will open the “Get Started” screen as shown in the screenshot.

4.    Right click on the Project in Solution explorer, and click Add=>New Item. This will open the new item dialog box as shown in the screenshot.

5.    Select “StoryboardViewController” and name it “HelloWorld.cs”.
6.    Click “Add”
7.    So, A storyboard, and its controller file will be created.

8.    Now, we will add a Simple label containing the text “Hello World” to the storyboard.
9.    In order to modify the storyboard, we need to connect to a MAC PC in the local network.
10.  Make sure there is a MAC PC in your local network and the latest version of xcode is installed on that.
11.  Now, click on the “Xamarin Mac Agent” button on Top as shown in the figure. This will list all the MAC PCs which are connected to your computer in a local network.

12.  Select your MAC from the list and press “Connect”
13.  This will turn your “Xamarin MAC Agent” icon into green. As shown in the screenshot.

14.  Now, double click on HelloWorld.storyboard
15.  Drag and drop a ViewController to the storyboard.

16.  This will add a ViewController on the storyboard as shown in the figure. In the storyboard, Properties, select the Class Property under the Identity section and Type “HelloWorld” as shown in the screenshot.

17.  This will link our class to this newly added View.
18.  From the toolbox Drag and Drop a Label on the View as shown in screenshot.

19.  Once the label is added, type “Hello World” in properties of the label as shown in the screenshot.

20.  Now, from the top, select an appropriate simulator and click Debug. This will run your iOS app on the MAC’s simulator.








Added on July 6, 2017 Comment

Comments

#1

Mauro commented on July 7, 2017 at 9:12 a.m.

This is a quite informative portal and information given here is useful to develop such apps. Thanks.

#2

Balaji K commented on July 7, 2017 at 11:56 a.m.

ios app submit to app store from windows guidelines

https://github.com/Appuploader/applic...

Post a comment