Search This Blog

Friday, May 14, 2010

How to compile and upload iPhone app for iPhone device 3GS 3.1.2 in Xcode 3.2.2

XCode is getting tricky to prevent from compiling and debuging without paying $99. Definitely, it's not expensive, but it sounds expensive for whom program just for fun or students.

Alexwhittemore.com explains how to compile and run on your iphone with XCode without paying $99. In addition, to debug I would like to strongly suggest that you make keychain with a name 'iPhone developer'.

If you want to debug without paying $99, there is one thing to make you sick. You have to make extra build phase whenever you make project. Go to the menu Project > New Build Phase > New Run Script Build Phase. In the window, copy/paste this:

export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
/Developer/iphoneentitlements312/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
codesign -f -s "iPhone developer" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi

For more information:

No comments:

Post a Comment

Blog Archive