iOS9 Untrusted Enterprise Developer with no option to trust - ios

This is not a duplicate of Untrusted App Developer. Since iOS9 there is no option to trust an enterprise build. Has anyone found a workaround?

In iOS 9.1 and lower, go to Settings - General - Profiles - tap on your Profile - tap on Trust button.
In iOS 9.2+ & iOS 11+ go to: Settings - General - Profiles & Device Management - tap on your Profile - tap on Trust button.
In iOS 10+, go to: Settings - General - Device Management - tap on your Profile - tap on Trust button.

Do it like this:
Go to Settings -> General -> Profiles - tap on your Profile - tap on the Trust button.
but iOS10 has a little change,
Users should go to Settings - General - Device Management - tap on your Profile - tap on Trust button.
Reference: iOS10AdaptationTips

For iOS 9 beta 3,4 users. Since the option to view profiles is not viewable do the following from Xcode.
Open Xcode 7.
Go to window, devices.
Select your device.
Delete all of the profiles loaded on the device.
Delete the old app on your device.
Clean and rebuild the app to your device.
On iOS 9.1+ n iOS 9.2+ go to Settings -> General -> Device Management -> press the Profile -> Press Trust.

Changes to Enterprise App Distribution Coming in iOS 9
iOS 9 introduces a new feature to help protect users from installing
in-house apps from untrusted sources. While no new app signing or
provisioning methods are required, the way your enterprise users
manage in-house apps installed on their iOS 9 devices will change.
In-house apps installed using an MDM solution are explicitly trusted
and will no longer prompt the user to trust the developer that signed
and provisioned the app. If your enterprise app does not use an MDM
solution, users who install your app for the first time will be
prompted to trust the developer. All users who install your app for
the first time will need an internet connection.
Using a new restriction, organizations can limit the apps installed on their devices to the in-house apps that they create. And a new interface in Settings allows users to see all enterprise apps installed from their organization.
Source: Official email sent from developer#insideapple.apple.com to existing enterprise app developers.

Device: iPad Mini
OS: iOS 9 Beta 3
App downloaded from: Hockey App
Provisioning profile with Trust issues: Enterprise
In my case, when I navigate to Settings > General > Profiles, I could not see on any Apple provisioning profile. All I could see is a Configuration Profile which is HockeyApp Config.
Here are the steps that I followed:
Connect the Device
Open Xcode
Navigate to Window > Devices
Right click on the Device and select Show Provisioning Profiles...
Delete your Enterprise provisioning profile. Hit Done.
Open HockeyApp. Install your app.
Once the app finished installing, go back to Settings>General>Profiles. You should now be able to see your Enterprise provisioning profile.
Click Trust
That's it! You're done! You can now go back to your app and open it successfully. Hope this helped. :)

On iOS 9.2 Profiles renamed to Device Management.
Now navigation looks like that:
Settings -> General -> Device Management -> Tap on necessary profile in list -> Trust.

Related

How can I test ios app i coded on Xamarin.Forms on Windows 10 using a real iPhone iOS device?

Currently i don’t have apple developer account. I am developing on Xamarin.Forms in Visual Studio 2019 on Windows 10. I also have a mac device. I installed xcode on this mac. I run simulators on windows by the help of this mac connection. But i want to test my app on real iphone. How can i do this ?
You cannot run your development app on iOS device unless you have an Apple developer account. After you create the account, you need to create provisioning certificates for the device, download them. Only then you can run it
To be able to deploy on a physical iOS Device, you either need to have an Apple Developer Account or you can get a free provisioning profile from XCode (No Apple Developer Account required).
To get a free provisioning profile,
You have to (on your Mac):
Open XCode > Preferences and add your Apple ID in the Accounts section. You can then close the Preferences tab.
Create a new project and select Single View App. In the Team drop-down list, set it to the Apple Id you just added.
After the creation of the project, target your iOS device for building.
Open General > Identity and make sure the Bundle Identifier matches the one found in your info.plist directly from your Xamarin.iOS app.
Under Signing, select Automatically manage signing and select your Team.
You should now be able to see your provisioning profile when clicking the 🛈 symbol under Signing - Provisoning Profile and you can test the deployment by clicking the run button.
To deploy your app from Visual Studio:
Make sure your Visual Studio is paired to the Mac.
Connect your iOS Device to the Mac
Navigate to iOS Bundle Signing in Your iOS Project > Properties.
For Configuration, select Debug.
For Platform, select iPhone.
Select Manual Provisioning.
Select the provisioning profile and the signing identity created by XCode
You should now be able to run the app. (Don't forget to target your IPhone for Deployment)
For more info, visit (https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/free-provisioning?tabs=windows)
Plug your phone into your computer using a USB to Lightning connector. Click Trust on your phone. Click on the simulator on XCode and choose your phone name. Click build. You will get an error on your phone saying untrusted developer. Go to settings on your phone, click general then profiles. Click on the only one there and click trust. Now you can open your app.

Xcode 8 asks for a device to be registered to create provisioning profile

I am trying to publish an app for testing, without having to connect a device in my mac.
I have created a developer account, created an app in itunes, generated bundle id, signed into xcode with the developer account, generated a distributor certificate.
When I tried to archive the app, I got the error "conflict provisioning setting. app is automatically signed for development ..."
I read in this post and followed the tip of unchecking and rechecking the option "Automatically manage signing". After re-choosing my team, I get the error "There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it".
The goal all along was that I wouldn't need an ios device, because I intended to immediately publish the application and invite people to test it via testflight. Is it not possible to do it like this? Am I missing something.
I have read lots of documentation, but being a first timer in this, everything seems confusing.
Edit: I created a provisioning profile as distributor. Even after creating and installing the distributor profile (it now appears also in xcode at Account -> provisioning profiles), I still get that same error. I also noticed that in signing, The signing certificate is iOS Developer. I am sure
I fixed it by plugging in my iPhone and going to the Product menu > Destination > iPhone (my device).
Then after clicking Try Again on this properties page the warnings went away.
Source
The solution (though I would welcome more elaborate, insightful explanations):
#General -> Signing, disable the option "Automatically manage signing"
#General -> Signing and certificates choose your team
Though in my case that was not the issue, I would recommend making sure that in the device list, you choose Generic iOS device in your target devices.
This really sucked to figure out.
What you do is add a distribution profile in https://developer.apple.com/account/resources/profiles/add. Don't choose development! Don't let the Xcode Automatically manage signing!!
Then, you download the provision.
Then, in the Signing & Capabilities -> Signing Section of the project.xcodeproj file, turn off Automatcially manage signing, choose import and import the file you just downloaded.
Then, in the top, you choose Any iOS Device (arm64, armv7) and then you go Product -> Archive.
What happened to me was that I was about to run my app on a physical device for the first time and I didn't have a Team. So I created it in the process before connecting my phone with the USB cable. After I created the team a message like the listed above appeared. I did some research on internet but nothing found.
So here's what I did: I connected my phone, did all the trusted process, then restarted Xcode, and it worked. I am not sure what happened, but it was some of my first experiences using Xcode. It could sounds silly but it helped me. Hope to you too.
If you do not wish to register a device follow this advice:
https://stackoverflow.com/a/44157307/499581
* In short use "Generic" as the device while archiving.
If you do wish to register a device then the solution to:
"There are no devices registered in your account on the developer
website. Plug in and select a device to have Xcode register it".
Is to physically plug-in your device (an actual iPhone, or iPad) so that Xcode can register it for development use (note: this will not affect the normal everyday use of the device). After the device is registered it can then be used for development testing, load provisioning profiles onto it, etc.
↳ Disabling and Enabling Devices Using Your Developer Account
For those who are trying to develop without a mac computer using MacInCloud don't follow the standard advice out there. Its will lead you down a hole. I have wasted hours of my time.
The reason it say something about "a device to be registered to create provisioning profile" is that you need to provision an iOS device that you can test on before you can get it signed. If you are using MacInCloud you probably can't physically connect an iPhone or iPad to the MacInCloud and therefore it can't automatically provision devices for you.
Before you get to far into this you will need to get your iPhone/iPad UDID. Which I was able to do with https://get.udid.io/ on my iPhone, but it didn't work on my iPad. Instead, with the iPad I had to download iTunes from the Windows store and connect my iPad. Then click on the little gray square in the menu that's inline with Library tab.
image of itunes
Then when it pops up with your device info (mine didn't come up with my info at first, I had to sync my device). You will see your SN. Click on your SN and it will change to your UDID. Once you have your UDID you are ready to create a provisioning profile. What is confusing is this isn't done in the appstoreconnect section of your account online. Its done in your developer account: https://developer.apple.com/account
developer.apple.com account screen shot
When you go there you will want to click: Certificates, Ids & Profiles
Here you will need to add your devices and then with auto signing checked in Xcode that made the problem go away. NOTE: I originally tried to create a profile, download it, and import into Xcode under the Provisioning Profile dropdown in Signing & Capabilities. As described in another answer here, but that proved more problematic and wasn't necessary.
Then you can chose Any iOS Device from emulator device drop down then go to Product > Archive > Distribute App and create a certificate to place it on the app store (TestFlight).
you can also plug an iphone, run the app the app on your iphone as the target, it will ask you to register the device and then the certificates will be generated
Have you paid the $99/year developer fee? TestFlight is only available for paid developers. I would highly recommend plugging in an iOS device, though. It's more fun and rewarding testing that way.

Unable to Trust Enterprise Untrusted app with iOS 9.0.2

Just downloaded iOS 9.0.2 to my NEW iPad. When I did it said that the app wasn't trusted and that I needed to trust the app. Everything I have seen says to go to general settings->profile->trust the app you need to trust and then open the app and use it. When I go to general settings there is no profile listed under the settings page. I have also check many similar post before posting again
Link - iOS9 Untrusted Enterprise Developer with no option to trust
Looking for help on either how to get the profile settings to show up or on how to trust and untrusted app without the profile settings. The app is running fine with old iPad which i updated to iOS 9.0.2.
I tested this and found that if you have no profiles yet on a new iPad or iPhone, the option will not exist. I created a profile and loaded it into my device and the profiles option appeared.
Then even after I deleted the profile, the menu option for profiles remained.
To add provisioning profile you can go through the apple docs.

iOS 9 Beta 3 Can't Trust Enterprise Developer Apps

I updated to iOS 9 Beta 3 today, and I need to test an IPA file on my phone.
I put it on, and it says I need to trust the developer first before I can open the app. I went to Settings > General > Profiles, and the option to do so is not present like it was in iOS Beta 2. Anyone else have this problem and a solution?
I was having a similar issue and I just resolved it. Below are the steps I took:
Open up Xcode 7 Beta 3
Open the Devices Window under the Window menu item (CMD+SHIFT+2)
Under Devices on the upper left select your device that you cannot run the app on
Right Click on your device and and select Show Provisioning Profiles
Select each provisioning profile on the phone and click the [-] to delete all of them.
Now try installing the app via Xcode, if you keep the Show Provisioning Profiles window open you will see it install the ones for your app.
That did the trick for me. I could not trust the app since it was not in the profiles and this got it to launch just fine now. Best of luck!
I solved my problem by setting up Testflight internal testing through iTunes Connect. I can test my apps now.

iOS 9 new feature Free Provisioning (Run your app on a device, just with your Apple ID, without Apple developer membership)

Would like to know about the new feature Free Provisioning introduced in iOS9 & Xcode 7.
How Apple is now achieving that, as before we knew our device ids were enrolled in the profiles and hence it was possible to deploy the app on devices.
Now only with Apple ID how the things in the background are achieved, also is there any restrictions on how many number of devices I can add my build with Free Provisioning.
Any help is greatly appreciated thanks...
1. How it works?
Apple Ref : How to use free provisioning
As stated in above link under Launch Your App on Devices Using Free Provisioning point 6. "Xcode creates a free provisioning profile for you"
Update: Above point 6 is removed from link, but there is no change in the way it works and steps in above link still work!
Profile created in this way is tied to your apple id, when you try to run app on new device that device's UDID gets added in this profile.
2. How to use free provisioning?
Requirements: Apple ID, XCode 7 or above
Steps:
Go to XCode Preference
Go to Accounts tab and hit plus "+" button on bottom left to add your Apple ID.
After successfully adding Apple ID click on view details on bottom right
Click the Create button next to "iOS Development"
Connect your device and select your device as build destination.
In target's general setting,
a. Set app identifier you want to give to your free profile
b. set team id as your apple id
c. If using XCode 7, hit Fix Issue button below provisioning profile warning.
If using XCode 8, there is no Fix Issue button XCode will automatically do this.
In both cases of XCode versions, Xcode will either create new profile if not found for your apple id or add new device to your existing profile.
Run the app, this will install app.
Click app icon to start app manually, you will get "Untrusted Developer" dialog. To trust your apple id, Go to iPhone setting > General > Device Management > Select your apple id and click trust.
After step 8 you can run and debug app using free provisioning.
3. What are the Limitations?
I tried to install app with free provisioning and could run/debug app. But there are few catches. Profile created by XCode is bit different than our usual developer profiles
From profile raw file
There is new key LocalProvision with value true
<key>LocalProvision</key>
<true/>
Many services like following are not available, See full list of services
Apple Pay, Game Center, iCloud, In-App Purchasing, Push Notifications, Wallet (Was Passbook)
Expires in 7 days (this was changed sometime in May, previously it was 90 days).
<key>TimeToLive</key>
<integer>7</integer>
Old: 90 days
New: 7 days
Under <key>ProvisionedDevices</key> there is list of devices on which I tried to install app, still unknown maximum number of devices possible, I tried to install on 3 devices which worked successfully.
This is not alternative to publishing app for free on app store, you still need to enroll to developer program to publish apps.
Testflight based internal / External testing is not possible.
Apple haven't disclosed the thing like, how they are managing on their developer portal. But I think they just removed the restriction of Paid Developer program & rest of the thing kept as it is.
For standard developer Program Apple support 100 device so I think same will apply here.
Refer this link for more info..
Copied from: https://developer.xamarin.com/guides/ios/getting_started/installation/device_provisioning/free-provisioning/
Limitations
Apple has imposed a number of limitations on when and how you can use free provisioning to run your application on an iOS device, ensuring that you can only deploy to your device. These are listed in this section.
Access to iTunes Connect is also limited and therefore services such as publishing to the App Store and TestFlight are unavailable to developers provisioning their applications freely. An Apple Developer Account (Enterprise or Personal) is required to distribute via Ad Hoc and In-House means.
Provisioning Profiles created in this way will expire after three months, Signing Identities after one year. Furthermore, provisioning profiles will only be created with explicit App IDs and so you will need to follow the instructions above for every app that you wish to install.
Provisioning for most application services is also not possible with free provisioning. This includes:
Apple Pay
Game Center
iCloud
In-App Purchasing
Push Notifications
Wallet (Was Passbook)
Some more informations.
You can archive app with free provisioning profile. But You can't export ipa in "XCode 7"
But you can use XCode 5 or Command line "xcodebuild" to export ipa file.
I tried using OTA to install this ipa file. And it's work!
So... If there has a way to add UUID to your account without XCode (REST api calls). You can distribute your app to anyone you want.

Resources