[AC-2801] iOS projects failing to build
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-02-21T14:54:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | tc-more-info |
Reporter | Paul Mackay |
Assignee | Mauro Parra-Miranda |
Created | 2012-01-11T06:28:27.000+0000 |
Updated | 2016-03-08T07:47:43.000+0000 |
Description
Problem
After a number of emulator reloads, the Studio gets into a state where it will not rebuild and run the emulator again. Restarting Studio solves this but that is undesirable.
It starts to take longer to start up and then dies immediately printing:
{noformat}
[ERROR] Error: Traceback (most recent call last):
{noformat}
Also have seen this failure:
{noformat}
[ERROR] clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
[ERROR] clang: error: clang frontend command failed due to signal 1 (use -v to see invocation)
[ERROR] clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
[ERROR] clang: error: clang frontend command failed due to signal 1 (use -v to see invocation)
[ERROR] clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
[ERROR] clang: error: clang frontend command failed due to signal 1 (use -v to see invocation)
[ERROR] clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
[ERROR] clang: error: clang frontend command failed due to signal 1 (use -v to see invocation)
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
{noformat}
or
{noformat}
[INFO] Performing clean build
[ERROR] clang: error: assembler command failed with exit code 1 (use -v to see invocation)
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
{noformat}
or
{noformat}
[INFO] Performing clean build
[ERROR] 2012-01-11 13:08:55.168 xcodebuild[21605:4603] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x20090b320 "Couldn't run shell command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -v -E -dM -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -x c -c /dev/null 2>&1"
[ERROR] 2012-01-11 13:08:55.205 xcodebuild[21605:4603] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x200895cc0 "Couldn't run shell command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -v -E -dM -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -x objective-c++ -c /dev/null 2>&1"
[ERROR] 2012-01-11 13:08:55.671 xcodebuild[21605:4603] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x2009933e0 "Couldn't run shell command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -v -E -dM -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -x c++ -c /dev/null 2>&1"
[ERROR] 2012-01-11 13:08:56.202 xcodebuild[21605:4603] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x200d239c0 "Couldn't run shell command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -v -E -dM -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -x objective-c -c /dev/null 2>&1"
[ERROR] 2012-01-11 13:08:56.286 xcodebuild[21605:4603] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x200b8ff80 "Couldn't run shell command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -v -E -dM -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -x c -c /dev/null 2>&1"
[ERROR] 2012-01-11 13:08:56.346 xcodebuild[21605:4603] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x200839340 "Couldn't run shell command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -v -E -dM -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -x objective-c++ -c /dev/null 2>&1"
[ERROR] 2012-01-11 13:08:56.754 xcodebuild[21605:4603] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x200e1fde0 "Couldn't run shell command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -v -E -dM -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -x c++ -c /dev/null 2>&1"
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
{noformat}
Test case
Run the emulator repeatedly
Comments
JSON Source
Paul Please would you follow the advice in [Build error in console output](https://wiki.appcelerator.org/display/tis/Errors+Building+Titanium+Projects#ErrorsBuildingTitaniumProjects-Builderrorinconsoleoutput) and report your results? Many thanks
After making Preferences changes and restarting, I got: {noformat} [INFO] One moment, building ... [INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f) [INFO] iPhone Device family: iphone [INFO] iPhone SDK version: 5.0 [INFO] iPhone simulated device: iphone [ERROR] clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable [ERROR] clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) [ERROR] [ERROR] Error: Traceback (most recent call last): {noformat} and after a 3rd try: {noformat} [INFO] One moment, building ... [INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f) [INFO] iPhone Device family: iphone [INFO] iPhone SDK version: 5.0 [INFO] iPhone simulated device: iphone [ERROR] 2012-01-11 14:54:57.209 xcodebuild[37903:410b] error: Error Domain=NSPOSIXErrorDomain Code=35 UserInfo=0x200a39120 "Couldn't run shell command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -v -E -dM -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -x objective-c -c /dev/null 2>&1" [ERROR] 2012-01-11 14:54:57.308 xcodebuild[37903:410b] error: Error Domain=NSPOSIXErrorDomain Code=2 UserInfo=0x2004b6ca0 "Non-zero exit code 128 returned from shell command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -v -E -dM -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -x c -c /dev/null 2>&1" [ERROR] 2012-01-11 14:54:57.332 xcodebuild[37903:410b] error: Error Domain=NSPOSIXErrorDomain Code=2 UserInfo=0x200ae4d40 "Non-zero exit code 128 returned from shell command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -v -E -dM -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -x objective-c++ -c /dev/null 2>&1" [ERROR] 2012-01-11 14:54:57.696 xcodebuild[37903:410b] error: Error Domain=NSPOSIXErrorDomain Code=2 UserInfo=0x200abe500 "Non-zero exit code 255 returned from shell command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -v -E -dM -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -x c++ -c /dev/null 2>&1" [ERROR] [ERROR] Error: Traceback (most recent call last): {noformat}
Paul The link I provided explains how to launch your project from the command line. Have you tried this? Thanks
Hi, yes I think it is related to that issue 1018. In fact what I am now seeing is the currently unresolved issue following that where the ios-sim processes are not killed when repeatedly launching the simulator. But I understand enough now to continue working around it.
Closing since it's a dup.