Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 13 on iOS 15 Beta 'Untrusted Developer' error on iPhone XS device

Tags:

xcode

ios

iphone

I have been testing my iOS app on my physical iPhone XS for quite some time now and all of a sudden it threw an error when I tried to run it saying:

"APP NAME" is no longer available.

So I went to re-build via Xcode into my device again to reinstall it. But I was getting an error message saying "Untrusted Developer".

So I tried to go to the Settings > General > VPN and Device Management screen to see if I need to 'Trust' my own developer profile again. But it's not appearing on that screen or any other new developer profile for that matter.

Did a bit of research and tried to troubleshoot. One of the solutions I've found and worked was to actually create a new developer account and use that to build and install the app on my device. I does work but I don't want to use another developer account to to build this app as the bundle identifier that I wanted to use was already tied up to that old account. And I have a bunch of other apps tied up to that old account as well.

The other reason why the above solution also wouldn't be ideal as I already have months worth of data in my device that was saved in that app. If created a new build using a new account it wouldn't be able to access the data of the old app built using the other account.

Just to note, that old account was formerly a paid account but now it expired. But I didn't have that problem until recently. So I am guessing it has something to do with the recent iOS 15 beta builds.

I will be filing a bug report for this. But does anyone have any idea or workaround to get rid of this issue? Any information that could potentially point me towards the right direction would be appreciated. Thanks!

I've filed this as a bug on AppleFeedback Assitant. They've reached out to me to ask for logs and the certificate I used to re-build the project. I'm guessing this this a bug and they are trying to fix it.

like image 447
Cris Denopol Avatar asked Sep 12 '21 12:09

Cris Denopol


People also ask

How do I fix untrusted developer on iPhone?

Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice.

How to fix the ‘untrusted developer’ error on iOS?

Here’s how you can fix the ‘Untrusted Developer’ error on iOS. This applies to iOS 8 and later. Open the Settings app and go to General>Device Management.

What version of Xcode is used for iOS app development?

The initial development was done on Xcode 13.1 and an iOS14 iPad. That worked well. As usual the iPad needed to be on a WIFI with internet connection at the first launch to verify the code signing.

How to enable VPN in Xcode for iOS?

The solution is to create a new Apple Developer account. In XCode go to Signing & Capabilities, in the team drop-down select "Add an account..." and sign into your new account. Press Run in XCode. It will come up with the same message but go to Settings > General > VPN & Device Management and trust the app under "Developer App".

How to fix untrusted Enterprise Developer error in Windows 10?

Go to Profiles and Device Management to fix untrusted enterprise developer error Step 3: You will see an option named Enterprise App here. Step 4: The apps that are installed from an unknown source are here.


Video Answer


3 Answers

The provisioning profile generated prior iOS 15 is preventing installation on the new release. Therefore, you will need to generate a new provisioning profile for your app. Try the following:

  • Quit Xcode
  • Go to the directory of cached provisioning profiles (cd ~/Library/MobileDevice/Provisioning Profiles/)
  • Back up the existing files to another directory
  • Remove all profiles listed under ~/Library/MobileDevice/Provisioning Profiles/
  • Launch Xcode
  • Install/run the app on your device

Xcode will detect that there are no eligible profiles on your local system and request a new one during the next build to a device. The new profile will be compliance with iOS 15 provisioning.

NOTE: if it still doesn't work, then install the iOS 15.2 beta release (Build 19C5026i or later) on your device and try the steps above again.

like image 114
Al Bencomo Avatar answered Oct 27 '22 18:10

Al Bencomo


I managed to fix this issue.

Xcode -> Preferences -> Accounts -> Manage Certificates -> + -> Apple Development and then make a new certificate

My situation might be different from yours but here were the symptoms I was seeing. I was able to sign random Github projects and run them on my phone. I also have a paid developer account. I never saw anything related to my app in the VPN & Device Management settings on my iPhone and I still don't.

like image 31
user2619824 Avatar answered Oct 27 '22 16:10

user2619824


I think I found solution for this problem.

You need to remove old certificate from your keychain, after then create new in Preferences... -> Accounts -> Manage Certificates... -> Tap +

I hope I will help someone.

like image 1
Bartłomiej Łaski Avatar answered Oct 27 '22 16:10

Bartłomiej Łaski