Cant run Titanium App in iPhone Simulator
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.
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)
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.
Thanks in Advance,
Saamy
2 Answers
-
Check this http://developer.appcelerator.com/blog/2012/02/xcode-4-3-and-titanium.html
-
hello saamy,
just remove all the content lies under the iphone folder and then rebuild the application