We are using xcode 6.2 beta 4 and distributing ipa with testflight without any issue.
But when distribute the ipa to an OTA link for enterprise in-house distribution, the app can't be installed. The error message captured in the console log is "attempt to install an invalid profile", "Failed to verify code signature of ...", "Signer did not match any installed provisioning profile".
The Distribution Provisioning Profiles being used is showing green in the Apple developer portal. And it's available in the Xcode. The certificate type is iOS Distribution and will expire on Jan 06, 2016. The profile has both bundle ID and cert in place.
The ipa was generated via the build, not the archive (as archive doesn't allow me to export as enterprise ipa, only ad hoc).
Any suggestions?
You have the wrong type of provisionning profile. It needs to appears as iOS UniversalDistribution in the provisionning profile list . When creating your provisionning profile, choose Distribution > In House
Related
I am building a final release build for my Angular NativeScript app. I followed all the necessary steps to build an .ipa file and then have used the Apple Transporter app to upload the .ipa but I receive the following error on the transporter app. I have tried few steps to fix the issue, but the error does not go away. I think I am not following the correct steps.
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.xxx.xxx [Payload/xxx.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
Are there any steps I could follow to resolve this error? Thanks in advance!
PS: I do have an Apple Dev account. I have the Apple iOS Distribution certificate, Apple Dev certificate, AppBundle ID ready.
I've been using the fastlane tool provided at: https://fastlane.tools to generate provisional profiles and submit apps to iTunes connect.
Sequence of commands:
$fastlane init
$cert
$produce
$sigh
Following this the provisional profile corresponding to distribution on App store is automatically downloaded. After which the deliver command is executed and as per the guide this statement was added in the deliverfile -
ipa do
system("ipa build --verbose")
"./AppName.ipa"
end
It successfully generates the .ipa file but fails to submit the app to iTunes connect. The following error is generated -
[15:57:54]: [Transporter Error Output]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.razeware.ScaryBugsZo [Payload/ScaryBugsZo.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
Although on using the same provisional profile generate by fastlane I'm able to upload the build using xCode. My final goal is to automate submission of multiple apps on iTunes connect from a single apple ID. For this, sigh is successfully generating provisional profiles. I need to a way to automate uploading the build either by using deliver or some other method.
I can recommend checking out the official fastlane code signing guide that shows you the various ways to do code signing.
I have problem with installing Appstore distribution build/release into my iphone.
After reading the post Testing App Store "Distribution" version and How to test the final distribution build before submitting it for review to the iPhone app store?
I know that it is possible to install Appstore distribution build into iphone/device after installing AdHoc provisioning profile (see the posts I read). However, I couldn't do it and i dont know why.
Here is a list of what I have done:
Created AppID from developer portal.
Added the device.
Created certificate.
Created Adhoc provisioning profile with the device.
Created AppStore provisioning profile with the same certificate.
Installed both profiles and certificate into build machine.
Build the AdHoc release.
Installed the Adhoc profile to device.
Test the Adhoc build. The app works on device.
Remove the app from device.
Build the AppStore release with AppStore profile.
Install the app to device and error.
Error message: "Unable to Download Application".
If I drag and drop it from xcode, it will give me the following errors: The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.
0xE8008016
Any idea how i can resolve it?
Thank you. B.
If you created build with distribution certificate ( AppStore release ) then you can not install it on device from any tools. You should upload this build to appstore and install if from appstore( after it approved from apple)
I am signing a dylib in my application with an Enterprise certificate and noticed that on some devices I get the following error:
0xe8008015: A valid provisioning profile for this executable was not found.
The strange thing is on the devices where this works I never manually installed a provisioning profile. I think when I used XCode it got automated installed somehow.
Manually installing the 'Distribution in house' profile associated with the cert on these devices fixed the problem, but I'm trying to understand how to deploy my software without requiring this extra step.
What is the standard way of pushing out the enterprise provisioning profile?
Does the mentioned Enterprise certificate appear under Settings ➞ Profiles on the iOS devices that experience the problem?
Is said Enterprise certificate available as a valid (signable) certificate on the Xcode installation where you package the final .ipa?
Do you use the same certificate for signing the dylibs and the app?
The standard way of pushing an Enterprise certificate to devices is to include it when packaging/archiving an app. Xcode should do this automatically - at least for the certificate used to sign the app itself.
You can extract an .ipa (rename to .zip) and look for a file called "embedded.mobileprovision" in the .app package.
When I install an ad hoc build of my ipad app, I notice that I get both the ad hoc provisioning file and a "team provisioning profile" showing up on my ipad. I've only ever dragged the ad hoc provisioning file to my itunes and am trying to debug why for a while I had an error showing up when I was syncing the app, something about a signer not being valid.
Does anyone know what makes this team provision file get added and either 1) how I can prevent it from being added so I can debug the adhoc provision file itself or 2) if this team provision file is normal and how things work now with ad hoc builds? It shows up when I install it from my mac where I develop the app and also on a secondary mac where I don't develop the app so it doesn't seem to be something xcode is sticking on the ipad during debug builds.
Xcode automatically installs the Team Provisioning Profile onto the device, if it is registered to your account as a development device.
This profile is only used for apps build using the debug Xcode configuration. AdHoc builds are not signed with this profile but using the AdHoc profile. So those two profiles to not interfere.
The signer error usually means that the provisioning profile, which the app is requiring, is not installed on the device and the profile being inside the app doesn't have the device listed.