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

iPhone 3.0 + SDK 3.0 真机调试 免IDP

 2010-08-22 12:14:00 来源:WEB开发网   
核心提示:New Build Phase > New Run Script Build Phase”, and enter the following script:export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/b
New Build Phase > New Run Script Build Phase”, and enter the following script:

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

上一页  1 2 3 4 5  下一页

Tags:iPhone SDK 调试

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