Created
July 22, 2011 10:09
-
-
Save bountin/1099197 to your computer and use it in GitHub Desktop.
Titianium 1.6.2 - simple Bugfix for iPhone Simulator logging problem after Lion/XCode update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- builder.py 2011-07-22 12:03:44.000000000 +0200 | |
+++ builder.py.orig 2011-07-22 12:01:22.000000000 +0200 | |
@@ -1104,7 +1104,7 @@ | |
# on OSX Snow Leopard, we can use spotlight for faster searching of log files | |
results = run.run(['mdfind', | |
'-onlyin', | |
- os.path.expanduser('~/Library/Application Support/iPhone Simulator/4.3.2'), | |
+ os.path.expanduser('~/Library/Application Support/iPhone Simulator/%s'%iphone_version), | |
'-name', | |
'%s.log'%log_id],True) | |
if results == None: # probably not Snow Leopard | |
@@ -1116,7 +1116,7 @@ | |
fullpath = os.path.join(root, file) | |
results.append(fullpath) | |
return results | |
- for f in find_all_log_files("~/Library/Application Support/iPhone Simulator/4.3.2",'%s.log' % log_id): | |
+ for f in find_all_log_files("~/Library/Application Support/iPhone Simulator/%s"%iphone_version,'%s.log' % log_id): | |
print "[DEBUG] removing old log file: %s" % f | |
sys.stdout.flush() | |
os.remove(f) | |
@@ -1193,7 +1193,7 @@ | |
log = subprocess.Popen([ | |
logger, | |
str(log_id)+'.log', | |
- '4.3.2' | |
+ iphone_version | |
]) | |
# wait (blocking this script) until the simulator exits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment