Fake Code Signing for Xcode and sending App to Cydia
The following steps will describe how to create this certificate, deploy it into Xcode, and a few steps on how to submit your application to Cydia once you're done creating it.
If you are using a virtual machine to run OS X, a few extra steps are required, these are marked in red asterisks (*). If you are using an Apple computer, you do not need to perform these steps.
1. Download this file to your desktop.
2. Open Terminal. Type in the following code cd ~/Desktop. Then press Enter. Type in sudo sh lemon.sh.
3. Press Enter and then type in your password. A large bunch of code should appear.
4. Download these modified presets, unzip, and place them into /Developer/Library/Xcode/Project Templates/
5. Go back to Terminal and copy in the following codes line by line, press Return after each line.
mkdir /Developer/iphoneentitlements4016. Make sure that Xcode is not open, if it is close it. Restart Xcode.
cd /Developer/iphoneentitlements401
curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
mv gen_entitlements.txt gen_entitlements.py
chmod 777 gen_entitlements.py
mkdir /Developer/iphoneentitlements41
cd /Developer/iphoneentitlements41
curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
mv gen_entitlements.txt gen_entitlements.py
chmod 777 gen_entitlements.py
mkdir /Developer/iphoneentitlements40
cd /Developer/iphoneentitlements40
curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
mv gen_entitlements.txt gen_entitlements.py
chmod 777 gen_entitlements.py
7. To start creating projects, click on iPhone Patched, now select a template and start programming your app.
8. The following step must be performed for every new project you create. In Xcode, go to Project, then click on New Build Phase, then on New Run Script Build Phase. Paste the following in the first box.
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
/Developer/iphoneentitlements401/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
9. Plug in your device through the USB cord.
*10. On the blue VMWare bar at the top of the screen, click on Virtual Machine, then Removable Devices, then on your device name, then on Connect(Disconnect from host).
11. When you want to test your app on your device, click on the gray bar at the top left of the Xcode window and switch to Device. This will switch your testing device from the Simulator to your device.
12. Now click on Build and Run. This will add the app to your device.
13. Restart your device if the app doesn't appear on it's own.
If you get this error There is no SDK with the name or path "iphoneos4.0", see this solution.
If you get this error iPhone Developer no identity found see this solution.
Once you've fully completed developing your application, you can submit to a repository in Cydia.
14. In Xcode, drop down the Products folder.
15. Ctrl+Click the application's name and click on Get Info.
16. Navigate to the Full Path of the application, this is the file you will be submitting.
17. Go to http://modmyi.com/devportal and fill out all the details. They will email you once your package is in Cydia.














0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home