Wednesday, January 29, 2014

Build unsigned .ipa without Developer Account on Xcode 5

    Disable Code Signing

  1. Goto /Applications, then righ click XCode.app and click Show Package Contents

  2. Goto Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ and copy the file SDKSettings.plist to the desktop.

  3. Open the file copied SDKSettings.plist. Under <DefaultProperties> ==> <dict> ,
    find <CODE_SIGNING_REQUIRED> and change its value from YES to NO. Save the file.

  4. Copy this modified SDKSettings.plist file back to Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ replacing the orginal file [YOU MAY SAVE THE ORIGINAL FILE AS BACKUP]. Do the required AUTHENTICATION AS REQUIRED.

  5. Restart Xcode and open your runnable xcode project.

  6. In Project Navigator, select your project and open Build Settings section of your porject and Select All sub-heading.

  7. Under Code Signing find Code Signing Identity and for both Debug and Release modes, set Any iOS SDK to Don't Code Sign

  8. Make an IPA

  9. In Xcode, goto Product and click Archive.

  10. Step7 will build you project and creat an Archive. After the completion of the process, new window Organize - Archive will open. In the list of this window you can see your project. Right click project and click Show in Finder which will reveal *.xcarchive file.

  11. Right click the *.xcarchive file and click Show Package Contents and goto Products => Applications where you will see an app file with the name of your project <projectname>.app

  12. Open iTunes change view to Apps and drag the app file <projectname>.app into the iTunes.

  13. Right Click your app, click Show in Finder. There you will have your .IPA File.

Important Notes

  • In Step 8, if the Archive menu is disabled this is most likely because the a simulator option is currently selected as the run target in the Xcode toolbar. Changing this menu either to a connected device, or the generic iOS Device target option should enable the Archive option in Product menu.

  • You will also need to install AppSync in your iPhone via Cydia.

Video Demonstration Available @ https://www.youtube.com/watch?v=yAT8TcwjoIU








21 comments:

  1. Thank You,
    but why apple make this overhead to developer

    ReplyDelete
  2. " Note that if the Archive menu is disabled this is most likely because the a simulator option is currently selected as the run target in the Xcode toolbar. Changing this menu either to a connected device, or the generic iOS Device target option should enable the Archive option in Product menu. "

    ReplyDelete
    Replies
    1. More Info at
      http://www.techotopia.com/index.php/Preparing_and_Submitting_an_iOS_7_Application_to_the_App_Store

      Delete
  3. Will this still work for Xcode 5.1 (iOS 7.1) and 5.1.1 (iOS 7.1.1)?

    ReplyDelete
  4. I did this but when clicking on Archive, the build fails and the following error appears: CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'

    ReplyDelete
    Replies
    1. Did you follow the part 1 of the tutorial i.e. "To Disable Code Signing" properly? You seem to have not turned off the Code Signing

      video demonstration also available at http://www.youtube.com/watch?v=01eGo6YSPVc

      Delete
    2. I have the same problem. When I pres Archice it says "No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found."

      Please help

      Delete
  5. Dear Sabbir,
    Thanks for your nice tutorial, Actually i done whatever you say.Disabled Code Signing on SDKSettting.plist as well as project build setting.
    I use Xcode 5.1.1 with iOS 7.1 target and event after opening .xcodeproj, on top of Xcode there is red warning icon that clicking on it shows code signing error.
    Hence clicking on Archive menu results to fail.
    Do you want I send project and plist file to you?
    Please help me on this situation

    ReplyDelete
  6. did you properly replaced edited SDKSettting.plist in the original location?

    ReplyDelete
  7. Thanks a lot for amazing tutorial.
    But in my SDKSettings.plist under Default Settings there is no CODE_SIGNING...
    I tried to add it, but system tell that file is lock.I tried to unlock in this way: https://discussions.apple.com/message/17158710 but it still lock.
    I am working on Mac on Vware which installed on Windows 8. :-)
    You are like a Neo, i know that you know an answer for this difficult situation.
    Please help.

    ReplyDelete
  8. This way unlock file: https://www.macprovideo.com/forum/other/mac-os/6871
    Trying to move forward

    ReplyDelete
  9. When build process is running apears error and it stops:
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    ReplyDelete
  10. Hello,
    I did all the steps but I couldn't drag the app to iTunes, any clue why ??
    Thanks in advance.

    ReplyDelete
  11. Hi,
    I followed the instructions but when i get to the app itself it has a big circle with a cross inside and says it cant be installed :( please help

    ReplyDelete
  12. Hi,
    how i can install this .ipa file in iphone ?

    ReplyDelete
  13. Firstly, your iPhone must be jailbroken, then you should install the "APPSync" to your iPhone via Cydia

    ReplyDelete