A while back I used an app called JailCoder to enable me to run and debug my own apps on my jailbroken iPhone 5S without having to pay Apple for a full developer account. I’m still learning iOS development and I have nothing I want to submit to the app store, so I’m reluctant to pay the £100 that Apple wants to enable me to run my own code on my own device.
Given that XCode is free, and that £100 per year would gives me the ability to sell apps through the app store, I think it’s a bargain if you are actually planning to distribute apps, but for me just learning it seems a bit steep.
There don’t seem to be many tutorials out there telling you how to do this for iOS8.1 and XCode 6.1 (they are all a bit outdated), but this is what worked for me:
- On your Jailbroken device install AppSync Unified 5.2-1 (or later) from AngelXWind’s repo. Don’t use any other AppSync, and if you have others, be sure to remove them.
- Open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist and change AD_HOC_CODE_SIGNING_ALLOWED to YES. You may need to duplicate it to the desktop, change it, save it, then drag and drop back into the original folder because OS X let you edit the file in place.
- If XCode was running, restart XCode.
- Change your Project and Target settings to “Ad Hoc Code Sign” in Build Settings
- Tell XCode to run app on iPhone. At this point XCode will put app on your iDevice, but can’t debug because it can’t attach to the process. The app will start then close immediately. You can now manually start the app on the phone now though.
- To enable debugging: In your project select File>New File Property List and create a file called “Entitlements.plist”. Add “Can be debugged” or “get-task-allow” (both do the same thing) and set the value to YES.
- Now change your Project and Target Code Signing Entitlements (In Build Settings) to “Entitlements.plist” (you have to type it in).
Now XCode can run and debug the app. Good luck
Note that some poeple have issues because they have other appsyncs installed. Remove all other appsyncs and install AppSync Unified from http://cydia.angelxwind.net/ (you’ll have to add this repo to cydia)
Thanks to Karen and Linus for developing AppSync Unified.
Thanks working awesome on iOS 8.1 Phone 4S with Appsync Unified. Life Saver…
Kindly use these images for more details… thanks again
http://imgur.com/a/Cj6Kc
Thanks, this will be useful for others
Thanks a lot man!!! Works lika a charm.
I get the no code signing identity found error after step 4. Can you tell me exactly where to change my settings? Thanks!
See the second and third pic from Suleman’s comment
Brilliant easy to follow summary – some other methods wouldn’t work for me, but this is so simple! Thank you.
Hey man, thank you so much. I can’t say how much I am happy to have debug on my iPhone…Tnx Again.
Also I should say I use Appsync from HackYouriPhone Source and I have installed it and apple file conduit 2, and it simply works good.
OSX: 10.10.1
XCode: 6.1.1
iPhone 6: iOS 8.1 JB AppSync Unified 5.3-1
Error Message: No signing identity found
See the second and third pic from Suleman’s comment
Work
Thanks for the awesome article. Currently I am trying to compile a test application (just a blank page, no code behind) but I am still struggling to get the app onto my iPad.
I modified the plist accordingly and restarted XCode, but when I click on Build&Run I still get asked for a vald signing certificate. I have a self signed code signing certificate in my keychain, which I can of course not choose. I have AngelXWing’s Appsync installed.
Here is my SDKSettings.plist:
AlternateSDK
iphonesimulator8.1
CanonicalName
iphoneos8.1
CustomProperties
DefaultProperties
AD_HOC_CODE_SIGNING_ALLOWED
YES
CODE_SIGNING_REQUIRED
NO
CODE_SIGN_ENTITLEMENTS
DEAD_CODE_STRIPPING
YES
DEFAULT_COMPILER
com.apple.compilers.llvm.clang.1_0
ENTITLEMENTS_REQUIRED
NO
GCC_THUMB_SUPPORT
YES
IPHONEOS_DEPLOYMENT_TARGET
8.1
PLATFORM_NAME
iphoneos
SUPPORTED_DEVICE_FAMILIES
1,2
DisplayName
iOS 8.1
DocSetFeedName
Apple iPhone OS 8.1
DocSetFeedURL
http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone8_1.atom
IsBaseSDK
YES
MaximumDeploymentTarget
8.1.99
MinimalDisplayName
8.1
MinimumSupportedToolsVersion
3.2.3
Toolchains
com.apple.dt.toolchain.iOS8_1
Version
8.1
Is anything different for you?
See the second and third pic from Suleman’s comment
i have same situation also 2-3 pics have same settings as mine.
what else can i do
i ‘m trying to run it all on ipad air on ios 8.1.2 jailbroken
have last appsync
have xcode 6.1.1
have os x yosemite
Where is this “Change your Project and Target settings to “Ad Hoc Code Sign” in Build Settings “?
You have to enable ad-hoc code signing in the plist and restart xcode before it is listed as an option
HI. Thank you very much for a good summerized tutorial. But I have a problem. It gives me this error:
error: The file “Entitlements.plist” couldn’t be opened because there is no such file.
I have seen the pictures @ Suleman uploaded and I have done just like it but it still gives me this error! Could you help me?
You have to create Entitlements.plist (step 6)
Tnx man for sharing ! works fine .
Thank you.
You saved me from this suffering 🙂
Thank you, helped me!
Works fine on my:
xcode (6.0.1)
iphone 4s(ios 8.1)
ipod 5(ios 7.1.2)
I’m used AppSync 5.3-1
all works for me!!! very good! thanks a lot!
Thanks for your nice tutorial. one question…do I need to install jailcoder for this method to work???
No, jailcoder doesn’t appear to work any more
I just started iOS developing and that way deal with rather simple apps. My biggest issue was to begin testing without an developer account. Your guide finally enabled me to test my apps on my device. Thanks a lot! I can confirm that your guide works with iOS 8.1.2, Xcode 6.1.1.
You made my day!
Worked perfectly – thanks!
Thanks it is absolutely working 🙂 I have tested my app.
I still got the no code signing identify found alert. I have followed all steps and made sure mine was the same as shown in the images…
I follow step by step your tutorial (4x) and follow this : https://www.youtube.com/watch?v=EID0TTxnxjA
My iphone is jailbreak and Appsync Unified 5.3.1 is installed
iphone 5s 8.1.1
the certificate is asked when I compile on Xcode 6.1 with my iphone…
Code Signing Error
Tested on Xcode 6.1.1, Yosemite 10.10.1, iOS SDK 8.1 — works. Thanks!
Has anyone else had issues with this method and using the Keychain? I’m getting this error:
SecItemAdd and SecItemCopyMatching returns error code -34018 (errSecMissingEntitlement):
https://stackoverflow.com/questions/20344255/secitemadd-and-secitemcopymatching-returns-error-code-34018-errsecmissingentit
Thanks man,It really helped.was trying to get this from more than 6 months ago.
Hi,
thanks for your guide. I make it successfully.
Here’s my env:
OS: MAC 10.10
Xcode: 6.1.1
Device: iTouch4 6.1
Thanks again.
did all like in tutorial and checked pic from post and still has Error Message: No signing identity found
When execured, app is starting for moment and then closing immediately. Just blank screen. Pls guide.
When executed, app is starting for moment and then closing immediately. Just blank screen. Pls guide.
Sounds like the Entitlements.plist isn’t working (step 6). Does the app launch if you tap the icon on the device? If so, then it’s definitely the Entitlements.plist
If you guys are still having issues after following this guide make sure you are checking this box:
http://imgur.com/Z4mGnaj
OH MY GOD I LOVE YOU SO MUCH, PLEASE TAKE MY HUG \O/, REALLY
Thank you, works great! Yes, choosing the right AppSync version is very important. 😀
Sorry I don’t understand the second part can anyone explain to me
thank you
What part don’t you understand?
Was having some problems until I made sure I was changing the build settings n the right project (click just above Basic (in build settings), make sure your project (topmost normally) is selected).
Otherwise you get code signing failed error
Does it work with Xcode 6.2 and iOS 8.2?
It works with XCode 6.2.
Not sure about iOS 8.2, but it works on 8.1, so probably. Let us know here…
Success! Thanks so much man.
XCode Version 6.2 (6C131e)
iOS 6.1.3
iPhone 4
Plz tell me how to run this twik on iphone 4 ??
i didnt get run…it show me code signing error…
tnx
Can i run this twinks in ipad2 ??
it works with Xcode 6.2 and iOS 7.1.2 !!!
thanks so much
Working in
XCode 6.2
Iphone: 4s
IOS: 8.1.1
Thanks 🙂
Works with Xcode 6.2 iOS 8.1.
GREAT GREAT GREAT!
thanks a lot.
Great (y) It works. Those are having problems, Check this image.
http://imgur.com/DLC5BKZ
Works fine with Xcode 6.3.1 and iOS 8.1.2.
Using AppSync Unified 5.4.1-1 from the AppCake repo.
I did the same trick on xcode 6.4, but unfortunately this trick is not working anymore. I’m getting the ‘Application could not be verified’ error. Does somebody knows a workaround?
xcode 6.3.2 ios 8.3 AppSync Unified 5.5.1-1
getting error :
The application could not be verified.
hi!
´m getting this
“app installation failed
the application could not be verified”
any idea about what’s wrong?
i´m running a Yosemite 10.10.4 with Xcode 6.4
on an iPad Air 2 with iOS 8.4
thanks!
Followed all these steps exactly, also installed correct AppSync Unified, still getting error “app could not be verified”
For anyone who still has this issue, I was able to find the solution after hours of searching, which is to add the key “application-identifier” to the Entitlements.plist, with this string value: $(AppIdentifierPrefix)$(CFBundleIdentifier)
Apparently Xcode (6.4) and iOS (8.4) require an application-identifier tag in order to install the application.
from: https://github.com/angelXwind/AppSync/issues/7
Nice one Ali, thanks for sharing. Also Karen has posted this guide as an alternative on reddit
Very Very Thanks.
You are my hero , Man.
Working in
XCode 7.0.1
Iphone: 6
IOS: 9.0!
Thank you so much!
You no longer need to tweak the settings. If you have the latest iOS Xcode will allow you to install the app on your device.