WEB开发网
开发学院手机开发iPhone 开发 iPhone 3.0 + SDK 3.0 真机调试 免IDP 阅读

iPhone 3.0 + SDK 3.0 真机调试 免IDP

 2010-08-22 12:14:00 来源:WEB开发网   
核心提示:if len(sys.argv) != 3:print "Usage: %s appname dest_file.xcent" % sys.argv[0]sys.exit(-1)APPNAME = sys.argv[1]DEST = sys.argv[2]if not DEST.endswith(&

if len(sys.argv) != 3:

print "Usage: %s appname dest_file.xcent" % sys.argv[0]

sys.exit(-1)

APPNAME = sys.argv[1]

DEST = sys.argv[2]

if not DEST.endswith('.xml') and not DEST.endswith('.xcent'):

print "Dest must be .xml (for ldid) or .xcent (for codesign)"

sys.exit(-1)

entitlements = """

< ?xml version="1.0" encoding="UTF-8"?>

< !DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

< plist version="1.0">

< dict>

< key>application-identifier

< string>%s

< key>get-task-allow

< true/>

< /dict>

< /plist>

""" % APPNAME

f = open(DEST,'w')

if DEST.endswith('.xcent'):

f.write("xfaxdex71x71")

f.write(struct.pack('>L', len(entitlements) + 8))

f.write(entitlements)

f.close()

上一页  1 2 3 4 5 

Tags:iPhone SDK 调试

编辑录入:coldstar [复制链接] [打 印]
赞助商链接