232 thoughts on “Testing iOS Apps without Developer Program Membership

  1. I try the hack on Xcode 4.6 but the project templates for iOS platform disappeared. Only the OSX project templates appear on File->New->Project.

    When I copy paste your commands from 5.2, it work… I miss the part that you have to convert the file into xml first before replacing the values.

    Another thing, you have to compile the ldid3.py python script before you can debug… some spaces add up when downloading from dropbox so you have to make sure.

    Everything is fine, great article! Thanks much.

    • Thanks for your feedback.

      I guess you mean the Xcode welcome screen!
      If I’m right, you can bring back from menu Window -> Welcome to Xcode. Then make sure to mark the option to “Show this window when Xcode starts”.

      I had to convert to xml because the file was binary.
      By the way, we can still edit such binary file directly by clicking it in Finder, which opens in Xcode in a tabular format ready for editing.

      When I copy the ldid3.py form dropbox preview, the space problem happens. But when I download as a file, I find it ok.

      So to avoid confusion, I uploaded a single zip file containing both of ldid and ldid3.py, and updated the article accordingly.

      Thanks a lot for your comments.

  2. hey for your step 5. Configure Xcode to allow using self-signed code-signging certificate, is that key in line by line?
    after i key in the first line i get :No such file or directory?How?
    Thank you

  3. Assalam-u-Alaikum…
    Moustafa brother … I am stuck in a situation… I just tried these steps to debug the app. But now I have got the deveoper account and now when I select my device and build it gives me error “Buil failed” cannot find the usr/loca/bin.idi3.py . I have deletd these files from directory. Please help me undo all these steps

    • Alaikom elsalam … undoing all changes in Xcode is just concentrated in 2 files:



      if you have followed the steps above as is, you should have backed up the original files as:


      so you simply need to stop Xcode, and replace the original files with commands like below, then start Xcode again.

      $ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
      $ cp -p Info.plist.orig Info.plist

      $ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications
      $ cp -p iPhoneCodeSign.xcspec.orig iPhoneCodeSign.xcspec

      hope that helps.

  4. BTW, there was no /usr/local/ folder on my OSX Lion but I just created “local” and then “bin” dirs, to keep things in conjunction with your article.

  5. Will this also work for creating .app files and .ipa files to sharemy app with my friends?
    How to accomplish that exactly?

    • I’ve not tested it, but it should work as long as you try to install on an iPhone that has applied steps 1 & 2 of this article (that’s jail breaking, and allowing self-signed apps)

  6. Hi!! I followed your guide (without debugging part) and worked like a charm, but now I would like to publish my apps on app store so do I need to revert the changes made in step 5?

    Thank you!

      • So reverting the steps:
        –>> step 2: no problem because I used AppSync and I will restore my iPhone

        –>> step 4: should I delete the “iPhone developer” certificate I created?

        –>> step 5: I have to restore the original Info.plist by terminal doing:

        $ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
        $ cp -p Info.plist.orig Info.plist

        Thank you very much for your work!

  7. Great article! It worked great before, but now I upgraded to xCode 4.6.3 and after following your steps again, I gets the following build error:
    codesign: invalid option — g
    Have you seen that?

    • Thanks for your feedback.

      I guess there may be something wrong while configuring Xcode for debugging. so I suggest reviewing step #6 again just in case. i mainly suspect step #6.5

      • Thanks for you very swift reply. I did try applying #6.5 again, and now it works! Thanks again for this very clear and great post!

  8. I having trouble with step 6: “Configure Xcode to allow debugging on the iOS Device”. I followed everything exactly as you said. But when i go build my app in Xcode, it shows the following error:
    error: can’t exec ‘usr/local/bin/ldid3.py’ (No such file or directory)
    Please help.

      • Thanks for reply. Not really, that wasn’t the issue (I’m using OS X Lion, XCode 4.6.2). I typed exactly as yours which has “/”. Never mind. Before step 6, everything was working, so is it possible to undo everything from step 6 and do upto step 5 so that i can atleast run my app if not debug. Thanks

        • You may undo step 6 by simply restoring iPhoneCodeSign.xcspec.orig

          $ cp -p iPhoneCodeSign.xcspec.orig

          But before restoring, I’m interested to see output of the following command:

          $ grep -i ldid iPhoneCodeSign.xcspec.orig

          Mag be something wrong happened with sed substitution.

          • i have the same problem here and i wrote this code “$ grep -i ldid iPhoneCodeSign.xcspec.orig” and get me command not found :(

    • Thanks for your reply

      It seems there is a missing “/” in the path

      It should be:

      I suggest trying to manually edit the file to add the “/”

  9. Selamın Aleyküm Mustafa,

    Do you have facebook, gtalk, viber, whatsapp to talk ? I have several questions and it will be hard to communicate this way.

  10. Hi
    I did the whole procedure you described.
    But for some reason I have an error.
    “Check dependencies

    Code Sign error: The identity ‘iPhone Developer’ doesn’t match any valid, non-expired certificate / private key pair in your keychains ”
    Maybe I’m doing something wrong?

    My version is
    Mac Os 10.8.4
    IOS 6.1.2 (iphone 4s Jailbroken)
    Xcode 4.6.3 (4H1503)
    Can help to understand?

    • it seems there is a problem with the code signing certificate.

      so I suggest you go again through step 4 “Create self-signed code-signing certificate in Keychain Access”.

      please make sure you follow the certificate creation steps exactly as outlined.

  11. Hi, thanks for the clear tutorial.
    Finished all the steps, but got an error when trying to compile.

    Code signing error
    Check dependencies
    Code sign error: The identity ‘iPhone Developer’ doesn’t match any valid, non-expired certificate/private key pair in your keychains

    I have repeted steps 4 and 5, but still no luck.

      • You possibly did the same as I did and put in your own name instead of ‘iPhone Developer’. If you do it exactly as in the tutorial it should work.

        p.s. thanks for a great help – works fine with Xcode 4.6.3 and iOS 6.1.2

  12. Works perfectly with Xcode 4.6.3 on OS X 10.8.4 and iOS 6.1.2 on iPad

    Thanks for your blog. It helps when you are trying to develop an app but unsure if you should get the Developer paid account. That is probably the only fault see with the apple process at the moment. Reading the other posts quite a few have now become paid members. … in part due to your assistance.

    Thanks again

  13. Pingback: Stuck in sandbox environment and can't do in app purchases

    • In step (2) …

      have you installed AppSync?
created (/var/mobile/tdmtanf)?

      if installed AppSync, try uninstalling it, and create (/var/mobile/tdmtanf) [which should work fine on iOS 5]

  14. when I use this

    sudo sed -i .bkup ‘s//usr/bin/codesign//usr/local/bin/ldid3.py/g’ iPhoneCodeSign.xcspec

    it’s appear

    sed: 1: “s//usr/bin/codesign//us …”: bad flag in substitute command: ‘b’

    how to fix this :( Please Help

    • thanks for raising this issue.

      it seems the command was corrupted the last time I migrated my blog.

      here is the exact correct command:

      sudo sed -i .bkup ‘s/\/usr\/bin\/codesign/\/usr\/local\/bin\/ldid3.py/g’ iPhoneCodeSign.xcspec

      as you can see, the problem was missing “\” which escape the “/” in the path, because it has special meaning in “sed” command.

      I’ve fixed it in the article above as well.

  15. i have xcode-4.2

    and my mac osx=10.6.8

    and iphone is iphone 3G (4.2.1)

    can i test my app on my iphone device without the developer account.

    please help me and guide me for this thanks in advance.

    • I’ve not tested the steps in this article on these versions. But I would say go ahead and try out the steps and let me know if you face any troubles. I will try to support as much as I can.

  16. Thank you very much! I tried to make this work all day, and your method was the only one complete and clear enough! I can at last begin to learn iPhone programming :)

    The only detail that has changed with xcode 5 / ios7, and doesn’t work if you follow your tutorial exactly, is in part “6. Configure Xcode to allow debugging on the iOS Device”, 5th paragraph. If you type the line “sudo sed -i .bkup ‘s/\/usr\/bin\/codesign/\/usr\/local\/bin\/ldid3.py/g’ iPhoneCodeSign.xcspec” in the terminal”, this won’t work. That’s because the file doesn’t contain “/usr/bin/codesign” anymore, but only “codesign”. So I had to manually edit the xcspec file, after it was converted in XML as explained in the “iPhone Dev Wiki – Xcode”, without using the terminal, and it worked perfectly!

    Thanks again, you saved my day ;)

    • thank you for this blog, very useful and easy to follow. and the comment by Miss Meuh. I have xcode 5 /ios 7 , and follow all instructions above, including the codesign change as mentioned by Miss Meuh. However, when i click run, i got error invalid -g option for codesign. if I remove -gta option, app is installed to ipad, but then i got the can not get task error, therefore not able to debug on the device. hopefully someone figure this out and share.

      • Thanks for your nice words.

        Please make sure that iPhoneCodeSign.xcspec is updated such that the signing command is “/usr/local/bin/ldid3.py”.

        it means that the following …


        is updated as …


        then please use the “-gta” option again in your build settings.

    • Hi Miss Meuh,

      Can you post the content of your iPhoneCodeSign.xcspec file? I still getting the invalid –g error although manually edit the file to add /usr/local/bin/ldid3.py.


  17. Thank you sir,

    But After this process How can I build? Archive File without Ituneconnect? How can load my apps single file at my web?

    Once again Thank for free service.

    Soaz Sahib

    • Thanks for your feedback.

      building, archiving and anything else in Xcode can be done the same way regardless of the steps above. The steps above are mainly about testing on real device without having to have provisioning profile form Apple. This is for exploring iOS development. But if you want to publish apps on App Store, then you have to get the paid developer account.

      hope that helps.

  18. Pingback: Testing iOS Apps without Developer Program Membership | kutor

  19. Hi!
    I can’t get it work on ios7 with Xcode5 what do you do at step 2. Prepare iOS Device to allow installing Apps with self-signed certificates? What version of AppSync are you installing on ios7 jailbroken ?

    I got an error when I’m building my app :
    The identity used to sign the executable is no longer valid.
    Please verify that your device’s clock is properly set, and that your signing certificate is not expired.


    Thanks for any help.

  20. Tested on xcode 5.0.2 and iOS 7 jailbreaked Evasi0n, i download the appsync 7 from this repo “apt.178.com”. Thanks!!!
    Probado en xcode 5.0.2 y jailbreak evasi0n, el appsync lo descarge de la repo “apt.178.com”. Funciono Perfecto. Gracias.

  21. Hola,
    quiero decir que con JailCoder también se consigue. Yo lo he hecho en Xcode 5.0.2 y puedo probar apps en un iphone 4s con iOS 7, en iphone 5 no lo he probado.
    La primera vez no me funcionó, desinstalé xcode completamente y lo instalé de nuevo y entonces me funcionó.

  22. For the developer with iOS7 + XCode5 out there that still stuck with “invalid option –g” issue, this is how i finally solve it…

    1. close the XCode
    2. browse to “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications”
    3. make a backup copy of iPhoneCodeSign.xcspec file and name it as iPhoneCodeSign.xcspec.orig
    4. convert iPhoneCodeSign.xcspec into xml (run plutil -convert xml1 on the terminal)
    5. copy the iPhoneCodeSign.xcspec into desktop
    6. edit the iPhoneCodeSign.xcspec using text editor, locate these lines


    change to…


    7. delete the iPhoneCodeSign.xcspec and empty the trash
    8. move the modified iPhoneCodeSign.xcspec into the directory

    and you will have no same “invalid option –g” issue again!!!

    Note: DO NOT make a backup copy using this name “iPhoneCodeSign_ori.xcspec” since XCode will still able refer to it for an unknown reason

  23. Basic compiling and running works like a charm on 10.8.5 / Xcode 5.0.2 / iOS 7.0.4 (with alt. step 6 mentioned in comments)

    However, Instruments don’t seem to work. (doesn’t register any function calls, and crashes when stopping recording) Do you know if there’s a remedy for that?

  24. For some reason I can’t change the code sign identity to “iPhone Developer”. When I change it, it automatically goes back to “iOS Developer”. Any idea why?

  25. Pingback: Trying to run my ios app on ipad without membership (jailbroken 5.1.1) | QueryPost.com

  26. Works for me. If you are struggling on the -gta part its fairly easy.

    In the Finder from the Go menu item select Go to folder and enter: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications
    (This assumes you have installed Xcode in the default place)
    Now edit the iPhoneCodeSign.xcspec to do this I used TextWrangler, open it and then drop the PhoneCodeSign.xcspec file on the TextWrangle Icon

    Now change




    Save the file, restart Xcode and add in the -gta flag as above.


  27. made self signing cirt., but i am also registered with apple with their cirt.
    i have 3 provision profiles from them. 2 developer, 1 deployment
    using xcode 5.0.2,installed appsync ios7
    tested on iphone 4, 4s, 5s
    xcode installs app just fine,
    my problem is i cannot debug the device.
    codesigning = iPhone Developer as instructed. -gta flag implemented.
    error unable to attach, or debuger says ” ActionMenu enabled ” then closes.
    i rerun the app from the device, selected debug,attach to process. the i get lost connection. any help appric.

  28. I know it’s been a while since this has been published, but I’ve tried doing this, and everything works perfectly, until it comes to the -gta code signing flag. When I put that in Xcode 5.0.2 (build target iPhone 5s iOS 7.0.4) in both Debug and Release fields, the build fails with the error “codesign: invalid option — g”. Any idea what’s up?

    • The tutorial remains the same for IOS7 Xcode 5.

      Except for the part where you enable debugging.

      After you go through part 5 (of the debugging section), open your iPhoneCodeSign.xcspec file and change the following:






      please notice that the line /usr/bin/ldid3.py is where my ldid3.py script is located, you might have to point it to where yours resides.

  29. Thank you, sir.

    I have it working right now on a Windows 8 host Mavericks VM, Xcode 5, IOS 7.

    Teste on Iphone 5S and IPAD 3rd generation.
    Debug is working flawlessly.

    Just a tip: after you install app sync respiring and reboot you device.

    • Hi Luiz, which ldid are you using? It seems that I cannot get it to sign iphone 5s with armv7s architecture.


          • Thank you for the info, I didn’t know that.

            And just for sharing, if you update your x-code app, you have to do the xcode sign part again, obviously.

  30. Confirmed to work on Mavericks, XCode 5.0.4 and iOS 7.0.6. I second Luiz’ advice on rebooting the device after installing AppSync.

  31. I cannot change code Signing identity to iPhone Developer cert. It keeps reverting to iOS developer. I have maverick, Xcode 5.2 and iOS 5.1.If I say no sign App appears on spring but will not run. Help????

    • update – I have no provisioning profile . Can i not bypass and select none and use iPhone developer cert. Wisihing I had not updated now but I would like to test with iOS 7. Any Help Appreciated

        • Hi, Guide is great by the way. I have my Simple Sample Single View. I have adjusted my Xcode as per steps above. When I try to select Code Sign detail in build Settings it seems to want to automatically select IOS Developer as the code signer in debug and release. I did not create that Code sign and am unable to select one i create in keychain as it keeps reverting in realtime to ios developer as if I have selected to provision via my Profile automatically but as I do not have one it fails. Will post more detail later and screens if I can. Thanks

          • Thanks for your feedback.

            iOS Developer is the automatic selection that should select the appropriate certificate form keychain. So what happens if you try to run your app with this code signing option?
            If this doesn’t work, what about trying to select “other..” form the code signing menu and select/type the correct certificate name “iPhone Developer”?

  32. If I choose the other and manually type iPhone Developer( i have a keychain cert with that name) It immediately replaces the entry in Debug/Release/Any iOS SDK with iOS Developer. Its like it knows i am using using iPhone Developer and forcing it to IOS Developer. If I create a different names cert like “defiant” and choose that instead it holds but gives me a no provisioning profiles with a valid signing identity were found. Simulator runs fine just not to real phone. Thanks Amcell

  33. Update- it must have had something to do with selecting provisioning profile to iPhone Developer as well. Once i did that i restarted Xcode and the iPhone developer code sign held. All good in the hood!!! apps working on iPhone 4s iOS 7, mac mav 10.9, Xcode 502. Thanks Amcell

  34. Thanks for a great post. I got stuck in debugging. Getting below exception:
    CodeSign /Users/jaggsMLion/Library/Developer/Xcode/DerivedData/XBlast-akqslmqeebfoqsbfdrznrwcoeuit/Build/Products/Debug-iphoneos/XBlast.app
    cd /Users/jaggsMLion/Public/XCodeProjects/XBlast
    setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    setenv PATH “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
    Using code signing identity “iPhone Developer”
    codesign –force –sign 0BABE2E4EE2EFBAF0638E84012DF4DF5BA3EA3AD –resource-rules=/Users/jaggsMLion/Library/Developer/Xcode/DerivedData/XBlast-akqslmqeebfoqsbfdrznrwcoeuit/Build/Products/Debug-iphoneos/XBlast.app/ResourceRules.plist -gta –entitlements /Users/jaggsMLion/Library/Developer/Xcode/DerivedData/XBlast-akqslmqeebfoqsbfdrznrwcoeuit/Build/Intermediates/XBlast.build/Debug-iphoneos/XBlast.build/XBlast.xcent /Users/jaggsMLion/Library/Developer/Xcode/DerivedData/XBlast-akqslmqeebfoqsbfdrznrwcoeuit/Build/Products/Debug-iphoneos/XBlast.app

    codesign: invalid option — g
    Usage: codesign -s identity [-fv*] [-o flags] [-r reqs] [-i ident] path … # sign
    codesign -v [-v*] [-R testreq] path|pid … # verify
    codesign -d [options] path … # display contents
    codesign -h pid … # display hosting paths

    I have given -gta in “Other Code Signing Flags” Don’t know what causing this issue.
    I know its really a long day back post but please answer I am not able to debug my app.

          • CodeSign /Users/HAI/Library/Developer/Xcode/DerivedData/TestDebugOnIphone-cbljqziyfpvnbmcdcqkszbkzeafy/Build/Products/Debug-iphoneos/TestDebugOnIphone.app
            cd /Users/HAI/Desktop/TestDebugOnIphone
            export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
            export PATH=”/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
            Using code signing identity “iPhone Developer”
            /usr/bin/codesign –force –sign 14D17FE2E1C1D44E1B7C9C3D8E20CC8D60DA9FC5 –resource-rules=/Users/HAI/Library/Developer/Xcode/DerivedData/TestDebugOnIphone-cbljqziyfpvnbmcdcqkszbkzeafy/Build/Products/Debug-iphoneos/TestDebugOnIphone.app/ResourceRules.plist -gta –entitlements /Users/HAI/Library/Developer/Xcode/DerivedData/TestDebugOnIphone-cbljqziyfpvnbmcdcqkszbkzeafy/Build/Intermediates/TestDebugOnIphone.build/Debug-iphoneos/TestDebugOnIphone.build/TestDebugOnIphone.xcent /Users/HAI/Library/Developer/Xcode/DerivedData/TestDebugOnIphone-cbljqziyfpvnbmcdcqkszbkzeafy/Build/Products/Debug-iphoneos/TestDebugOnIphone.app

            codesign: invalid option — g
            Usage: codesign -s identity [-fv*] [-o flags] [-r reqs] [-i ident] path … # sign
            codesign -v [-v*] [-R testreq] path|[+]pid … # verify
            codesign -d [options] path … # display contents
            codesign -h pid … # display hosting paths

          • (null): Usage: codesign -s identity [-fv*] [-o flags] [-r reqs] [-i ident] path … # sign

          • yep, i have modified the specs file manually. Its working fine. Thanks Mr.Mhassan!

  35. Hi Jaggs,

    you call the original codesign and not the ldid3.py script.
    you failed to modify iPhoneCodeSign.xcspec (Step 6.5)

    i use vi to change codesign into /usr/local/bin/ldid3.py in line 7 of that file.

    works great with OS X 10.9.2, xcode 5.0.2 and ipad air with iOS 7.0.3.

    The only problem is that AppSync had killed Safari and Mail, must look for another AppSync Version.

  36. Pingback: Testing iOS Apps without Developer Program Memb...

  37. I have no problem running and debugging on Xcode 502 with iOS6.1
    But….for iOS 7 Xcode failed during code signing stage with the following error:

    CodeSign /Users/user1/Library/Developer/Xcode/DerivedData/TestWoo-dwpzthqcbpnymdejsplmfetnslyx/Build/Products/Debug-iphoneos/TestWoo.app
    cd /Users/user1/Desktop/TestWoo
    setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    setenv PATH “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
    Using code signing identity “Jojo Developer”
    /Users/user1/Downloads/ldid3.py –force –sign 7973318D9CBC2F6D34C96A904E548049A09830AA –resource-rules=/Users/user1/Library/Developer/Xcode/DerivedData/TestWoo-dwpzthqcbpnymdejsplmfetnslyx/Build/Products/Debug-iphoneos/TestWoo.app/ResourceRules.plist -gta –entitlements /Users/user1/Library/Developer/Xcode/DerivedData/TestWoo-dwpzthqcbpnymdejsplmfetnslyx/Build/Intermediates/TestWoo.build/Debug-iphoneos/TestWoo.build/TestWoo.xcent /Users/user1/Library/Developer/Xcode/DerivedData/TestWoo-dwpzthqcbpnymdejsplmfetnslyx/Build/Products/Debug-iphoneos/TestWoo.app

    util/ldid.cpp(249): _assert(0:Swap(mach_header_->magic) == MH_MAGIC)
    Traceback (most recent call last):
    File “/Users/user1/Downloads/ldid3.py”, line 26, in
    check_call([ldid_path, '-S' + f.name, obj_path])
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py”, line 542, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘['/Users/user1/Downloads/ldid', '-S/var/folders/4w/45v_x8bd7hxgvdq7pjttgqyr0000gn/T/tmp0mAzxf', '/Users/user1/Library/Developer/Xcode/DerivedData/TestWoo-dwpzthqcbpnymdejsplmfetnslyx/Build/Products/Debug-iphoneos/TestWoo.app/TestWoo']‘ returned non-zero exit status -5
    Command /Users/user1/Downloads/ldid3.py failed with exit code 1

    Any idea?

  38. will it work on Xcode 5.1.1,iPad 4 with iOS 6 and niresh mavericks.

    i haven’t jailbroken my iPad yet, just want to know your opinion before i try your guide

    • I’ve not tested this combination myself. But according to our readers comments, it works fine on Xcode 5 and iOS 6.

      Wish you fruitful journey with iOS development.

        • I’ve not tried it. I suggest looking into the reviews of people who went thought it.

          Btw, why starting development on iOS6? iOS7 is already well established with aggressive adoption rate. Also it’s full of features that makes developer life easier. If you are starting learning iOS development, I highly recommend going straight and learn iOS 7 SDK.

  39. Thank you for detailed explanation. I have Mac Mini machine and I am doing iPhone development in Xamarin studio. Could you please explain how can I deploy iPhone application on iPhone device without signing key?
    I am using Xamarin studio and not XCode.

    Please help.

    • Thanks for your feedback.
      Unfortunately I have no experience with Xamarin. But I think the idea holds the same. So I suggest going through this article and try to map things to the Xamarin world.

  40. Worked fine for me with old xcode which was updated automatically. After Xcode Reinstall it does not work anymore :/ with 5.1.1 I try it again with 5.0.2

  41. Pingback: Shall We Learn » Build or Compile Linphone from Source for iPhone and iPad

  42. I’m stuck at step 5 :-
    “6. Select the connected iOS Device form the list besides the Run button.”
    The only available option is “iOS Device”. Somehow it still can’t find my iPad.
    I’m using Xcode 5.1.1 and iPad 2 7.0.6 with AppSync for iOS 7.0+ installed.
    Please help.

  43. Pingback: Testing iOS Apps without Developer Program Membership | Moustafa Hassan - appgong

  44. Thanks for your post. I’m test it ok with iOS 7.0.6 but i can’t find “Other Code Signing Flags” in the project Build Settings in Xcode 5.1.1.
    How do i fix it to debug on my iphone. Thanks!

    • Thanks for your feedback. You can find it by opening project/target build settings tab. Then type “other code” in the search box on the top right.

  45. would this cause any troubles when i actually decide to be apple dev and want to sign the code legit way? is there any thing id have to reverse?

    • No troubles at all. You just need to cleanup the steps in reverse order. That is to start cleaning up from last step (Step 6) removing “-gta”code signing flag, and reverting to original iPhoneCodeSign.xcspec, then cleaning up step 5 by reverting to original Info.plist and so on.

  46. Thanks a million. Worked perfect on Xcode 5.1.1.
    As noted above, iPhoneCodeSign.xcspec must be edited manual, i.e:
    < codesign

    > /usr/local/bin/ldid3.py

    On another note, in Xcode “Deployment target” under the General tab must be set to “7.0″ before the phone shows up and it’s possible to run/debug.

    You saved me a lot of hassle and $99, very much appreciated!

  47. I have tested your method on the following platform. It works great (not touching the 2nd part of “debugging” yet, but pretty happy now). Thank you so much!

    + OS X Mavericks
    + iOS 7.1.1 (btw, using the newest jb from the Chinese pangu)
    + Xcode 5

    I did encounter a similar problem posted before that Xcode cannot recognize device (only showing “iOS Device” and “iPad 6.1 simulator”). Then I realized my Xcode was outdated that it could not deal with iOS 7 device. Upgrading Xcode solved the problem.

    Hope my experience will help others.

  48. Pingback: iOS Uygulama Geliştirme 1: Nereden Başlamalı, Ne ile Yazmalı? | Koddit

  49. I’m having trouble selecting the certificate I created in step 5. The certificate appears as an option in the dropdown menu for “Code Signing Entity” but when i try to select it, “iOS Developer” is automatically used instead.

  50. I have tested successful with the iphone 5s run ios 7.06 with xcode 5.1.1. But when i try with iphone 4 ios 7.1, it’s not working anymore. “No code signature found” popup showing 2 time. How do i fix it? Thanks!

    • it looks like the new phone is not yet prepared for self-signed certificates.
      please review the steps in “2. Prepare iOS Device to allow installing Apps with self-signed certificates”.

  51. THANKS FOR SHARING ! Also had trouble with the invalid option but fixing it manually in xml works just fine . <3

  52. Thanks for some great instructions and some good comments :)

    I finally got it working, almost fully.. well I got past the -gta problem.
    I am using IOS 7.1.2 (jb with pangu) and xcode 5.1.1
    on ipad air..

    It worked first go to put the app onto the ipad and run it there, and also run it on the simulator..

    But then trying to get the debugging working.. I did get stuck on the -gta problem. But then followed the comments here. About editted the xml file.. The trick for me was closing everything, copying it to desktop, deleting and emptying trash.. then copying the editted file back into the specification directory :)

    And after that the build suceeds on both simulator and real ipad.. :) without any -gta problem. :)

    BUT… there is one small problem remaining. although the build succeeded, xcode gives the message : Could not launch “J-app” process launch failed: failed to get the task for the process 12755

    The app can run no problem on the ipad, but the debugging is not running , in fact xcode says at the top “finished running J-app on J iPad Air”…

    What do I do now ? Any help much appreciated:)

    • Thanks for your feedback :)
      such error means that debugging is not setup correctly.
      the steps outlines in “6. Configure Xcode to allow debugging on the iOS Device” should work flawlesly.

      So please let me know what modifications you made in your setup.

  53. Hello? If I decide to publish my app and purchase developer membership. Can I publish my app to App Store with no problem after doing this?

    • Once you purchase developer account, you should rollback these configurations and install the original certificate and provisioning profiles provided by Apple. I’ve already went throughout this experience.

  54. Hello

    I tried with Xcode 6-Beta5 but i can’t get it to work.
    I made sure i that i set no code sign required to No.
    After i click build for iOS device i still get a window “No signing identity found”
    So i’m not able to build.
    It works with Xcode 5 on the same machine. So i guess i did all right.

    Did anybody have a solution?

  55. Wow! USB debugging with VMware works! iPod Touch iOS 7.0.4 Xcode 5.0.2 OSX 10.8.5 on VMware Workstation 9
    Had same problem with step 6.5 but i got it fixed! Thanks!

  56. Hello ,

    Great article! I followed the setps 1-5 as you said to want deploy a app into a connected device. But when I going to build my app in Xcode, it shows the following error:

    The identity used to sign the executable is no longer valid.
    Please verify that your device’s clock is properly set, and that your signing certificate is not expired.

    My combination of versions as below:
    1: Xcode 5.1.1(5B1008)
    2: Mac OS X (10.9.4)
    3: iOS 7.1.2 (on my iPhone 5)

    Below is my steps:
    1. JailBreak the iOS Device
    — I had JailBreak my iOS Device successful.
    2. Prepare iOS Device to allow installing Apps with self-signed certificates
    — Connect using ssh to the iOS device and create empty file named
    (/var/mobile/tdmtanf). And changed the root password.
    I can connected my device using ssh. :)
    3. Connect iOS Device to Xcode and configure to use it for development
    — 1, Start Xcode. (Done)
    — 2, Connect the iOS Device using USB Cable. (Done)
    — 3, Open the Organizer window in Xcode (Done)
    — 4, Select the connected iOS Device in the navigation list on the left
    — 5, Click “Use for Development”.
    (Not sure if I correct, because I can’t found “Use for Development”)
    I had take a screenshot to help clarification, you can get the screenshot on : https://c2.staticflickr.com/6/5566/15087689011_daedda4137_b.jpg
    — 6, skip
    — 7, continue
    4. Create self-signed code-signing certificate in Keychain Access
    — All steps done. :)
    5. Configure Xcode to allow using self-signed code-signging certificate
    — All steps done. :)
    — This is my screenshot: https://c2.staticflickr.com/4/3883/15090412502_be835fb942_b.jpg

    1. Once I selected iOS Simulater to run the project, it works fine.
    2. Once I selected iOS Device to want to deploy the app into the connected device, it show me a error as below:

    The identity used to sign the executable is no longer valid.
    Please verify that your device’s clock is properly set, and that your signing certificate is not expired.

    Could you please help to provice some information or more steps.

    Thanks and king regards,

  57. Pingback: Pythonesta | Pearltrees

  58. I got it to work in Xcode 6….
    It is a bit different this time around.

    Follow the guide in the OP, until you get to the point of testing your first build(that fails!).

    Alter Info.plist file in “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/”
    as described in the OP. Don’t forget about ldid and the ldyd3.py script

    Close Xcode if opened.

    Now go to this folder:” “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/”
    and change the file SDKSettings.plist
    alter the following keys to these values:

    after this, go to xcode, select your project and change your “code signing identity” from “iPhoneDeveloper” to “Ad Hoc Code Sign”, that will be a new option which will appear automatically for you.

    Don’t forget to add “-gta” to “Other Code Signing Flags” as described in the OP.

    That’s all. You should have debugging working again!

    OP = Original Post

    • Hi, I change “code signing identity” to “Ad Hoc Code Sign”. Now XCode build project, send to device, but apps crashed at start with message

      Nov 4 03:29:20 iPad kernel[0] : Sandbox: hook..execve() killing pid 964: application requires container but none set
      Nov 4 03:29:20 iPad com.apple.xpc.launchd[1] (UIKitApplication:edu.self.TestApp[0x6754][964]) : Service exited due to signal: Killed: 9

      But if I cut app from /private/var/mobile/Containers/Bundle/Application/~~~/~~~.app and move it to /Application – it start normally

      Can you help me, please?

  59. Pingback: From Learning iOS Development To Releasing Apps | Moustafa Hassan

  60. Hello

    Thx to Luiz Saluto i got it to work with Xcode 6.0 and iOS 7.
    I recently updated to Xcode 6.1 and ios8.
    I did all the steps but during build a get i sign error with ldid in the .py.
    Any clue whats wrong?

    igning Identity: “-”

    /usr/local/bin/ldid3.py –force –sign – -gta /Users/andy/Library/Developer/Xcode/DerivedData/iComix-fwokrfyvupwnazbdnlixpjxadvcv/Build/Products/Debug-iphoneos/iComix.app

    util/ldid.cpp(249): _assert(0:Swap(mach_header_->magic) == MH_MAGIC)
    Traceback (most recent call last):
    File “/usr/local/bin/ldid3.py”, line 26, in
    check_call([ldid_path, '-S' + f.name, obj_path])
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py”, line 542, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘['/usr/local/bin/ldid', '-S/var/folders/8d/4wkpp4193y1229jmxvbx87dr0000gn/T/tmpjKtZHS', '/Users/andy/Library/Developer/Xcode/DerivedData/iComix-fwokrfyvupwnazbdnlixpjxadvcv/Build/Products/Debug-iphoneos/iComix.app/iComix']‘ returned non-zero exit status -5
    Command /usr/local/bin/ldid3.py failed with exit code 1

  61. Pingback: Desarrollar para iOS 8.x con JailBreak | Cero-Uno

  62. I repeated the process again using Xcode 6.1, it works on iOS 7, but not on iOS 8. The way apps get deployed on iOS 8 Changed a lot, so AppSync is no longer working.
    I advise you guys to keep checking Karen’s repository(http://cydia.angelxwind.net) on your jailbroken devices and look for the version of AppSync which will fix those problems (not yet released as I type this).

    For those of you having any problems, recheck everything step by step, please look for the latest version of ldid also.
    For the lazy, open a terminal and copy and paste line by line:

    git clone git://git.saurik.com/ldid.git
    cd ldid
    git submodule update –init
    cp ./ldid /usr/local/bin

    then, you will have a fresh version of ldid ready to be used with the ldyd3.py script

  63. I tried with iOS 8 and Xcode 6 but I always get no signing identity found. I tried iPhone developer or Ad-Hoc always same result. Btw in IOS 8 I had to edit iPhoneCodeSign.xcspec because script couldn’t change it. But again whatever I do I always get the same error message.

  64. I tried with xcode 6 and iphone4 ios7.1.2 and i got this message again and again “no signing identity found” .. nothing happens.

  65. Pingback: Fix Ios Provision Profile Error Windows XP, Vista, 7, 8 [Solved]

  66. I’m develop app in xcode 6.2 beta version and i’ve iphone 4 ios7.1.2 so can i run my app in real time device ??

    plz Give me a Answer…

  67. According to WWDC2015 now we can debug and instal apps on device without paying 99$ with Xcode 7 beta. Tested :D and works even with iPhone 4 (without “s”)

  68. Pingback: Development Provisioning Profile [closed] - DexPage

  69. Pingback: Apple:Test iPhone Apps in Xcode 5 on a jailbroken iPhone 5S 7.0.6? – Apple Questions

  70. Pingback: Apple:Simple Way to Package an Executable as a .app [closed] – Apple Questions

  71. Pingback: iOS Uygulama Geliştirme 1: Nereden Başlamalı, Ne ile Yazmalı? |

  72. It Works perfectly! tested in OS X 10.8.3 Mountain Lion Xcode 4.6.3, iPad 1 firmeware 5.1.1. I’ve followed each step and Works great, thanks a lot!

Leave a Reply to Learner Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *