Run Iphone Simulator On Mac

I created sample Titanium app. I can able to build and run it in Android Emulator.But when i try to run the same in Iphone Simulator im getting following error.

Oct 09, 2020 You can't run iPhone apps on a Mac computer without using an emulator, though that will change with a new generation of Macs, set to come out by the end of 2020. The new Macs will run on Apple's. This guide explains how you can install the iOS simulator on your Mac and use it for developing your app. It is not possible to install the iOS Simulator on any operating system except macOS; if you want to develop an app for iOS from a Windows machine then you will need to use a physical iOS device. Air iPhone is an alternate iOS simulator Windows which replicates the iPhone’s Graphical User Interface. To run Air iPhone you’ll need the AIR framework for the application to the program. Although Air iPhone is not a fully functional application, you will find a difference in running apps in it and the real device. And you need a device capable of running iOS (iPhone or iPad). The reason being is that iOS applications are compiled to run on the ARM-based processor. OS X (and most desktop or notebook operating systems) run on the i386 or x64 architecture. To run a different arch-type, you'd need an emulator. And all Xcode has is a simulator.

Note : In Mac I have xCode 3.1.4,3.2.4 and 4.2 installed.

[INFO] One moment, building …
[INFO] Titanium SDK version: 1.8.1 (01/27/12 17:31 a24502a)
[INFO] iPhone Device family: universal
[INFO] iPhone SDK version: 5.0
[INFO] iPhone simulated device: iphone
[INFO] Performing full rebuild. This will take a little bit. Hold tight…
[INFO] Skipping JS compile, running from simulator
[ERROR] /Users/Admin/Documents/Titanium Studio Workspace/SampleTest/build/iphone/Classes/GDataXMLNode.h:39:9: fatal error: 'libxml/tree.h' file not found [2]
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File '/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/builder.py', line 1286, in main
execute_xcode('iphonesimulator%s' % link_version,['GCC_PREPROCESSOR_DEFINITIONS=LOGID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s' % (log_id,sdk_version,debugstr,kroll_coverage)],False)
File '/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/builder.py', line 1192, in execute_xcode
output = run.run(args,False,False,o)
File '/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/run.py', line 39, in run
sys.exit(rc)

How To Run Ios Simulator On Mac

Emulator

Iphone Simulator For Windows

May I know why this issue?
If its because of multiple xcode installed , Please let me know how to set default Xcode to be used by Titanium sdk.

I dont want to install these xcode since we need all these xcode version for some other native development.

Iphone Simulator Online

Thanks in Advance,
Saamy