How to create ipa in xcode 6 without Apple Developer account?
Solution 1
Finally found a way for creating .ipa
build with xcodebuild command.
- Right click on
Archive
on Organizer. - Click
Show in Finder
. You can see
.xcarchive
file in Finder.Open
Terminal
andcd
to.xcarchive
path.- Using following command to generate
.ipa
file.
This will save .ipa
on Desktop.
xcodebuild -exportArchive -exportFormat ipa -archivePath <FILE_NAME>.xcarchive -exportPath ~/Desktop/<FILE_NAME>.ipa
Still looking for better solution, don't know why Apple removed this feature from Xcode 6 :(
Solution 2
There are 3 WAYS to create .ipa WITHOUT Command & Apple Developer Account.
1. Fast & Best
(Works on all Xcode, All Mac OS, Bundled package can be used for OTA links like Diawi)
- Just build
(Command+B)
your app from XCode by setting proper code signing identities - From
XCode's
file search at left bottom, search for.app
(This will be under product directory) - Right Click on this
.app
file and select Show in Finder - Now, create directory and name it as Payload, copy
.app
into Payload directory. - Archive/Compress(.zip) this Payload directory, rename file extension from .zip to .ipa
2. Extract .ipa from organizer
(Works on all Xcode, All Mac OS)
- Create Archive
- Go to Organizer
- Get location of Archive by Right Click and selecting Show in Finder
- Now right click on this .xcarchive file and select Show Package Contents
Go to path
Products > Applications > YourAppFile
Open iTunes's on Mac and drag-drop this YourAppFile from above path in Apps tab. (NOTE: Delete the previous app with the same identifier if any)
Now right click on your app under Apps tab of iTunes and select Show in Finder, this is your .ipa file !!!
3. For devs having Xcode 5.x
(NOTE: Xcode 5.x doesn’t work on El Capitan, By this way you can archive using any Xcode but you will need Xcode 5.x to create .ipa)
- Create Archive using any Xcode version.
- Close Xcode.
- Go to Organizer window of Xcode 5.x and from Archive tab select your archive.
- On top right section select
Export
, click radio button with titleSave for Ad Hoc Deployment
- Click
Next
and Select desired code signing identities to save .ipa
Solution 3
You can also create an IPA file using Xcode 6 & latest follow below steps:
- Create Build File of your Project
Command+B
- Go to Products folder & it will show app file right click "Show In Finder".
- Create an empty folder & call it 'Payload' then copy your app file in that folder.
- Archive Payload Folder & rename the zip file to
YourApp.ipa
Solution 4
There is even better way without doing all the command line stuff.
Select "Save For Ad Hoc Deployment" & Click Next. Then open the "select a development team" drop down. It will have the option "Use Local singing assets" at the bottom. Select this option & Click Choose.
Here you go. The build will be created by Xcode without Apple ID Account.
Solution 5
Another solution is to use Xcode 5.1.
Related videos on Youtube
![Khawar](https://i.stack.imgur.com/4DNiF.jpg?s=256&g=1)
Khawar
Updated on July 09, 2022Comments
-
Khawar almost 2 years
Need to generate
.ipa
file for Ad-Hoc distribution. Client has provided only certificates, private keys and provisioning profiles which were enough to create.ipa
till Xcode 5. But in Xcode 6.1 when I export asSave For Ad Hoc Deployment
it gives messageTo save for Ad Hoc Deployment, you need to add an Apple ID account that is enrolled in the iOS Developer Program for the development team 'xxxxxxxxxx'
Is there any way of creating
.ipa
without developer account credentials? -
Bharat over 9 yearsI would like to copy .xcarchive after Step 3 and paste it on desktop and in step 4 Open Terminal and cd to desktop instead to a long file path :P
-
Farooq Arshed over 9 yearsWill this also sign the build with proper provisioning and certificate?
-
Pankaj Rathor about 9 yearsI was trying to do the same thing using Xcode 6.1 but my IPA wont install on device. I figured out the solution that you need to specify your provisioning profile name using "-exportProvisioningProfile <PROVISIONING PROFILE NAME>" option in the above command.
-
iRoid Solutions over 8 yearsThe best, fast and easy solution!! Just to clarify this answer in more details : Create Payload empty folder -> Create one empty folder and name it as 'Payload'.
-
Khawar over 8 yearsCorrect. Unfortunately that option is not available in Xcode 6. It is only available in Xcode 7.
-
Smart Home over 8 years@PankajRathor what is the value of <PROVISIONING PROFILE NAME>. Is it my name that shows up under "Team" in the "General" --> Identity tab in Xcode app settings?
-
Smart Home over 8 years@DaxeshPatel how do I get to this "Products" folder?
-
Smart Home over 8 yearsFound out that Products folder is in the root of the folder that you get to using left click and "show package contents". BTW, This solution works..thanks.
-
iRoid Solutions over 8 years@SmartHome yes, you are right. Though It will be right click.
-
Jungle Jim over 8 yearsWhere is this "Save for Ad Hoc Development" option in xCode 7?
-
Asif Bilal over 8 years@JungleJim, please have a look in the question's graphics attached.
-
Jungle Jim over 8 years@AsifBilal Thanks but I can't figure out how to get to that screen in the first place without a developer account. When I go to [Product][Archive] with an iOs device hooked up, it just says "Build Failed". Same thing with a Generic iOs device. When I do the build for an emulator, the build succeeds but when I click on [Product] then [Archive] is faded and can't be selected. Or am I going to the wrong place to get to that "Organizer - Archives" screen in the first place?
-
Asif Bilal over 8 years@JungleJim, When you go to [Product][Archive] with an iOS device, try to find out the reason why it throws the "Build Failed" error. Once you find out the reason, resolve it. And do the preceding steps to build ipa file.
-
Matt Bearson about 8 yearsThis working for me in Xcode 7.2 to run an app on an iOS 9.3 device. Note: "Archive" in this context simply means (right click) "compress."
-
kemdo over 7 yearshello. this ipa file cant not install in iphone
-
Aditya Deshmane over 7 yearsbeen using these methods for years :-) check if you are using correct profiles
-
Bharat Modi about 7 yearsWill this work for iOS App Store Deployment? I have same issue but i need to create .ipa to upload it on app store.
-
Sabrina Tuli over 6 years2nd method works for xcode 8.3.2. 1st one doesn't work.
-
Charlton Provatas over 6 years@ABJ I'm getting 'exportPath' doesn't exist
-
Krunal Nagvadia over 5 yearswhat if there is no archive option is enable?
-
AnhSirk Dasarp over 3 yearsThis answer is probably obsolete now.
-
Mahdi Moqadasi over 3 yearsinvalid option '-exportFormat'
-
Top-Master over 3 yearsGetting: "
error: exportArchive: No profiles for 'com.MyApp' were found
" with Recovery-Suggestion: "Xcode couldn't find any iOS App Store provisioning profiles matching 'com.MyApp'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
" -
Top-Master over 3 yearsAdding
-allowProvisioningUpdates
option just changes the output to:Team "MyTeam" does not have permission to create "iOS App Store" provisioning profiles.
-
Top-Master over 3 yearsI am getting: "
error: exportArchive: No profiles for 'com.MyApp' were found
" with Recovery-Suggestion: "Xcode couldn't find any iOS App Store provisioning profiles matching 'com.MyApp'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
" and adding-allowProvisioningUpdates
option just changes message toTeam "MyTeam" does not have permission to create "iOS App Store" provisioning profiles.
-
Top-Master over 3 yearsIs a FREE
Apple ID
a propercode signing identity
? -
akub almost 3 yearsstill no answer regarding this solution?
-
mmm111mmm over 2 yearsHas anyone got this working recently? The comments are from 2016