iPhone 3.0 + SDK 3.0 真机调试 免IDP
2010-08-22 12:14:00 来源:WEB开发网export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
/Developer/iphoneentitlements30/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
codesign -f -s "iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist"
--entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi
NOTE: You will have to repeat step5 for every project! (That is, the add build phase part, not the terminal part.) It’s a bummer, but I’m not sure there’s any way around it. I’ll try to figure out if you can persist custom build phases across projects.
over, enjoy it !
--------------------------------------------------------------------------------------------------
--script file--------------------------------------------------------------------------------------
#!/bin/bash
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin/Contents/MacOS/
dd if=iPhoneOS Build System Support of=working bs=500 count=255
printf "x8fx2ax00x00" >> working
dd if=iPhoneOS Build System Support of=working bs=1 skip=127504 seek=127504
/bin/mv -n iPhoneOS Build System Support iPhoneOS Build System Support.original
/bin/mv working iPhoneOS Build System Support
chmod a+x iPhoneOS Build System Support
--gen_entitlements.txt file----------------------------------------------------------------------
#!/usr/bin/env python
import sys
import struct
- ››调试SQL server 2008功能设置
- ››iphone图片拉伸的几种方法
- ››iphone正则表达式的简单使用
- ››iPhone开发Unresolved Symbols CAKeyframeAnimati...
- ››IPhone开发-“此证书是由未知颁发机构签名”解决方...
- ››IPhone开发-整合私钥和证书,生成.p12文件
- ››iPhone应用开发-UIPickerView选取器详解
- ››iphone 获取屏幕的宽度和高度
- ››iPhone读取工程包中的二进制文件
- ››iPhone新手机 不挂YouTube APP
- ››iPhone 获取指定格式的时间和日期
- ››iPhone版PPS走进生活 观赏体验媲美PC版
更多精彩
赞助商链接