Based on:
Steps:
-
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist
Change DefaultProperties/CODE_SIGN_CONTEXT_CLASS XCiPhoneOSCodeSignContext => XCCodeSignContext
-
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist
DefaultProperties/ENTITLEMENTS_REQUIRED: NO (try YES if not working) DefaultProperties/CODE_SIGNING_REQUIRED: NO DefaultProperties/AD_HOC_CODE_SIGNING_ALLOWED: YES
-
Restart XCode (if already running)
-
Create new project
-
Create new file in the root folder: Entitlements.plist Add new property: Can be debugged: YES (boolean)
-
Open project preferences -> Build Settings -> All -> Code Signing (pay attention to select in the target combo the entire project and not a single target)
-
Set for Code Signing Entitlements (both Release/Debug): Entitlements.plist
-
Set for Code Signing Identity (all 5 nodes): Ad Hoc Code Sign
-
Build
Based on:
- http://iphonedevwiki.net/index.php/Xcode
- http://www.sysrage.net/guides/ios-programming/building-and-running-ios-applications-without-a-paid-developer-license
The device should run sshd.
Download and install ldid:
# http://iphonedevwiki.net/index.php/Xcode
git clone git://git.saurik.com/ldid.git
cd ldid
git submodule update --init
./make.sh
cp ldid /usr/local/bin/
# Add the SHA1 hashes
ldid -S ~/Library/Developer/Xcode/DerivedData/Hello-dybwbcfbgisyaagzfrputzjpcfab/Build/Products/Debug-iphoneos/Hello.app/Hello
# Set the app as executable
chmod +x ~/Library/Developer/Xcode/DerivedData/Hello-dybwbcfbgisyaagzfrputzjpcfab/Build/Products/Debug-iphoneos/Hello.app/Hello
# copy app to the device (pwd: alpine)
scp -r ~/Library/Developer/Xcode/DerivedData/Hello-dybwbcfbgisyaagzfrputzjpcfab/Build/Products/Debug-iphoneos/Hello.app root@192.168.1.77/Applications/
# update the ui cache
ssh root@192.168.1.77 "su mobile -c uicache"