Installing .ipa over the air does not open - ios

I have signed my .ipa and I have tried to install it via diawi. The app got installed but it shows the app's icon in dark and does not open. I signed it with a iOS Certificate and when I try it from XCode and TestFlight it works perfectly! What could it be?

You need to sign it with AdHoc Provisioning Profile.
You should also register the devices UDID in Certificates, Identifiers & Profiles in your Apple Developer Account.
EDIT
Excerpt from Diawi Knowledge Base.
A few things to check as a developer
If you have uploaded an app to Diawi and can't install it on some of your devices, here are a few things to check:
device's UDID must be in the provisioning profile built into the app by xcode
device's UDID must not start with "fffffff..." (if it is, then it is fake)
you are building a Release version of your app
the device is not behind an enterprise firewall preventing app installation
You may also try to drag&drop the app into iTunes and sync your device: it should install the app, otherwise it is not valid.
Can't install an app on an iOS device? Things to check
Distribute to registered devices (iOS, tvOS, watchOS)
What is the difference between a Development Provisioning Profile and an Ad Hoc Provisioning Profile?

Related

Do I need an iPhone for TestFlight? [duplicate]

I have enrolled to Apple Developer Program to release my first app. My app's bundle ID is the same at developer.apple.com, at appstoreconnect.apple.com and in my XCode project. However, XCode still gives the error in "Signing & Capabilities" tab:
Failed to create provisioning profile.
There are no devices registered
in your account on the developer website. Plug in and select a device
to have Xcode register it.
And another error:
No profiles for ‘com.xxx.yyy’ were found
Xcode couldn't find any iOS
App Development provisioning profiles matching ‘com.xxx.yyy’.
First error message made me think that a physical connection to an iPhone is required to create a provisioning profile.
I have never connected a physical device to my Mac before. I made my tests by iOS simulator. I was planning to do my physical device testing via Testflight.
Do I have to physically (via a USB cable) connect an iPhone to my Mac in order to create a provisioning profile? If not, what might be wrong?
Is it required to have provisioning profile in XCode to be able to use Testflight or publish an app to App Store?
Do I have to physically (via a USB cable) connect an iPhone to my Mac in order to create a provisioning profile?
Yes, if you want to use automatic signing. An automatic provisioning profile unites a computer and a device and an app; it says that this computer is allowed to build this app onto this device. Until Xcode sees the device, it can’t create the profile.
The alternative is to switch to manual signing. It’s more work but now you can generate the profiles yourself.
You do NOT need a physical iOS device (iPhone or similar) to upload an app to App Store! Whether for real or TestFlight.
I realize this qn is old now, but I'm writing this for people like me, who stumble in here fighting the same problem... 😏
What you need to upload apps on App Store:
A MacOS machine (not too old)
A paid Apple Developer Account
An app signing certificate from the above account
A provisioning profile, with or without a physical device
When trying to create a new provisioning profile in your Apple Developer Account, the first option is:
iOS App Development
Create a provisioning profile to install development apps on test devices.
See:
If you chose this option, you need a physical device! In fact, the way I understand it, you are supposed to register the UDIDs of ALL the phones and tablets that you want to test your app on...
If, like me, you don't have an iOS device, you can instead chose the last option in the list:
Developer ID
Create a Developer ID provisioning profile to use Apple services with your Developer ID signed applications.
See:
This one only requires an Apple Developer ID!
At the end of your create-provisioning-profile process, you have to download your profile and open it in Finder to install it (in XCode or whatever you're using). In your project, you have to switch from "automatic signing" to "manual signing". In XCode, this is done here:
If, like me, you had already downloaded your app signing certificate and installed it in your KeyChain app, you may run into this error when trying to apply your provisioning profile:
"Provisioning profile 'your profile name' doesn't include signing certificate 'your certificate name'".
The way I solved this error was:
In KeyChain:
Exporting my Apple Developer certificate to a .p12 file.
Deleting my Apple Developer certificates.
Re-importing the exported certificate file to keychain.
In XCode:
Close and re-start XCode
In the "Signing & Capabilities" tab in the project, de-select the newly downloaded profile and then select it again.
Now, it works! 🙂 From there, you should be able to follow any tutorial for uploading an app to App Store.

Cant run myApp.ipa after installing it from Diawi

I created an app using react native, I have tested it on my IOS devices by connecting them with xcode, but now i want to share myApp with others to test it. To do that I generated myApp.ipa file by archiving, simply I just navigate to Product -> Application -> myapp, after archive is done, i copied the file to a folder named Payload after compressing the file, changed the Payload.zip to myApp.ipa after that I upload it to the Diawi website then got the link, installed the app on my ios device but unfortunately i cant run it? myApp is shaded with black, and nothing is there in Setting -> General -> Profiles. what did i do wrong? or if there is a simple way to let other test myApp.ipa please share.
Your app is blacked out because the iOS device won't run any unsigned apps. Your app cannot be signed without a provisioning profile.
You cannot install an app on an iOS device without a provisioning profile. The only way to get a provisioning profile is to have either a paid developer account or an enterprise account.
To install an app on an iOS device without submitting to the app store requires use of either an ad-hoc or enterprise provisioning profile
ad-hoc
The only way to get an ad-hoc provisioning profile is to have a paid developer account. $99 per year. https://developer.apple.com/programs/
ad-hoc profiles have limits to the number of different devices that they can be installed on.
enterprise
The only way yo get an enterprise provisioning profile is to have an enterprise account. $299 per year https://developer.apple.com/programs/enterprise/
enterprise profiles don't have the same restrictions on the number of devices as ad-hoc profiles but you cannot submit to the app-store with an enterprise account.

Beta iOS app distribution problems

I have an app ready and I want to test the beta in some external devices. I am using the correct bundle id and in the iTunes connect page I created a certificate , added the devices and then created an ad-hoc provision profile. I opened it on Xcode and then archive the app and export it. I used Diawi and Ubertesters for the app distribution but in both cases I get "Unable to download app". I am missing something ?
Most probably the issue is connected to the device provisioning. Please make sure you've added your device UDID to the provisioning profile and sign your .ipa file with it. Once the newly signed up build is uploaded to Ubertesters, please try to install it on your device.

iOS Enterprise program: not able to install IPA file created using in-house provisioning profile on one of our device

We are using iOS enterprise account for distributing our iOS app. We are using the in-house distribution scheme of enterprise program.
As far as my knowledge, we don't need to install the in-house provisioning profile in the targeted device. Also, I believe that we don't need to add the device UDID in iOS portal since it's an enterprise account. Please correct my last two statements if my knowledge is wrong.
I am creating the IPA file using the in-house provisioning profile only. But while installing the same on one of our devices (iPhone 5s), I am getting below error.
"**A valid provisioning profile for this executable was not found.**"
I tried to install the same IPA file on another device (iPhone 4s). I have not installed the distribution provisioning profile in that device also. And it's working fine there. So only I concluded that We don't need to install any provisioning profile on the device in case of iOS enterprise program.
Below is my provisioning profile from enterprise account which I am using.
I am not sure why this is happening. Please help me and let me know if I am missing something.
You have to use a provisioning profile that is set for distribution. This profile needs to be using a certificate that is installed on the Mac you want to create the archive from. The profile gets installed along with the application.
You do not have to have the device added to the portal (only development devices need to be added).
One note - the profile will expire yearly. You will have to publish at least one update every year to include an updated and renewed provisioning profile.
Here's some screenshots:
Keychain Access:
Build Settings (Xcode):
Archive:

iOS's ipa distribution for testing

I have made an app for iPad and I would like to send this for testing to a friend. If I send the .ipa by email can he install this .ipa on his iPad? If he can't, what's the better way to install my .ipa on his iPad?
you need the UDID of this iPad.
add it to the test devices of your ios developer account.
add the device to a adhoc distribution provisioning profile
and build your app with it.
then you send the ipa to him
he can install the app into itunes and sync his ipad with itunes
alternatively install it with iphone configuration utility (windows or mac)
or in Xcode using Windows > Devices > Select your device > Installed Apps
You could use TestFlight.
You need to know UDID of the iPad. TestFlight requires you to compile the app with the UDID added to the provisioning profile.
If you don't know the UDID you might use some services like www.aironapp.com which gets the UDID of the device automatically and resigns the application with the new UDID.

Resources