Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created February 7, 2012 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ongaeshi/1760738 to your computer and use it in GitHub Desktop.
Save ongaeshi/1760738 to your computer and use it in GitHub Desktop.
TitaniumStudio build:1.0.8 で突然コンパイルが通らなくなったら。(iPhoneアプリ作成中に発生)
# /Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/compiler.py
# 162行目付近
def softlink_resources(source,target,use_ignoreDirs=True):
if not os.path.exists(target):
os.makedirs(target)
for file in os.listdir(source):
if (use_ignoreDirs and (file in ignoreDirs)) or (file in ignoreFiles):
continue
from_ = os.path.join(source, file)
to_ = os.path.join(target, file)
if os.path.isdir(from_):
print "[DEBUG] creating: %s" % (to_)
softlink_resources(from_,to_,False)
else:
print "[DEBUG] linking: %s to %s" % (from_,to_)
if os.path.exists(to_):
if os.path.islink(to_):
os.remove(to_)
os.symlink(from_, to_)
else:
+ os.remove(to_) # 動いたら再度コメントアウトすること
os.symlink(from_, to_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment