iOS 9.2 missing Profile section from General Settings - ios

I was trying to activate a developer app in iOS 9.2 and the app was not trusted due to security settings. I tried to go into the Profile area under General Settings, but it wasn't there. What gives? It was there this morning . . .

Apple renamed the Profile section to Device Management. It is still under General Settings and performs the same function.

This somewhat worked for me: Instead of looking in the device, go to XCode, Devices (Under Window), ctrl -click on the device and you should see a "Show Provisioning Profiles" menu item.

I had the same problem and I couldn't debug my apps anymore.
I used the Apple Configurator (https://itunes.apple.com/de/app/apple-configurator-2/id1037126344?mt=12) to delete all of my profiles on the iPhone. Afterwards I installed another signed app again and now I can debug again.
But I still can't see "Device Management" in Settings.

I was successful doing this when I accidentally went to Product>Profile once the build is finished head over to your phone then Settings>General> then the Device Management will instantly appear under VPN.

I am at iOS 12.1.2(16C101) and was trying to verify that the Developer App certificate for my account is trusted on my device. Found the option at
General -> Profiles & Device Management.

If "Device Management" doesn't appear you must restart your device to see it.
This worked on ios 9.

Related

"iPhone has denied the launch request." can not debug [duplicate]

Using Xcode beta 9 (v4), I'm trying to launch the app by clicking on the "play" button. I get a "build succeeded" but right before launching, a popup message appears in Xcode:
"iPhone has denied the launch request."
It used to work yesterday. It does work on the simulator. I've rebooted my computer, the iPhone, uninstall the app, cleaned the build. Running out of ideas.
It may be code sign issue. Make sure you're signing with developer, not distribution.
It happens using Xcode 9.x or newer.
I tracked this problem down to the "debug executable" checkbox in the product scheme (product->scheme->edit scheme->info->debug executable checkbox). I unchecked that and this stopped happening (as well as a couple other weird issues - no output in console being one).
I have a workaround:
If you change the scheme to 'Ask on Launch' it works.
In Xcode top bar
Product > Scheme > Edit Scheme > 'Info' tab > Executable: "Ask on Launch"
http://upload-images.jianshu.io/upload_images/663014-d5d182e310052664.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
It's slightly annoying but it works.
This issue can be resolved by unchecking Debug Executable in Edit Scheme.
After getting "denied launch request" error, do this:
Edit Scheme -> Info -> Executable -> Ask on Launch
This worked for me with adhoc profile.
The problem for me was that I was using a free developer account (simply signed in with my Apple ID). When looking at the device logs I found (bold added)
(RequestDenied); reason: "The request was denied by service delegate
(SBMainWorkspace) for reason: Security ("Unable to launch
{com.my.bundleID} because it has an invalid code signature, inadequate
entitlements or its profile has not been explicitly trusted by the
user")"
That made me realize that I needed to go into Settings -> General -> Device Management -> {My Apple ID} -> Trust
After that, everything worked as expected.
In previous versions of iOS I would encounter a dialog on my device that would tell me that this was the problem. Maybe Apple took it out for iOS 11. 🤔
Simple restarting of the iPhone helped me out.
For me issue was due to code signing the app with Ad hoc profile.
After changing the code signing to developer profile,from xcode settings general tab the above issue got resolved.
I got this issue recently and I found the solution for this crazy issue. This are the Scheme Issue to fix this issue follow following steps.
Click Edit Scheme top Navigator Tab.
Click Info on Run menu.
On Executable dropdown select "Ask on Launch" option -> Then Close and run the build once.
This solved my problem when I got this issue.
Apple Reference
Got this with Xcode 9.0 while deploying to a non-simulated iPhone 6s with iOS 10.3.
I had force-quit the app right before this arose. Otherwise, nothing had changed; all the developer signing credentials was still trusted, and the app was still marked Verified in the iPhone's Settings.
The trick that fixed it was turning the iPhone off and then turning it back on again.
Looking at my logs, it appears applicationWillTerminate was triggered a while before this happened; the instance of the app that I thought I force-quit must have been some zombie process?
The problem is that xcode 'times out' after certain seconds. The fix is to edit the scheme and ask xcode to 'wait' until the executable is launched.
In Edit Scheme, check 'Wait for executable to be launched' instead of 'Automatically'
I attentively read all answers but they don't help me. My solution:
Go to Xcode preferences, select accounts (⌘ + ,)
Select your Apple ID, choose team and click Manage Certificates
In Pop up menu in bottom left corner click + button and select iOS Development, then click done and close popup
Try to relaunch application, now it's should fine.
It may cause with switched a wrong branch with Git, Make sure the branch you switch not too old(since it may cause code sign issue), And on the right branch if this still bothering, select the development Provisioning Profile under Signing(Debug) if u r not Automatically manage siging.
Just tick "Automatically manage signing" in General -> Signing properties of the Target. It will create Development provisioning profile for you and running on the device will work.
These simple steps helped me.
Remove your connected iPhone, iPad from the mac.
Restart your device.
Select "Automatically manage signing" in Xcode settings.
Reconnect your iPhone, iPad.
I know there are lots of answers in this thread. I've tried every one of them but none worked for me.
TLDR:
Here is the solution:
Update to xcode 11.4.1 or newer
Going through all the certificates in Keychain access I found out that all of my developer certificates has a invalid status. And, I believe that, this is the root cause of this issue. I've tried the solution here saying delete Apple Worldwide Developer Relations Intermediate Certificate and everything. But, It didn't work.
Then I came across this link. Apparently, the Apple Worldwide Developer Relations Intermediate certificate (AWDRI) is set to expire in 2023 and developer certificates or any other certificates issued after January 28, 2021 won't be using that particular AWDRI certificate. Instead of that they use a renewed certificate which is set to expire in 2030. And here comes the problem, The new renewed certificate only works in xcode versions of 11.4.1 or newer. And, I have an older version of xcode.
When I updated my xcode to latest version - 12.4 (I had to go through making space on my machine, updating macos and all) The problem went away. All my developer certificates on Keychain access are now showing valid. And, I could see two AWDRI certificates on my Keychain access one expiring on 2023 and another one in 2030.
Description from the link I shared:
The current Apple Worldwide Developer Relations Certification Intermediate Certificate (intermediate certificate) is set to expire on February 7, 2023. The renewed certificate will be used to sign new software signing certificates issued after January 28, 2021 for the Apple Developer Programs. Remaining service certificates will be updated in the future and this page will be updated to reflect additional certificate changes.
And more...
This requirement also impacts all software signing certificates generated after January 28, 2021, by developers with Personal accounts in Xcode, as well as members of the Apple Developer Program, Apple Developer Enterprise Program, and iOS University Developer Program.
The new Apple Worldwide Developer Relations Intermediate Certificate is downloaded automatically by Xcode 11.4.1 or later and is available for download on the Certificate Authority page. Confirm that the correct intermediate certificate is installed by verifying that the expiration date is set to 2030.
Also they are mentioning about an issue with older versions:
Xcode 11.4.0 and earlier may not be able to sign software using signing certificates issued by the new Apple Worldwide Developer Relations Certification Intermediate Certificate. If you’re unable to upgrade to a supporting version of macOS or Xcode on your build machine, you can build and archive your app using an earlier Xcode client and sign it for distribution using the latest release. Alternatively, you can utilize the codesign tool to sign your software using the command line.
I face this issue on Xcode 9.1
Scenario: I checked "Connect via Network" option for device. And trying to run app to this device with USB cable attached.
Fix: Simply remove USB cable and run.
I'have tried all the answers nothing worked for me,
The problem is coming form Xcode itself and has nothing to do with profiles and certificate :
Product > Scheme > Edit Scheme
In Run (Section) / info (tab) [select] the Release instead of debug as Build Configuration as follow :
It's a regression since Xcode 10.1
Config : Xcode Version 10.1 (10B61)
Iphone X / IOS 12.1.4
I had the same issue . Its a bug in Xcode 9.1. There is a trick to make it work for now. Lock your phone. Run the code. Xcode will ask to unlock the iPhone.
I just cleared the profiles with the Apple Configurator, restarted the iDevice and worked again as usual.
It's an intermittent bug in Xcode - I just stopped and started all my devices and it magically worked (after messing about for 1/2 hour)
I had upgraded MacOS overnight to 10.13.04 which obviously upset something!
Xcode 9.3, iOS 11.3 watchOS 4.3
Let me tell you a workaround which solves my problem:
Step 1: Windows > Devices and simulator.
Step 2: Unpair device.
Step 3: Reconnect device and trust.
Step 4: Run the application. BINGO.
For me this issue was related to a Manually installed Enterprise Certificate and having to use it for both development and release schemes. I had to trust the certificate on the device before it would allow the app to be launched, but it would never launch as I kept getting that denied message. Eventually, editing the scheme and setting it to wait for the app to be attached before debugging did the trick.
Open the App Groups in Capabilities, wait App... effective,then close the App Groups, it worked:
After seeing all the solutions given across web, i finally found one and here are those:
Error occurs because of it makes Runner confused about what profile to use.
You will most often get this error, when you have added new account in profile in Xcode > Targets > Signing.
You can remove this error by just using before one Profile.
There is no need to create New Users.
or you can sign in with account you are using in Profile in your iPhone (i did this!)
Happy Days :)
In case this problem occurred for you a couple of days before today, 2019-Mar-20, it is very likely related to the fact that faulty code signing certificates were issued. In that case you should be able to resolve it by just recreating the code signing certificate. This SO question already has an answer that explains you how to do so.
I'm not sure whether it's a fix, or just another workaround, but uninstalling the application from my device helped. I'm still not sure what caused it, but #MrRogers answer helped me figure it out.
For me the issue came-up because, I was using the Distribution Provisioning Profile to debug.
We cannot debug with Distribution Provisioning Profile, changing it to Development Provisioning Profile fixed the issue.
Steps: (Xcode 11.2.1)
Select Project, Under TARGETS, select the correct target.
Switch to Signing & Capabilities
Under Singing section, change the Provisioning Profile to Development profile or you can just check Automatically manage signing
None of the other answered worked -
Xcode 11+
Click Edit Scheme on the top Navigator Tab.
Launch option choose Wait for executable to be launched
You will have to run the application on your device manually but that will keep the debugger attached as for some of the other solutions debugger get detached.
Today,I also meet this question.This is my way to solve.
Xcode 9.0,iPhone 6s,Automatically manage signing with my account.
When I select "iPhone 6s",I found that there is an logo after the iPhone 6s
It's the new function of Xcode 9.0 that can run an app on the iPhone without a string connect computer(iPhone and Mac must connect the same Network).
So, I try to change this kind of connect way.
Open "Devices and Simulators"-> unselect "Connect via network"
And then, I clean, rebuild and run my project.It works!
I will be happy if this method can help you.

Xcode 10 - iPhone has denied request to launch

I'm running Xcode 10 and iOS 12.1 on my iPhone 6S Plus. The app works when running in simulator, but when running my app in Xcode with my phone connected, i get this error:
iPhone has denied the launch request.
My iPhone is a trusted device on my mac, and i have my signing certificate. I've spent hours googling for a solution but none of them are working for me.
Anyone have any ideas?
I was also facing similar issue.
What work for me is to change the trust to "Use System Defaults" (Previously it was always ask) in "Apple worldwide developer relation certificate authority" in keychain.
My solution worked: Menu Xcode - Product - Scheme - Edit scheme - Build Configuration -> [Release] (instead of Debug) + Debug executable -> [remove the cross]
I have faced the same issue when I run the build-in ad hoc profile and I have fixed it by unchecking the " Debug executable " option from the Product -> Scheme -> Edit Scheme.
Try upgrading from XCode 10 to XCode 10.1. The SDKs for iOS 12.1 were added in XCode 10.1, so XCode might be having trouble communicating with your device because it's on a higher OS version than it understands.
Select the Project> Target > Build Settings. Search PROVISIONING_PROFILE and remove whatever is there. Then run.
Check you certificate in keychain if its double delete one of them > Quit XCODE > Clean > Build again ( This work to me )
edit scheme > uncheck debug executable.....this works but make you lose debug capabilities.
what is really worked for me without losing the debug capabilities is doing the following
open keychain
search for iphone developer certificate
delete it (Xcode will create another one for you)
relaunch the app Xcode will ask for your computer password type it and you are done
i found this answer thanks to Tommy Callaway on youtube
video link
The solution for me was to delete ALL my apple dev certs locally, then approve them during the next build process.
But def make sure you've set the provisioning profile for your project, that's a classic..
Keychain Access
On my device, I went to Settings -> General -> Profiles & Device Management. I then tapped on the 'developer app entry' which displayed my personal development team. On the next screen I chose to trust apps from this developer (me).
In project , open your project's TARGETS.
1.Check your Provisioning Profile whether is match Signing certificate
2.In debug their are develope profile and certificate,and in release their are distribution profile and certificate
3.[enter link description here][1]if you don't determine, there is a easy way to help you,xcode offer the Automatically manage signing ,just in xocode tick this option.look this here
This will help: iPhone has denied the launch request

Device Management is missing in ios settings

I am trying to build my project in Xcode and its working great but at the end Im getting an alert saying :
Verify the Developer App certificate for your account is trusted on your device. Open Settings on Artium's iphone and navigate to General -> Device Management, then select your Developer App certificate to trust it.
and when Im going through the setting the Device Management option is missing.
Note that it happend after I deleted the project from my phone and rebuild it.
I checked through preferences and I am logged in to my profile in Xcode.
yup... I had exactly the same issue just now...
you can fix it by removing the profile from xcode.. just go to window -> devices -> right click on the device and click -> show provisioning profiles -> remove all profiles.
The profiles will be recreated again when you run the app again on your phone...
It worked for me (XCode 10) when I did the following 2 things:
I disconnected the iPhone, then went into Settings -> General -> Reset -> Reset Location & Privacy. Then I reconnected and clicked "Trust this device" on both the Mac and the iPhone (i.e. the popups that come up when the iPhone is reconnected).
Reinstalled the app I had originally manually deleted from the iPhone.
I ran into this same problem today. It appears to be an Apple bug that occurs when you manually delete all apps on your device attached to the same developer account.
An easy work around is to create a completely new Hello World app and deploy it to your device. When the "Developer App certificate" message pops up then you can proceed to settings and trust your account again and Viola! Your other apps will start working again.
what worked for me!
Disconnect your mobile from your mac and then visit
Settings -> General > Profiles & Device management
option is available for me. But when I connect mobile with Xcode for testing its not there
I saw it was there (Settings -> General) after I disconnected my iPhone from the computer. I didn't do anything!
I downloaded the profile using Firefox and it never worked. When I download using Safari, the option started showing up. It seems the phone is not scanning the Firefox downloads folder for profiles.
I am using iphone 8, it is running the ios version 14.2. I can install my react native ios app successfully, although the app will not open or launch after installation. my iphone device did not have the Profile and Device Management link under Settings.
I installed the profile patch from https://www.beta.apple.com/profile or you can follow this youtube video: https://www.youtube.com/watch?v=M0DwtJlP-AQ.
I then i connected the phone device again to the mac with my usb cable. building and running the app again from xcode 12, i faced the same issue.
However with my device connected and the app installed( although the app could not be launched ), i go to settings > General > Profile and Device Management is now visible and i can enable the trust setting. Go back and open the app the again and it will launch just fine.

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.

Xcode "Could not launch". Only reports "Security" as error

I've edited the app name out. Other than that the dialog is exactly like this.
I'm developing an enterprise app and I've tried restarting xcode and the iPhone I'm developing on.
No change. Anyone encountered this? Are there any log posts that could point me in the right direction or get me more details. There is nothing in the regular log from what I can see.
Update
Found this in the device log:
<Warning>: Unable to launch com.bundleID.etc because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
Which is a bit weird since it worked yesterday and all profiles etc. were issued a week ago.
Apparently after upgrading the OS and such you must manually launch the app on the device and say that you trust the developer of the software.
That error message disappeared now.
Using xcode 7 with an iOS device running version 9.2, I had to:
Open 'Settings'
Tap 'General'
Tap 'Device Management'
Tap 'Developer App' that's in the list
Tap 'Trust (developer name)'
Tap 'Trust' in the popup
The app should load and launch when you run xcode.
I had the problem of not having the app on my device, so I couldn't manually launch it to accept the prompt. For me, I got this to work after deleting all expired provisioning profiles from my device, which forced Xcode to install a new one.
After this, I was able to get my app to run.
I just got this issue running on an iOS 8 device for the first time as it required me to launch manually on the device (it copies it fine but doesn't launch it) and then state that I trust the developer.
I had the same issue solved like this:
It can be happen because your developer profile is not assigned as TRUSTED in your phone or watchos settings.
You can set your profile as TRUSTED as below:
Go to Settings,
Profile
Assign your profile as Trusted there.
If you sign the app with Enterprise provisioning you will get this error. It will still install the app on your phone, but apparently you cannot debug an app signed this way. You must either sign the app with Developer provisioning or manually launch the app in the phone.
Choose Window->Devices.
Right click on the device in left column, choose "Show Provisioning Profiles".
Click on the provisioning profile in question.
Press the "-" button Continue to removing all affected profiles.
Re-install the app.
To fix the process launch failed: Security issue, tap the app icon on your iOS device after running the app via Xcode.
Be sure to tap the app icon while the Xcode alert is still shown. Otherwise the app will not run.
Run the app via Xcode. You will see the security alert below. Do not press OK.
On your iOS device, tap the newly installed app icon:
After tapping the icon, you should now see an alert asking you to "Trust" the Untrusted App Developer. After doing so the app will immediately run, unconnected to the Xcode debugger.
If you do not see this "Trust" alert, you likely pressed "OK" in Xcode too soon. Do not press "OK" on the Xcode alert until after trusting the developer.
Finally, go back and press "OK" on the Xcode alert. You will have to re-run the app to connect the running app on your iOS device to the Xcode debugger.
Happened to me when my iPhone was in offline mode. Giving it access to the Internet fixed the problem.
I had the same problem as above and resolved it by changing the code signing identity to iOS Developer
(I had tried all of the other steps above first)
I can now run the app in xcode and see debug output
My solution was, use Internet on your phone cause the app must verify the email, then build again, this time will show a popup in which you can press trust and now everything works fine.
Side note: I'am developing with Flutter

Resources