Every app needs to be signed. Even for JB iPhone. But in this case you can sign in by your own certificate. Here is a guide how can you make your own certificate. Name it "iPhone developer".
Then, in Xcode, you need to make "New Run Script Buildphase". You can do it in Project -> New Buildphase -> New Run Script Buildphase. Then write there this piece of code:
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
platform=/Developer/Platforms/iPhoneOS.platform
allocate=${platform}/Developer/usr/bin/codesign_allocate
export CODESIGN_ALLOCATE=${allocate}
codesign -fs "iPhone developer" ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}
fi
Then finally you have to add one line into Info.plist. In that file make a new line and put in there as a Key: "SignerIdentity", as a Value: "Apple iPhone OS Application Signing".
That's it. Plug in your iPhone and get ready for testing!
5 komentářů:
Your shell code has a slight problem if there are any spaces in the file path. I added quotes, which fixed it. I also changed it from "iPhone developer" to "iPhone Developer", to match what Xcode puts in new projects by default.
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
platform=/Developer/Platforms/iPhoneOS.platform
allocate=${platform}/Developer/usr/bin/codesign_allocate
export CODESIGN_ALLOCATE=${allocate}
codesign -fs "iPhone Developer" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}"
fi
This solved "Command /bin/sh failed with exit code 1: /Users/Raptor007/Documents/Xcode/iPhone: cannot find code object on disk".
However, now I'm getting "CodeSign warning: provisioning is not applicable for product type 'Application' in SDK 'Device - iPhone OS 2.2'; ignoring...
" and then "Your mobile device has encountered an unexpected error (0xE800003A) ApplicationVerificationFailed" twice.
Okay, I solved all my problems! I just needed the MobileInstallation patch, which I installed via Cydia using these instructions:
http://hackint0sh.org/forum/340693-post14.htm
Thanks for your excellent guide, btw!
I did everything in your guide, but I get security policy error after build & go, I also installed a free app from app store, ran it,restarted the phone, but it says 'the application cannot be opened'
Hi,
Outsourcing companies have talent that can professionally perform your project of game development. They have experienced game developers who know each and every tricks and tweaks of the game development market.
Thanks.
hire iphone developer
great article sir thankyou
http://9apps.ind.in/
Okomentovat