I am new to iOS and I am developing my first app for the App store.
I now have to generate my .ipa file using archive options from organizer. I am selecting iOS devices at run tab and used the archive option but it is showing the following error:
"The identity 'iPhone Distribution' doesn't match any valid, non-expired certificate/private key pair in your key chains"
I am not attaching my device to Xcode. I want to create .ipa file for sending it to one of my friends for testing using his iPhone.
A quick fix: on your Xcode project, look for a folder called "Products", and find your .app file there. You will need to create a folder called "Payload", and put the .app file inside that folder. Once you do this, you can compress the folder, and change the name to yourapp.ipa file. This will be a valid .ipa file signed with the provisioning credentials you used to compile the file.
Keep in mind that the proper way to set up this is to setup a schema for archive, in which you sign the app with the "release" settings, and with a valid ad-hoc distribution profile. But for now, you can use the initial quick fix so you can send your friend the app.
Related
I need to send an ipa to the client to submit it to the App Store (he has given me his .p12 key and certificate, together with the provisioning profile).
When it was XCode 3.x (submission = upload through webbrowser), it is an easy process. But with XCode 4, how can I do this?
I cannot validate and submit the app myself because I don't have my client's username and password for itunesconnect.
He doesn't have the project, but just the ipa that I built, so he cannot archive/validate/submit it neither.
Is there any way he can import the ipa into the XCode organizer to validate and submit it?
You must build for device using the appropriate certificate/provisionning,
Then go to products, you find the .app file, choose "show in finder"
Zip the .app file and send it to your client.
Once you've done this, your client must use "Application loader" to submit/updload the binary/application.
"Application Loader" is an utility installed with Xcode.
In general you find it in the path "xcode/Applications/Utilities"
Your client could use the application loader to upload the ipa.
You should first select Deliver Your App and not Open Package which is misleading.
Xcode keeps an archive of all the versions of my apps that I've submitted to the app store in the 'archived applications' section. I assumed using this I could install an old version of an app to my device, in order to reproduce any problems my client may have had with that particular version.
However, when I try to do this I get an error:
'this executable was signed with invalid entitlements, the entitlements specified in your applications code signing entitlements do not match those specified in your provisioning profile'
The original app was signed using our App Store distribution certificate, and I use the Organizer interface to re-sign it using our Developer profile.
select the archived app
select the version I want to test
click 'share'
select 'iphone developer' next to identity
save to disk (saves the ipa file)
then copy the ipa to the device using the little + button you see next to 'applications' on the screen you get when you select the connected device.
Then I get the error, and the app isn't installed.
Is there something obvious I'm doing wrong here? Or is there a different process to re-install an archived app to my device?
Edit: Thanks for the answers, I've solved this now. I wrote up the process I used if others want to do this http://pervasivecode.blogspot.com/2011/01/installing-archived-application-to.html
You cannot install an app by dropping it into iTunes when it is signed with the App Store distribution certificate. You need an IPA signed with an Adhoc certificate to do that.
Xcode can resign an archive with the second certificate but I don't think this resigning will overwrite the first certificate. But then, I never tried.
I am using IPA file for testing purposes ,but some times it gives following error "Signer not valid error" is it due to non jail break? or i have to use UDID
The UDID of the device must be included in the .mobileprovision file associated with the app.
You can add devices through the Apple Developer Portal, and then download the .mobileprovision file. Double-click on the downloaded file to notify Xcode about it, and then Build And Archive the project again. The ipa generated from that build will now work on all of the devices you added.
Thank you
I learned a lot from this site
I have a question
I finished the application is running
webview
But I remain one step keeping the program
And send it to the iPhone to try it on two ipa
I want to save formulas ipa
Thank you
You can't just save an app as an IPA. Only if you submit it to the app store with a proper developer's license will they then distribute it in the store in that format
Running "Build and Archive" from the Build menu in Xcode will create an ipa file.
Stepwise Procedure to create an IPA file,
1.First of all,choose your device as IOS Device in Scheme near Breakpoint tab in Xcode.
2.In Xcode menu,Product->Clean and build your application.
3.If the provisioning certificate is not valid,it will lead to build failed with an error.If so you have to change it to a valid certificate through your project->build settings.Else if build succeeded just leave this step.
4.Then select Product->archive,it will create an archive file in Organiser->archives and open it up for you after archive finished.
5.choose share tab in Organiser followed by contents->.ipa and Identity->choose your valid distribution certificate and click next.
6.within a minute it will ask name for your IPA file to save.Give a name and save it in Desktop.
7.Open iTunes and drag and drop your IPA file in Library->Apps.
8.Now connect and select your Device in itunes->choose apps tab under it and sync your app ipa to the Device.It will install your IPA file to the device.
9.Thats all.Now you can run your App IPA file in your device.
I'm trying to upload an iPhone app binary to iTunesConnect and keep getting the following error message "The binary you upload was invalid. the file was not a valid zip file". I had an app upload ok recently but this app is having problems. So after a while I carefully went through the following steps trying to make sure everything was ok. Any help is appreciated.
The steps:
renamed the project
(Project->Rename... enter name into
Rename project to:) to release name
making sure the name has no spaces.
Cleaned project
Make sure
references in build setting reflect
new app name
Create new app ID
matching project name in iPhone
Provisioning Portal
Destroyed old
developer and distributer
provisioning profiles in
Provisioning Portal, in XCode and on
iPhone.
Create new development
provisioning profile using new app
name.
Install development
provisioning profile into XCode 8)
Build (Release) for iPhone OS 3.1.3
(highest my phone will upgrade to,
I'm assuming current released
version)
Builds, Installs and Runs on actual
iPhone: To me this implys App and
developer ID's are OK.
Create a distributor provisioning profile
using existing Distributer ID.
Install distributer ID into XCode
Clean
Checked that "Code
Signing Identity" and "Any iPhone OS
Device" lines in Build settings are
set to Distributor ID
Build for
release for OS 3.1.3
Check Build
results to make sure code is signed
with Distributor Profile
Reveal
.app file and compress (alt click >
Compress "appName.app")
Upload
to iTunes connect
Gives "The binary you uploaded was invalid. The file was not a
valid zip file"
Here's some additional steps I try: Quit Xcode after clean (or clean all) then delete the Build folder. I don't "Build and Go", just "Build". The AppName.app is generally in the "App Store" folder (or whatever you name your build configuration for App Store release. I right click only that AppName.app file and choose "Compress" in the Finder.
You could also try uploading it with Safari.
It seems like your problem isn't with the provisioning profiles, but with the way the file is being zipped (or maybe uploaded). Try repeating that part, changing details.
Thanks for the help. It turned out the problem was to do with the fact my project folder was on an ntfs HD. As an experiment I copied it onto my macs HD and it worked perfectly. I don't really understand why this is.
NTFS (New Technology File System) is a windows format. You may like to read this:
https://en.wikipedia.org/wiki/NTFS
Now if you will have a NTFS format iTunes will not recognize that format. And iTunes will support or recognize mac extended versions.
So try not to use NTFS or FAT format for ziping up the projects.
Regards
Rajeev