This post is a follow up to my past Setup Android Lollipop Emulator on OS X post which secured the nuts and bolts of setting up an Android emulator on your machine. Today, we should investigate setting up an iOS test system on OS X.
Download and Install Xcode
Right now, Apple doesn’t give a remain solitary test system application. What you’ll have to do is download Xcode (which is free on the Mac App store). Xcode is a genuinely substantial bundle and, contingent upon your web association speed, could take somewhere in the range of 10-30 minutes to download. Be that as it may, once the establishment is finished it’ll take under 5 minutes to have a full iOS encounter stacked onto your PC.
Running the iOS test system
Since the test system is associated with Xcode it takes a few stages to stack nature. Be that as it may, I’ll indicate both of you of my most loved approaches to rapidly begin the test system.
Brisk choice #1
Open Xcode (this is required)
Right tap the Xcode symbol in your dock
Select the “Open Developer Tool > iOS Simulator” choice
Snappy alternative #2 (favored)
Right-tap the Xcode Application in your Applications envelope
Pick “Show Package Contents”
Explore to/Contents/Developer/Applications/iOS Simulator.app
Drag the iOS Simulator.app into your dock
Testing in the iOS Simulator Using Web Inspector
Be that as it may you begin the test system, open up the Safari application and peruse to your site. You ought to have the capacity to collaborate with it simply like a genuine iPhone. While tapping, looking over, and virtual squeezing can be cool, we should complete some genuine work.
Open the Mac adaptation of Safari and select Preferences
Tap the Advance tab
Check the “Show Develop menu in menu bar” checkbox – This will empower the Web Inspector instruments
Tap the Develop menu and drift over “iOS Simulator.” A drop-down ought to show up with the site you’re as of now seeing.
Recreating Different Devices
As a result of the shifting shapes and sizes of every io gadget, it’s a smart thought to test your site in different mimicked conditions.
From the iOS test system, select the Hardware menu and pick Device. From here you can rapidly pick between the distinctive renditions of iPhones and iPads accessible. Keep in mind that Retina shows (much of the time) take up more land than your screen bolsters.
Reproducing iOS 7.1
Since client reception rates for new forms of iOS are very high, you won’t for the most part need to test your site on variants more seasoned than iOS 8. Be that as it may, on the off chance that you do, OS X Yosemite bolsters reproducing iOS 7.1 (variants more established than 7.1 should be introduced on a machine running Mavericks or prior).
To roll out the improvement
From the test system, select Hardware > Devices > Manage Devices
Tap the + catch to make another test system
Tap the iOS variant drop-down and pick “Download more test systems”
Under the Components segment you should see the choice to download the iOS 7.1 test system. Once finished iOS 7 gadgets will now show up under the Hardware > Devices menu.