I am trying to update an app that is registered in the App Store.
I have developed and tried to update on a different Macbook than the one I used.
I archived the project and selected the app and then the Distribute App.
And IOS App Store -> Upload -> Next ..
But the first error occurred here.
"~~~~". has 3 iOS Distribution certificates. Contact the creator of one
of these certificates to get a copy of the private key.
So I extracted the certificate from the existing computer and added it to the keychain.
I clicked Manage Certificates ... and pressed the + button, but a second error occurred.
You have a current iOS Distribution certificate or a pending certificate request.
I added a private key and tried several methods, but ultimately failed to update the app. Please tell me how to fix it.
If the certificate is created on other mac then you have to import the particular certificate from the KeyChain with private key.
open KeyChain access -> select your certificate -> right click on it and select the Export option from the drop down.
select your location where you want to save the .p12 file.
set a password to protect your certificate and click on ok.
4.once it is created and save. just copy the certificate.p12 file and install it in your other mac.
Now download the provisioning profile and rebuild the project.
login in Xcode with same developer account you are using to upload the build and upload your build on app store.
Hope it will help you.
How to extract IPA file from project to run it on a real device to check the functionalities .I'm extracting it through the product folder and compressing it but it is showing error in iPhone that this file can't run.
To test an app on real device ,you must have development and adhoc provisioning profile for the app.
To know how to create certificates and provisioning profile, you can check this link: App id, certificates and provisioning profile
Then set the provisioning profile to your app target. If everything is right so far, then create an archive by Choosing Product -> Archive in Xcode and follow the steps. When Organizer window open in this process, tap on Export, appears on the right side of the window to extract the IPA file.
To test your app on real device you need a developer account,once you got a developer account just go to general on project target and enable automatic signing,it will create automatic provisional profile and certificate for you.i will let you know the steps below.
1)Get developer account with 99 dollars per annum.
2)Import your developer account by selecting Xcode->Preferences->Accounts and add your account by entering account name and password.
3)Now goto general and enable automatic signing,it will register your device and create provisional profile with certificate automatically.
4)Clean build and run your project with your device by connecting to Xcode.
Enjoy.....
You need to reverse work .
1 . You need to change .ipa extension to .zip
2 . Now you can watch .app file now drag this file to your device from Windows > Device
Another way for creating of ipa
If you want to work this ipa file then you need to create ipa as below:
Add necessary profiles and adjust build settings.
Set device as target to run the application.
Build the product.
Go to Products->yourAppName.app. Right click and show in finder.
Drag & drop to itunes profile and binary file.
Select app in iTunes and right click to show in Finder. And there you can get the .ipa file.
When I upload to Application Loader I receive the following message:
ERROR ITMS-90174: "Missing Provisioning Profile - iOS Apps must contain a provisioning profile in a file named embedded.mobileprovision."
I have this contained in my app folder. When I compress no matter how obvious I make the provisioning profile, I receive this error trying to upload my app for Apple.
If you are using Ionic / Cordova like I am see this announcement...
https://github.com/apache/cordova-ios/issues/407
It's just one setting, then re-run your Archive to Submit to the Apple Store like normal.
Go to "File" > "Project Settings..."
then select "Legacy Build System"
To upload a archive to AppStoreConnect I had to change the default build system in xcode10 within "File > Project / Workspace Settings" and change it to the Legacy Build system.
This worked for me
Access https://developer.apple.com/account
1 - Certificates, IDs & Profiles
2 - Provisioning Profiles
3 - Distribution
4 - Add Button
5 - Distribution -> App Store -> Continue
6 - Choose Apple Id -> Continue
7 - Select certificates -> Continue
8 - Set Profile Name -> Continue
9 - Download
10 - In Xcode -> Product -> Archive, In Re-sign "App Name" make option Manually manage signing -> choose the Distribution certificate and import your provisioning profile downloaded on step 9.
Sorry for my English, I'm from Brazil
If you submit your build to the AppStore in an IPA archive format (example: Game.ipa), make sure that the Payload folder is at the root of the archive, otherwise you'll get the error: Missing Provisioning Profile - - Apps must contain a provisioning profile in a file named embedded.mobileprovision.
in .plist add
Application requires iPhone environment , Yes !
I tested this , really worked !
I've faced same problem and solved by following below points.
For our clarification, please re-download your distribution provisional profile.
Please make sure you are generating ipa by setting "Generic iOS Device" in xcode.
Clean and build your project.
Place your product file in "Payload" folder and compress this folder and change .zip to .ipa
Now upload your ipa. It worked for me.
Hope this helps.
For those that are using the command line to build, and were using the flag (UseModernBuildSystem=0) to avoid this problem, seems that since the release of package cordova-ios 5.0.0, it's no longer needed. So if you update your Ionic / Cordova App dependency, will work normally.
I can confirm your solution works. To summarize the hacks so far:
1. While building, we need to do (if using ionic) ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
2. When you open it in Xcode, you can continue using "Automatic Sign" for the project, but when you upload the archive to App Store (for TestFlight or App Store) , you need to select "manually manage signing". When you select manual signing you will see there is no associated provisioning profile (huh...) so select one, and the right distribution profile.
I've managed to upload and distribute successfullly.
To locate the embedded provisioning profile in the app binary:
In Xcode, select your project in the project navigator.
Click the disclosure triangle next to the project to reveal the contents.
Click the disclosure triangle next to Products to reveal the binary.
Control-click the binary file, and choose “Show in Finder” from the shortcut menu to go to the Xcode build location in the Finder.
In the Finder, Control-click the binary file, and choose Show Package Contents from the shortcut menu.
For iOS apps, a provisioning profile called embedded.mobileprovision appears in the Finder window.
For Mac apps, the embedded file is called embedded.provisionprofile.
To verify the entitlements of the embedded provisioning profile
Launch Terminal (located in /Applications/Utilities), and enter this text (do not press Return):
security cms -D -i
In the Finder, drag the provisioning profile in the app binary to Terminal.
Press Return.
This command outputs a property list in XML format.
If you don't have an embedded.mobileprovision file, that seems to be the problem and you probably did not build the app properly for app store distribution.
I redid the 'Upload to App XStore..." and it worked the second time.
I did the following step to convert my html and javascript to make it compatible for iOS app using phonegap:
I uploaded the zipped file of my java script on phonegap.com and gave the relevant .p12 certificate along with the provising profile.
Now I downloaded the ipa file from there.
I tried to install this app through iTunes which did not installed desppite of waiting for couple of hours.
What can be the issue can anyone please tell me?
Is it something like that the provising profile used here should be for that particular device?
i think you have not added device in provising profile
1 Go to your Apple developer portal Click Devices to register your iOS device.
You need to connect your device to iTunes to obtain your UUID Click Certificate
2-Create a certificate for Production (to use PhoneGap Build, otherwise Development) Download the certificate
3- Convert the certificate to a p12 file . - Double-click the .cer file to open it in Key Chain Access.
Then click My Certificates under the category, Ctrl-click the certificate and export.
When you save the .p12 file, you are asked to create a password that you will need later.
4- Create a provision file on Apple developer portal, then download. Again, to make this work on PhoneGap Build, you need one for Distribution, otherwise Development. -
See more at: link
I downloaded the latest Xcode 6.1 and with having my client's provisioning profile/certificate, I tried to build IPA file for them (for ad-hoc deployment) but in the new Xcode 6.1 when you start archiving, it tries to connect to my apple developer account and since my client's App Id doesn't exist, it says:
Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues: An App ID with identifier 'com.myclient.something' is not available. Please enter a different string.
I used to do the same thing in Xcode 5.1.1 and I could archive and create the IPA file for my client with their provisioning profile. DO you know guys how can I build the IPA file for their in-house distribution in Xcode 6.1?
Thanks in advance,
Cam
Locate your .xcarchive file. Right click on it and select Show Package Contents. In the Products/Application folder you will find your app. Drag it onto the iTunes. iTunes will add it to the Applications tab. Go to the Applications tab in iTunes. Right click on your app and select Show In Finder. There you have your .ipa file