Cannot install Apple Enterprise application - ios

I have an Enterprise app that until recently has been installing and working fine. Recently, I've been trying to install it but I am unable to do so. At first I thought it was the new rule that you needed to have two-factor authentication in the developer account. But I added the authentication and I still can't install.
What happens when installing is, it shows a progress bar that says "Loading". Then at some point it says "Installing", but almost immediately after it says "Installing" the progress bar disappears and the icon goes dark. Sometimes it shows a message saying that the app couldn't be installed and gives the option of retrying or done.
Furthermore, the app DOES install in some devices. I have confirmed that it installs on three devices, which is weird enough. I have no idea what could be causing this. If anyone can shed some light on this I will be forever grateful as I am losing my mind over this. I should add that the app was made in Ionic Framework and, like I said at the beginning, everything has been working perfectly until now.
EDIT: Another interesting point is that I tried running the app from XCode directly to my iPad and it is installing perfectly. It is only when I download it from my Enterprise link that it fails, and only on certain devices so far.

As per your question What I understand that you are running app from xcode and it runs on certain devices, but if you prepare a build it won't install in iOS devices right?
If it is right then follow these steps, may be this will sort issue for you.
If you run the app directly from xcode use development profile in code signing.
If you prepare build for enterprise edition use distribution profile and prepare the build. When you preparing build via archive then using option distribution, select the enterprise mode for preparing the build. may be this will sort your issue.
Before doing this, clean the project.
** I am considering that you have all the updated certificates, profiles and account.

Related

Unable to install app on debug mode device and also in ad hoc . But working in simulator

I am unable to install my app on a real device while DEBUG running or in ad-hoc builds. However, I am able to run on a simulator. I did refer to many similar issues but couldn't find a solution. I assume it has something to do with the code signing of embedded frameworks, but as I said no proper guide could be found. .
These are my frameworks added to my project
This is my install error. If distributed via ad-hoc it says "this app could not be installed because of the integrity".
The issue arised for me when
I removed an existing embedded library in my app .
How I solved it
When I double checked the project , There was 2 more libraries which was dependent on the removed library for code signing(I assume it was this. Please correct me if I am wrong). So I removed these libraries too. The reason why I didn't removed it earlier was because I was not aware of it, as the project was passed to me only a few days ago.
After that I ran the project and it worked fine
The confusion arised because the app ran perfectly in simulator .But when try to run on a real device or distribute through an ad-hoc build, the error occurred (Refer my question screenshots)
Note - Please feel free to post a better explanation

Ipa file only installs on some iOS devices

I'm facing this issue where my .ipa file installs and runs perfectly on some physical iOS devices. It however, just remains darkened (the logo) after installing on some iOS devices. Now, I've checked the architecture and the build covers all the necessary architectures. I've checked the min sdk too and it more than covers what I need. So I for one am baffled as to why my flutter application only runs on certain iPhones (physical). It runs on all simulators tho.
Photo of darkened logo:
What happened was it became dark and started installing like any iOS app would but after installing, it just remained darkened and was not-clickable. I'm using diawi to generate the link to help the iPhones to download the ipa.
Does anyone know what might be a potential cause for this ?
You must add Device UDID in provisioning profile to get installed on it. If you are making build link via Diawi. You can see all added UDID there.
There should be few reasons where ipa file should not work on few devices where it works on other ones. Here is the listed below :
Device in which you are trying to install, UDID is not added to the provisioning profile
Link you created for ipa file installation gets corrupted
Site which are using for creating iPa installation link contains installation limits
Installation link gets expired after few days due to free version you are using
Suggestions :
If you are using http://diawi.com try it with Login. So it will give you more time before expiration of the link
Try https://www.installonair.com for making links for installation. Its damn easy to use & works well.
Hope this helps everyone.

iOS and push notifications-does not work in Xcode environment

I'm not sure that title is clear. What's happening is that I have been working on the Push Notifications feature for my enterprise app. It has been working fine in the development environment, but I have migrated to the distribution version, and it works fine on the iPhone if the app is downloaded from the archived .IPA file on the server, but not if it is running from the directly installed version from Xcode. (i.e. through the iPhone connected to the Mac via USB.) And even if I stop the test run, disconnect from the Mac, and run the app as it is installed directly from Xcode, PNs do not come through. It's only if I reinstall the app from the server. Very strange.
I have all certificates properly created and installed, which shouldn't matter, I'd think.
Anyone have a clue why it's like this?
Thanks!
EDIT: Additional info: Same problem if I load it either way on the iPad. OK if downloaded, not if directly installed.
Edit 2: I figured it out. See my answer below.
Well, it was sorta stupid on my part. Turns out the version installed onto the phone from Xcode is by default a development version, and I was using the distribution server configuration. Duh.

iOS App Crashes when installed remote/diawi but not if installed from xcode

I have an iOS app which, when submitted to Apple is crashing during usage when you try to go to a new view. This also occurs if i package up the application for enterprise distribution and then go to use the app.
If i just plug the phone in and run from xcode to the device though, it runs perfectly.
Has anyone experienced this before and have any ideas what it could be? Running latest xcode and ios, not using betas.
EDIT - i've tested building straight to the device using both debug and release scehemes, and they both working, but again, only when the device is plugged into the computer and it's built straight to it. packaging it in anyway and installing remotely causes it to crash on a particular screen. The error logs end up as a basically unreadable mess at this point.
When we archive app it mostly builds with release mode on, and when we run build on devices simply by XCode it's with debug mode on. You can check these configuration by going
Edit Scheme -> Run -> Build configuration, same you can check for Archive.
Now for tracking the crash issue you can simply try changing Run's debug mode to release mode for time being.
I got the crash where I was doing configuration for firebase for production target which has different bundle identifier than dev build identifier. You case may be different.
Wow, to be honest, that is really odd... It really shouldn't have that affect if you distribute via enterprise... As of any idea on how to fix this issue: you did add entitlements to the app when signing via enterprise, right?

Resource for steps to put app onto physical iOS device

I have a PhoneGap application which works in the Xcode simulator. I also am in the Apple Developer Program so I can do code signing to run apps on actual devices.
However, I am having a hard time finding a good resource to walk me through the exact steps to get the app on my physical iPhone/iPad. I have found other guides which are either for Xcode 3, or they show how to get PhoneGap working in the emulator but not how to get on an actual device, or they are presumably using a different version of Xcode 4 because they reference different commands than I have.
If you have successfully deployed an application from Xcode 4 onto an iOS device, could you please post a link to steps that you used or refer a book that has that information? I appreciate any help that anyone can give on the subject. Thanks!
[Edit: Though I am using PhoneGap, the steps to deploy from Xcode to iOS device are AFAIK the same.]
[Edit to add more detail:
I have my project made and it runs on iPhone 4 simulator and iPad 4 simulator.
I also can plug in my iPad (already went through the assistant to get it provisioned), select it in the scheme list box, click the Run button and it will launch as expected on the iPad. Does this mean that I have the code signing part working at least?
So far so good. Now I want to make a build so that I can distribute to people to test the app on their devices (I have their UDIDs already). When I get to the "Publishing Your Application for Distribution" section of the iOS Development Guide in the iOS Developer Library, I get stuck in the Archiving Your Application for Testing section. I am having trouble finding the Code Signing Identity build setting. It also looks like they have changed the menus around because they refer to a Build > Build and Archive menu item that doesn't exist anymore. I tried Product > Build for > Build For Archiving which seems like the closest option and the build actually succeeds but in the Organizer > Archives tab there are no archives.
Sorry that I do not have more specific information about where the process is breaking down for me but I'm new to the Xcode environment. I can typically figure these things out on my own as long as there is documentation somewhere but I have not been able to find any that match my build of Xcode. Thanks!]
[Edit again: After doing more research I ended up following the suggestion of others and did a complete uninstall/reinstall of Xcode which ended up resolving the issue albeit in a rather heavy handed way.]
You'll want to check out Apple's Documentation, for sure:
iOS Development Guide: Managing Devices and Digital Identities
iOS Development Guide: Building and Running Applications
They have a complete walkthrough of provisioning, building, and deploying your application to a device.
The Xcode Organizer makes it fairly straight forward and painless now... but there are still some sticking points, and reading the documentation will give you a full overview of exactly what's going on in the process.
Contrary to apple advise, setting Skip Install (Build Setting) to NO fixed this. Using phone gap here.
Archives not showing up in Organizer for XCode 4
Once you have your Apple Developer Account Credentials, You can follow gist I have created:
Apple's Code Signing Process

Resources