Provisioning profile doesn't include the application-identifier and keychain-access-groups...

Find all subarray with sum equal to number?

Why does the Sun have different day lengths, but not the gas giants?

Shouldn’t conservatives embrace universal basic income?

What is the highest possible scrabble score for placing a single tile

How much character growth crosses the line into breaking the character

Why did the EU agree to delay the Brexit deadline?

Yosemite Fire Rings - What to Expect?

PTIJ: Haman's bad computer

Quoting Keynes in a lecture

Probability that THHT occurs in a sequence of 10 coin tosses

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

What to do if you miss a job interview (deliberately)?

Is there any evidence that Cleopatra and Caesarion considered fleeing to India to escape the Romans?

How to align my equation to left?

How should I address a possible mistake to co-authors in a submitted paper

Does the UK parliament need to pass secondary legislation to accept the Article 50 extension

How to cover method return statement in Apex Class?

Dative vs Accusative

Open a doc from terminal, but not by its name

Isn't the "if" redundant here?

The IT department bottlenecks progress, how should I handle this?

Junos[MX]: How to show VPLS instance associated with given subinterface

Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)



Provisioning profile doesn't include the application-identifier and keychain-access-groups entitlements


Automatic signing is unable to resolve an issue with the “Project” target's entitlementsXcode: Provisioning profile doesn't include the application-identifier and keychain-access-groups entitlementsUnity Xcode Build “Automatic signing is unable to resolve an issue”Xcode provisioning profile stopped working out of nowhereXcode 10: Provisioning Profile has get-task-allow false resulting in “iPhone has denied the launch request”Automatic signing is unable to resolve an issue with the “myapp” target's entitlementsXcode 10.1 iPhone has denied the launch requestAutomatic signing is unable to resolve an issue with the “test” target's entitlementsAutomatic signing is unable to resolve an issue with the “myProject” target's entitlementsAutomatic signing is unable to resolve an issue with the “AppName” target's entitlementsXcode 5: Code signing entitlement errorsEntitlements file do not match those specified in your provisioning profile.(0xE8008016)dyld: Library not loaded: @rpath/libswiftCore.dylibXcode 7.2 no matching provisioning profiles foundCode signing is required for product type 'Application' in SDK 'iOS 10.0' - StickerPackExtension requires a development team errorUnity Xcode Build “Automatic signing is unable to resolve an issue”Missing App Identifier and Access Keychain Groups on every machineAutomatic signing is unable to resolve an issue with the “myapp” target's entitlementsAutomatic signing is unable to resolve an issue with the “AppName” target's entitlementsAutomatic signing is unable to resolve an issue with the “test” target's entitlements













150















I've tried all the other questions and searched everything on this that I could already, a lot of the other questions involved existing apps that were being updated or people with developer accounts but this is like my second time using Xcode and it has worked before.



This just happened out of nowhere. I keep getting these two errors and it allows me to run simulators but not build onto my iPhone:




  1. Automatic signing is unable to resolve an issue with the "LearningSpriteKit" target's entitlements.
    Automatic signing can't add the application-identifier and keychain-access-groups entitlements to your provisioning profile. Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. Alternatively, to continue using automatic signing, remove these entitlements from your entitlements file and their associated functionality from your code.


  2. Provisioning profile "iOS Team Provisioning Profile: #####.LearningSpriteKit" doesn't include the application-identifier and keychain-access-groups entitlements.











share|improve this question














Post is related to a rapidly changing event.










  • 5





    Also experiencing this. Might be a global thing, asking other developers to confirm on ios-developers.slack.com

    – yeralin
    Mar 13 at 3:13






  • 5





    Same here! Cant run on an iphone. only emulator

    – Renan Aguiar
    Mar 13 at 3:51






  • 3





    Same here. Not a paid developer account.

    – T. Wei
    Mar 13 at 5:38






  • 3





    yes, I am also facing same issue. I think it also an issue with free account

    – Piyush
    Mar 13 at 10:02






  • 5





    Same problem, Paid Account

    – byemute
    Mar 13 at 14:53
















150















I've tried all the other questions and searched everything on this that I could already, a lot of the other questions involved existing apps that were being updated or people with developer accounts but this is like my second time using Xcode and it has worked before.



This just happened out of nowhere. I keep getting these two errors and it allows me to run simulators but not build onto my iPhone:




  1. Automatic signing is unable to resolve an issue with the "LearningSpriteKit" target's entitlements.
    Automatic signing can't add the application-identifier and keychain-access-groups entitlements to your provisioning profile. Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. Alternatively, to continue using automatic signing, remove these entitlements from your entitlements file and their associated functionality from your code.


  2. Provisioning profile "iOS Team Provisioning Profile: #####.LearningSpriteKit" doesn't include the application-identifier and keychain-access-groups entitlements.











share|improve this question














Post is related to a rapidly changing event.










  • 5





    Also experiencing this. Might be a global thing, asking other developers to confirm on ios-developers.slack.com

    – yeralin
    Mar 13 at 3:13






  • 5





    Same here! Cant run on an iphone. only emulator

    – Renan Aguiar
    Mar 13 at 3:51






  • 3





    Same here. Not a paid developer account.

    – T. Wei
    Mar 13 at 5:38






  • 3





    yes, I am also facing same issue. I think it also an issue with free account

    – Piyush
    Mar 13 at 10:02






  • 5





    Same problem, Paid Account

    – byemute
    Mar 13 at 14:53














150












150








150


97






I've tried all the other questions and searched everything on this that I could already, a lot of the other questions involved existing apps that were being updated or people with developer accounts but this is like my second time using Xcode and it has worked before.



This just happened out of nowhere. I keep getting these two errors and it allows me to run simulators but not build onto my iPhone:




  1. Automatic signing is unable to resolve an issue with the "LearningSpriteKit" target's entitlements.
    Automatic signing can't add the application-identifier and keychain-access-groups entitlements to your provisioning profile. Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. Alternatively, to continue using automatic signing, remove these entitlements from your entitlements file and their associated functionality from your code.


  2. Provisioning profile "iOS Team Provisioning Profile: #####.LearningSpriteKit" doesn't include the application-identifier and keychain-access-groups entitlements.











share|improve this question
















I've tried all the other questions and searched everything on this that I could already, a lot of the other questions involved existing apps that were being updated or people with developer accounts but this is like my second time using Xcode and it has worked before.



This just happened out of nowhere. I keep getting these two errors and it allows me to run simulators but not build onto my iPhone:




  1. Automatic signing is unable to resolve an issue with the "LearningSpriteKit" target's entitlements.
    Automatic signing can't add the application-identifier and keychain-access-groups entitlements to your provisioning profile. Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. Alternatively, to continue using automatic signing, remove these entitlements from your entitlements file and their associated functionality from your code.


  2. Provisioning profile "iOS Team Provisioning Profile: #####.LearningSpriteKit" doesn't include the application-identifier and keychain-access-groups entitlements.








ios xcode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 19 at 15:33









matt

332k46543741




332k46543741










asked Mar 13 at 0:27









Jack AJack A

5562311




5562311



Post is related to a rapidly changing event.




Post is related to a rapidly changing event.









  • 5





    Also experiencing this. Might be a global thing, asking other developers to confirm on ios-developers.slack.com

    – yeralin
    Mar 13 at 3:13






  • 5





    Same here! Cant run on an iphone. only emulator

    – Renan Aguiar
    Mar 13 at 3:51






  • 3





    Same here. Not a paid developer account.

    – T. Wei
    Mar 13 at 5:38






  • 3





    yes, I am also facing same issue. I think it also an issue with free account

    – Piyush
    Mar 13 at 10:02






  • 5





    Same problem, Paid Account

    – byemute
    Mar 13 at 14:53














  • 5





    Also experiencing this. Might be a global thing, asking other developers to confirm on ios-developers.slack.com

    – yeralin
    Mar 13 at 3:13






  • 5





    Same here! Cant run on an iphone. only emulator

    – Renan Aguiar
    Mar 13 at 3:51






  • 3





    Same here. Not a paid developer account.

    – T. Wei
    Mar 13 at 5:38






  • 3





    yes, I am also facing same issue. I think it also an issue with free account

    – Piyush
    Mar 13 at 10:02






  • 5





    Same problem, Paid Account

    – byemute
    Mar 13 at 14:53








5




5





Also experiencing this. Might be a global thing, asking other developers to confirm on ios-developers.slack.com

– yeralin
Mar 13 at 3:13





Also experiencing this. Might be a global thing, asking other developers to confirm on ios-developers.slack.com

– yeralin
Mar 13 at 3:13




5




5





Same here! Cant run on an iphone. only emulator

– Renan Aguiar
Mar 13 at 3:51





Same here! Cant run on an iphone. only emulator

– Renan Aguiar
Mar 13 at 3:51




3




3





Same here. Not a paid developer account.

– T. Wei
Mar 13 at 5:38





Same here. Not a paid developer account.

– T. Wei
Mar 13 at 5:38




3




3





yes, I am also facing same issue. I think it also an issue with free account

– Piyush
Mar 13 at 10:02





yes, I am also facing same issue. I think it also an issue with free account

– Piyush
Mar 13 at 10:02




5




5





Same problem, Paid Account

– byemute
Mar 13 at 14:53





Same problem, Paid Account

– byemute
Mar 13 at 14:53












15 Answers
15






active

oldest

votes


















39














This issue is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1534145



A representative from Apple estimated 558000 certificates to become invalidated: https://bugzilla.mozilla.org/show_bug.cgi?id=1533655



GoDaddy, Google, Apple and Facebook (that would explain why FB was glitchy today) are affected.



They are working on resolving the issue right now.



That would explain our problems, folks!



UPD: Issue has been resolved. Try to refresh your projects.






share|improve this answer





















  • 1





    Glad to hear Apple is dealing with this/has spoken out about the issue

    – Jake
    Mar 13 at 23:39






  • 1





    Invalidated certs don't explain why new ones Apple is issuing are missing the necessary entitlements.

    – David Gish
    Mar 14 at 0:01






  • 1





    @DavidGish from what I can gather from the report, they're actually not issuing any certificates at the moment. On 2019-03-7 they stopped issuance of TLS certs, unsure if or how that applies.

    – Bilfred
    Mar 14 at 0:30






  • 1





    Are there any updates to this? I feel like this should have highest priority. Any new ideas for workarounds?

    – Linus
    Mar 14 at 14:12








  • 7





    Right now I am not getting this error but instead I am getting "iPhone has denied the launch request".. any ideas?

    – bezoadam
    Mar 14 at 22:56



















15














Workaround: change Bundle Identifier and/or Version.






share|improve this answer





















  • 4





    Works here. If it doesn't, try disabling "Automatically manage signing," delete the offending provisioning profile, change Bundle Identifier, enable auto signing, then add your team.

    – Chase Patterson
    Mar 14 at 5:52











  • Does not work. It gives no errors or warnings, but the app refuses to launch on the device, like described here stackoverflow.com/questions/45421179/…

    – Fedorov7890
    Mar 14 at 8:24











  • What to write for Bundle Identifier and Version, please? I'm self-employed developer working at my own office. I wrote two a string and a number respectively for them and the sign errors are vanished, but I think can't run my app using the iOS kit (on Qt Creator)!

    – Franky
    Mar 14 at 14:27













  • @Fedorov7890 To get the app launching on the device, you need to disable the debug executable checkbox in the scheme as explained in this comment iPhone has denied the launch request. This work around works for me after removing my dev account, cleaning up ~/Library/MobileDevice/Provisioning Profiles and changing the bundle identifier.

    – david
    Mar 14 at 15:56













  • @david Thank you, I've already found an alternative solution without disable debug executable, stackoverflow.com/a/55160300/3824328

    – Fedorov7890
    Mar 14 at 16:00



















11














I restored a profile from Time Machine when this was working and upon launch, Xcode immediately deletes and replaces it with a new one. The key difference seems to be the old profile has the get-task-allow entitlement while the new one has NO entitlements. This is definitely broken at Apple's end.



Edit: The entitlements should also include a keychain access group, but again, no entitlements at all. Should look like:



Good entitlements






share|improve this answer

































    10














    Seems Apple broke the automatic signing system.
    I was playing around with a few projects and Xcode just fetches the incorrect profile



    This worked for me:




    1. Turn off "Automatically manage signing" in project target

    2. Go to ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

    3. Remove previously downloaded profiles

    4. Turn on "Automatically manage signing" again






    share|improve this answer





















    • 12





      For me that does not work. Also I think you mean ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

      – Fedorov7890
      Mar 13 at 13:09








    • 1





      @Fedorov7890 Yep, corrected. What message do you see?

      – Oleh Zayats
      Mar 13 at 18:30






    • 1





      Remark: looks like it works for projects created yesterday and earlier, but not for today's project

      – Fedorov7890
      Mar 13 at 19:04






    • 2





      Didn't work for me, even for old projects.

      – Chase Patterson
      Mar 13 at 21:30






    • 2





      Tired that, not working.

      – N. Der
      Mar 13 at 23:02



















    8














    This issue has been resolved BUT some people still have problem with it. If you're one of them, try the following:



    1. In the General tab of target settings - uncheck the Automatically manage signing option



    2. Close Xcode (fully, not just your project)



    3. Erase .mobileprovision files under ~/Library/MobileDevice/Provisioning Profiles/



    4. In Keychain Access, delete the following:




    • iPhone Developer: youremail@email.com

    • Developer ID Certification Authority

    • Apple Worldwide Developer Relations Certification Authority 3.


    5. Delete the app on your iOS devices



    6. Restart your Mac and iOS devices



    7. Open Xcode again



    8. Change the Bundle Identifier (even if its a single character, you'd change it back to the original after you get it going)



    9. Check the Automatically manage signing option



    10. Use USB to connect your iPhone/iPad.



    11. Make sure you trust your certificate on your iOS devices



    This should do work for you.






    share|improve this answer


























    • Thx a lot, this was the very first thing that worked for me

      – ShadowLightz
      2 days ago











    • Did it solve the 'iPhone has denied the launch request' problem for you?

      – Fedorov7890
      2 days ago











    • @Fedorov7890 it did for me and I assume for ShadowLightz

      – Bold Lion
      2 days ago











    • Yeah! I tried and confirm it works!

      – Fedorov7890
      2 days ago



















    8














    UPDATE: This solution still works as on 2019/Mar/20 7:00 UTC+0

    SOLUTION: no XCode reinstallation required. I used a brand new free AppleId, but later checked with my old AppleID and it also works.




    1. In XCode, under the General tab, untick the Automatically manage signing option

    2. Close XCode.


    3. Erase old profiles in ~/Library/MobileDevice/Provisioning Profiles :



      cd ~/Library/MobileDevice/Provisioning Profiles



      rm -rf *




    4. On MacOS, run Launchpad->Other->Keychain Access and remove all certificates related to iPhone development, like the following four on the picture:




      • Apple Worldwide Developer Relations Certification Authority

      • Developer ID Certification Authority

      • iPhone Developer: your_name_or_email




    Remove certificates




    1. Uninstall old app on iPhone, restart both iPhone and Mac

    2. Open XCode and change the Bundle Identifier of your app, at least one character (later you may revert this change)

    3. Enable the Automatically manage signing option in XCode.


    After this you should be able to run and debug your app on your device.



    If you have a “iPhone has denied the launch request” problem, the solution is https://stackoverflow.com/a/54990369/3824328.
    In short, you need in XCode to go to menu Product->Scheme->Edit Scheme... and select Executable: ask on launch






    share|improve this answer


























    • for denied lunch if i remove the debugger option, i cant debug while using the device. only simulator

      – Renan Aguiar
      Mar 14 at 15:42











    • @RenanAguiar you don't need to remove debugger option, just change 'Executable' from the drop-down list to "ask on launch". See link in my post that shows how to do that in pictures.

      – Fedorov7890
      Mar 14 at 15:54











    • when i do that, same thing happens. i cant see the debugger icons like step and location. only on the simulator

      – Renan Aguiar
      Mar 14 at 16:19











    • now i always get unable to launch...

      – Renan Aguiar
      Mar 14 at 16:34











    • It looks like debugger is not fully functional. I can get console output from device, but breakpoints don't work; neither do step over / step into commands

      – Fedorov7890
      Mar 14 at 17:36



















    8














    EDIT




    As per latest update Apple successfully resolved Automatically Code
    Sign with Free Account
    issue.



    I tried it and I can confirm its resolved.



    Please try at your end.




    I am also facing the same issue while I am creating a new Profile from XCode and if I go to other projects and check over there also I am facing the same issue as below.



    enter image description here



    Due to this issue none of my project able to build with old profile & certificate.



    The strange issue so I checked newly created Profile and compare with old one and I found that App ID is unknown as well as there are no Entitlement details in newly created profile.



    Check below screenshots of Old and New profile comparison:



    Old Profile:



    enter image description here



    New Profile:



    enter image description here



    So means it's not able to set App Id and Entitlements in the new profile. Which will result to not work all old profile and giving the same error in all projects.



    Issue Workaround:



    Step1: Go to Provisioning Profile folder (path: ~⁨Library⁩ ▸ ⁨MobileDevice⁩ ▸ ⁨Provisioning Profiles⁩).



    or use a shortcut to jump directly into this folder like CMD + SHIFT + G and enter ~/Library/MobileDevice/Provisioning Profiles it will redirect your finder directly on Provisioning Profiles folder.



    Step2: Short folder by Date Modified.



    Step3: Check profile with Unknown App Id and delete all unknown profile.



    Step4: Come back on XCode and check all old project will work as expected.




    Note: Make sure new app which causing this problem keep that project
    closed otherwise it will create a new profile with Unknown App Id.




    Hope this will helps and apple will solve this bug soon!






    share|improve this answer


























    • Where is that ~Library path, please?

      – Franky
      Mar 13 at 20:39











    • @Franky ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles. Although this fix does not work for me (and others, as seen in other answers). Your mileage may vary.

      – Bilfred
      Mar 13 at 21:52











    • @Bilfred My macOS X is Sierra 10.13.6 and there isn't such a path in ~Library!

      – Franky
      Mar 13 at 21:58








    • 1





      @Franky Use shortcut CMD+SHIFT+G (go to directly on folder) and enter ~/Library/MobileDevice/Provisioning Profiles this path you will directly jump to that location and delete profile with unknown appid.

      – CodeChanger
      Mar 14 at 5:03








    • 1





      yes delete that file and one more thing try again apple resolved above mention issue.

      – CodeChanger
      Mar 14 at 8:48



















    6














    It seems that this problem has been resolved now and the personal accounts can resign their apps automatically again.



    Regarding to @Paul answer, it is not related to uninstalling Xcode. Its is fixed from server side.



    The only thing that is required is removing Apple Developer Certificate (for the personal account) from your keychain, so that Xcode retry to generate and download new one.






    share|improve this answer
























    • Still can not install on the device. Even with new free appleid and certificate

      – Fedorov7890
      Mar 14 at 8:57











    • Did you removed all certificates?

      – Husein Behboodi Rad
      Mar 14 at 9:03











    • Yes I did, besides I purged ~/Library/MobileDevice/Provisioning Profiles and ~/Library/Developer/Xcode/DerivedData and restarted iPhone

      – Fedorov7890
      Mar 14 at 9:05













    • Finally it works with this workaround stackoverflow.com/a/54990369/3824328

      – Fedorov7890
      Mar 14 at 10:27






    • 1





      @Franky stackoverflow.com/a/55160300/3824328

      – Fedorov7890
      Mar 14 at 15:36



















    5














    Here is the solution:




    1. let xCode be open.


    2. select your developer account and let the error appears again.


    3. Go to keychain App



    4.a) Goto certificate section



    4.b) remove All (valid and invalids) certificates ( I have 3 valid and many invalid!)



    remove certificates




    1. After removing the last certificate, mac os will recreate a new certificate for the active developer account automatically


    2. Run your app in your iDevice. You need to enter your system password to add newly created certificate into the Keychain.



    If in second run it says




    Your iPhone has denied the launch request




    just goto:



    Product > scheme > edit scheme: uncheck "debug executable"



    I hope it solves your problem.






    share|improve this answer





















    • 3





      it doesnt! i cant debug or use location on the device

      – Renan Aguiar
      Mar 14 at 21:40











    • Hi, thanks. How to go to "keychain App" please? What path?

      – Franky
      Mar 15 at 0:35













    • You've probably found it by now, but the Keychain Access app is in Applications->Utilities

      – David Gish
      Mar 15 at 5:00











    • i still cant debug using iphone with those answers

      – Renan Aguiar
      Mar 15 at 15:26



















    4














    Maybe this might help? Apple Developer Forums



    Talks about Apple refusing to build iOS applications under SDK 12 as of March 2019 (OP from Dec 2018).



    I've not yet tried this but it may be linked to the issue, I have a free developer account and am also experiencing this bug.



    Here's a screenshot incase the link changes (screenshot 1 below).



    Edit: this is the link from the first screenshot (screenshot 2 below)




    1sdk_12_issue



    2iphone_xs_max_support_image







    share|improve this answer



















    • 1





      Interesting, but we have XCode 10.1 showing this problem and 10.1 does support SDK 12.

      – Ali Beadle
      Mar 13 at 19:34











    • Okay sure thing, I've managed to get a temp workaround by cleaning the project in Xcode and only running in debug via my IDE (I'm using VSC) through a simulator.

      – Jake
      Mar 13 at 19:38






    • 4





      As the OP said, simulators seem unaffected by the problem. It appears to only affect real devices.

      – Ali Beadle
      Mar 13 at 20:07






    • 3





      Yeah I haven't been able to load on a physical device. Hope Apple fixes this soon.

      – Jake
      Mar 13 at 21:54



















    3














    I am finally able to deploy to our iOS devices again. Here are the steps I took to make it work.



    First, I followed all 10 steps in Zameer's answer here. I have copied them below:





    1. Open your project in XCode.

    2. Select your project from the project navigator and then select your target from the column.

    3. Click on the General tab and under the Signing section, make sure "Automatically manage signing" is enabled.

    4. Click on the Capabilities tab and turn On both the "App Groups" and "Keychain Sharing" settings. This might raise an
      "Automatic signing failed" popup error, just click cancel to make it go away.

    5. This should generate a entitlements file for you named nameProject.entitlements in the project folder of your project navigator.

    6. Move this entitlements file outside of the folder, just below your project file.

    7. Select your target again and return to the Capabilities tab to turn Off both the "App Groups" and "Keychain Sharing"
      settings. This again might raise an "Automatic signing failed" popup
      error, just click cancel to make it go away.

    8. Now select your project above the target and go to Building Settings tab.

    9. Scroll down to the Code Signing Identity setting under the Signing header and select iOS Developer from each drop down.

    10. Under the above Signing header, double click the text field beside the Code Signing Entitlements and enter the name of your
      entitlements file, nameProject.entitlements.




    After completing those 10 steps, the 2 red entitlement error messages in XCode went away and I was able to build and deploy the XCode test app to the iPhone and run it.



    Although that XCode test app could build and deploy, I develop on a PC using Xamarin and I was unable to deploy my Xamarin.iOS application to my iOS devices and kept getting an error in Visual Studio: the executable was signed with invalid entitlements. I did the following things and now I can deploy my Xamarin app and run it on my iOS devices:




    1. I deleted the provisioning profile from the Mac in the ~/Library/MobileDevice/Provisioning Profiles directory. XCode immediately generated a new provisioining profile (I'm not sure if this step was necessary but I'm just writing it because that's what I did).

    2. I changed my Xamarin.iOS.csproj file and removed Entitlements.plist from the CodesignEntitlements element so it now just looks like <CodesignEntitlements></CodesignEntitlements>. Visual Studio automatically added two elements to the same propertygroup in the project which are probably not necessary but I thought I'd mention: <CodesignExtraArgs /> and <CodesignResourceRules />.






    share|improve this answer































      2














      For me, it finally works again. Either they just fixed it or any of my other steps helped:




      1. Uninstall Xcode and all related files (using AppCleaner)

      2. Install Xcode via the App Store

      3. Change the Bundle Identifier of the App

      4. Remove all "iOS Developer" Keys from Keychain






      share|improve this answer
























      • This fixed the problem for me at first, but then it came back again a few minutes later

        – Ava
        Mar 14 at 13:46



















      1














      Here is a temporary workaround





      1. Change Bundle Identifier : Target > General > Identity > Bundle Identifier (Set this to a different value than it is right now)


      2. Change Version : Target > General > Identity > Version


      3. Disable debug executable : Product > Scheme > Edit Scheme, (Uncheck the box that says "debug executable")


      4. Delete Provisioning Profiles: ~/Library/MobileDevice/Provisioning Profiles delete everything in this folder


      You now should be able to build and run projects on simulators and devices.






      share|improve this answer
























      • now i get it: Unable to launch /private/var/containers/Bundle/Application/52553D96-4B6A-4680-B77C-C04895B7759C/dois.app

        – Renan Aguiar
        Mar 16 at 9:35



















      1














      One other potential source of this error. If you do not have a valid signed development certificate setup within your Xcode environment it will throw similar errors as posted by OP.



      you can check out your development certs status following the apple link here






      share|improve this answer


























      • i use the free account.. by following whatever people say, now i get a error about waiting 7 days..... im not going to pay for testing it on my device.

        – Renan Aguiar
        Mar 19 at 1:47



















      1














      I got it to work by doing the following steps:




      1. Go to xCode

      2. Preferences

      3. Accounts

      4. Manage certificates

      5. Plus sign

      6. iOS Development

      7. Done

      8. Download manual Profiles

      9. Close

      10. Go to your target

      11. Change development team to none

      12. Change development team to your previous team

      13. Enjoy!






      share|improve this answer






















        protected by Bhargav Rao Mar 13 at 5:58



        Thank you for your interest in this question.
        Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



        Would you like to answer one of these unanswered questions instead?














        15 Answers
        15






        active

        oldest

        votes








        15 Answers
        15






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        39














        This issue is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1534145



        A representative from Apple estimated 558000 certificates to become invalidated: https://bugzilla.mozilla.org/show_bug.cgi?id=1533655



        GoDaddy, Google, Apple and Facebook (that would explain why FB was glitchy today) are affected.



        They are working on resolving the issue right now.



        That would explain our problems, folks!



        UPD: Issue has been resolved. Try to refresh your projects.






        share|improve this answer





















        • 1





          Glad to hear Apple is dealing with this/has spoken out about the issue

          – Jake
          Mar 13 at 23:39






        • 1





          Invalidated certs don't explain why new ones Apple is issuing are missing the necessary entitlements.

          – David Gish
          Mar 14 at 0:01






        • 1





          @DavidGish from what I can gather from the report, they're actually not issuing any certificates at the moment. On 2019-03-7 they stopped issuance of TLS certs, unsure if or how that applies.

          – Bilfred
          Mar 14 at 0:30






        • 1





          Are there any updates to this? I feel like this should have highest priority. Any new ideas for workarounds?

          – Linus
          Mar 14 at 14:12








        • 7





          Right now I am not getting this error but instead I am getting "iPhone has denied the launch request".. any ideas?

          – bezoadam
          Mar 14 at 22:56
















        39














        This issue is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1534145



        A representative from Apple estimated 558000 certificates to become invalidated: https://bugzilla.mozilla.org/show_bug.cgi?id=1533655



        GoDaddy, Google, Apple and Facebook (that would explain why FB was glitchy today) are affected.



        They are working on resolving the issue right now.



        That would explain our problems, folks!



        UPD: Issue has been resolved. Try to refresh your projects.






        share|improve this answer





















        • 1





          Glad to hear Apple is dealing with this/has spoken out about the issue

          – Jake
          Mar 13 at 23:39






        • 1





          Invalidated certs don't explain why new ones Apple is issuing are missing the necessary entitlements.

          – David Gish
          Mar 14 at 0:01






        • 1





          @DavidGish from what I can gather from the report, they're actually not issuing any certificates at the moment. On 2019-03-7 they stopped issuance of TLS certs, unsure if or how that applies.

          – Bilfred
          Mar 14 at 0:30






        • 1





          Are there any updates to this? I feel like this should have highest priority. Any new ideas for workarounds?

          – Linus
          Mar 14 at 14:12








        • 7





          Right now I am not getting this error but instead I am getting "iPhone has denied the launch request".. any ideas?

          – bezoadam
          Mar 14 at 22:56














        39












        39








        39







        This issue is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1534145



        A representative from Apple estimated 558000 certificates to become invalidated: https://bugzilla.mozilla.org/show_bug.cgi?id=1533655



        GoDaddy, Google, Apple and Facebook (that would explain why FB was glitchy today) are affected.



        They are working on resolving the issue right now.



        That would explain our problems, folks!



        UPD: Issue has been resolved. Try to refresh your projects.






        share|improve this answer















        This issue is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1534145



        A representative from Apple estimated 558000 certificates to become invalidated: https://bugzilla.mozilla.org/show_bug.cgi?id=1533655



        GoDaddy, Google, Apple and Facebook (that would explain why FB was glitchy today) are affected.



        They are working on resolving the issue right now.



        That would explain our problems, folks!



        UPD: Issue has been resolved. Try to refresh your projects.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 15 at 19:45

























        answered Mar 13 at 23:35









        yeralinyeralin

        618615




        618615








        • 1





          Glad to hear Apple is dealing with this/has spoken out about the issue

          – Jake
          Mar 13 at 23:39






        • 1





          Invalidated certs don't explain why new ones Apple is issuing are missing the necessary entitlements.

          – David Gish
          Mar 14 at 0:01






        • 1





          @DavidGish from what I can gather from the report, they're actually not issuing any certificates at the moment. On 2019-03-7 they stopped issuance of TLS certs, unsure if or how that applies.

          – Bilfred
          Mar 14 at 0:30






        • 1





          Are there any updates to this? I feel like this should have highest priority. Any new ideas for workarounds?

          – Linus
          Mar 14 at 14:12








        • 7





          Right now I am not getting this error but instead I am getting "iPhone has denied the launch request".. any ideas?

          – bezoadam
          Mar 14 at 22:56














        • 1





          Glad to hear Apple is dealing with this/has spoken out about the issue

          – Jake
          Mar 13 at 23:39






        • 1





          Invalidated certs don't explain why new ones Apple is issuing are missing the necessary entitlements.

          – David Gish
          Mar 14 at 0:01






        • 1





          @DavidGish from what I can gather from the report, they're actually not issuing any certificates at the moment. On 2019-03-7 they stopped issuance of TLS certs, unsure if or how that applies.

          – Bilfred
          Mar 14 at 0:30






        • 1





          Are there any updates to this? I feel like this should have highest priority. Any new ideas for workarounds?

          – Linus
          Mar 14 at 14:12








        • 7





          Right now I am not getting this error but instead I am getting "iPhone has denied the launch request".. any ideas?

          – bezoadam
          Mar 14 at 22:56








        1




        1





        Glad to hear Apple is dealing with this/has spoken out about the issue

        – Jake
        Mar 13 at 23:39





        Glad to hear Apple is dealing with this/has spoken out about the issue

        – Jake
        Mar 13 at 23:39




        1




        1





        Invalidated certs don't explain why new ones Apple is issuing are missing the necessary entitlements.

        – David Gish
        Mar 14 at 0:01





        Invalidated certs don't explain why new ones Apple is issuing are missing the necessary entitlements.

        – David Gish
        Mar 14 at 0:01




        1




        1





        @DavidGish from what I can gather from the report, they're actually not issuing any certificates at the moment. On 2019-03-7 they stopped issuance of TLS certs, unsure if or how that applies.

        – Bilfred
        Mar 14 at 0:30





        @DavidGish from what I can gather from the report, they're actually not issuing any certificates at the moment. On 2019-03-7 they stopped issuance of TLS certs, unsure if or how that applies.

        – Bilfred
        Mar 14 at 0:30




        1




        1





        Are there any updates to this? I feel like this should have highest priority. Any new ideas for workarounds?

        – Linus
        Mar 14 at 14:12







        Are there any updates to this? I feel like this should have highest priority. Any new ideas for workarounds?

        – Linus
        Mar 14 at 14:12






        7




        7





        Right now I am not getting this error but instead I am getting "iPhone has denied the launch request".. any ideas?

        – bezoadam
        Mar 14 at 22:56





        Right now I am not getting this error but instead I am getting "iPhone has denied the launch request".. any ideas?

        – bezoadam
        Mar 14 at 22:56













        15














        Workaround: change Bundle Identifier and/or Version.






        share|improve this answer





















        • 4





          Works here. If it doesn't, try disabling "Automatically manage signing," delete the offending provisioning profile, change Bundle Identifier, enable auto signing, then add your team.

          – Chase Patterson
          Mar 14 at 5:52











        • Does not work. It gives no errors or warnings, but the app refuses to launch on the device, like described here stackoverflow.com/questions/45421179/…

          – Fedorov7890
          Mar 14 at 8:24











        • What to write for Bundle Identifier and Version, please? I'm self-employed developer working at my own office. I wrote two a string and a number respectively for them and the sign errors are vanished, but I think can't run my app using the iOS kit (on Qt Creator)!

          – Franky
          Mar 14 at 14:27













        • @Fedorov7890 To get the app launching on the device, you need to disable the debug executable checkbox in the scheme as explained in this comment iPhone has denied the launch request. This work around works for me after removing my dev account, cleaning up ~/Library/MobileDevice/Provisioning Profiles and changing the bundle identifier.

          – david
          Mar 14 at 15:56













        • @david Thank you, I've already found an alternative solution without disable debug executable, stackoverflow.com/a/55160300/3824328

          – Fedorov7890
          Mar 14 at 16:00
















        15














        Workaround: change Bundle Identifier and/or Version.






        share|improve this answer





















        • 4





          Works here. If it doesn't, try disabling "Automatically manage signing," delete the offending provisioning profile, change Bundle Identifier, enable auto signing, then add your team.

          – Chase Patterson
          Mar 14 at 5:52











        • Does not work. It gives no errors or warnings, but the app refuses to launch on the device, like described here stackoverflow.com/questions/45421179/…

          – Fedorov7890
          Mar 14 at 8:24











        • What to write for Bundle Identifier and Version, please? I'm self-employed developer working at my own office. I wrote two a string and a number respectively for them and the sign errors are vanished, but I think can't run my app using the iOS kit (on Qt Creator)!

          – Franky
          Mar 14 at 14:27













        • @Fedorov7890 To get the app launching on the device, you need to disable the debug executable checkbox in the scheme as explained in this comment iPhone has denied the launch request. This work around works for me after removing my dev account, cleaning up ~/Library/MobileDevice/Provisioning Profiles and changing the bundle identifier.

          – david
          Mar 14 at 15:56













        • @david Thank you, I've already found an alternative solution without disable debug executable, stackoverflow.com/a/55160300/3824328

          – Fedorov7890
          Mar 14 at 16:00














        15












        15








        15







        Workaround: change Bundle Identifier and/or Version.






        share|improve this answer















        Workaround: change Bundle Identifier and/or Version.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 14 at 5:48









        sanmai

        10.4k74064




        10.4k74064










        answered Mar 14 at 3:25









        yyckingyycking

        409310




        409310








        • 4





          Works here. If it doesn't, try disabling "Automatically manage signing," delete the offending provisioning profile, change Bundle Identifier, enable auto signing, then add your team.

          – Chase Patterson
          Mar 14 at 5:52











        • Does not work. It gives no errors or warnings, but the app refuses to launch on the device, like described here stackoverflow.com/questions/45421179/…

          – Fedorov7890
          Mar 14 at 8:24











        • What to write for Bundle Identifier and Version, please? I'm self-employed developer working at my own office. I wrote two a string and a number respectively for them and the sign errors are vanished, but I think can't run my app using the iOS kit (on Qt Creator)!

          – Franky
          Mar 14 at 14:27













        • @Fedorov7890 To get the app launching on the device, you need to disable the debug executable checkbox in the scheme as explained in this comment iPhone has denied the launch request. This work around works for me after removing my dev account, cleaning up ~/Library/MobileDevice/Provisioning Profiles and changing the bundle identifier.

          – david
          Mar 14 at 15:56













        • @david Thank you, I've already found an alternative solution without disable debug executable, stackoverflow.com/a/55160300/3824328

          – Fedorov7890
          Mar 14 at 16:00














        • 4





          Works here. If it doesn't, try disabling "Automatically manage signing," delete the offending provisioning profile, change Bundle Identifier, enable auto signing, then add your team.

          – Chase Patterson
          Mar 14 at 5:52











        • Does not work. It gives no errors or warnings, but the app refuses to launch on the device, like described here stackoverflow.com/questions/45421179/…

          – Fedorov7890
          Mar 14 at 8:24











        • What to write for Bundle Identifier and Version, please? I'm self-employed developer working at my own office. I wrote two a string and a number respectively for them and the sign errors are vanished, but I think can't run my app using the iOS kit (on Qt Creator)!

          – Franky
          Mar 14 at 14:27













        • @Fedorov7890 To get the app launching on the device, you need to disable the debug executable checkbox in the scheme as explained in this comment iPhone has denied the launch request. This work around works for me after removing my dev account, cleaning up ~/Library/MobileDevice/Provisioning Profiles and changing the bundle identifier.

          – david
          Mar 14 at 15:56













        • @david Thank you, I've already found an alternative solution without disable debug executable, stackoverflow.com/a/55160300/3824328

          – Fedorov7890
          Mar 14 at 16:00








        4




        4





        Works here. If it doesn't, try disabling "Automatically manage signing," delete the offending provisioning profile, change Bundle Identifier, enable auto signing, then add your team.

        – Chase Patterson
        Mar 14 at 5:52





        Works here. If it doesn't, try disabling "Automatically manage signing," delete the offending provisioning profile, change Bundle Identifier, enable auto signing, then add your team.

        – Chase Patterson
        Mar 14 at 5:52













        Does not work. It gives no errors or warnings, but the app refuses to launch on the device, like described here stackoverflow.com/questions/45421179/…

        – Fedorov7890
        Mar 14 at 8:24





        Does not work. It gives no errors or warnings, but the app refuses to launch on the device, like described here stackoverflow.com/questions/45421179/…

        – Fedorov7890
        Mar 14 at 8:24













        What to write for Bundle Identifier and Version, please? I'm self-employed developer working at my own office. I wrote two a string and a number respectively for them and the sign errors are vanished, but I think can't run my app using the iOS kit (on Qt Creator)!

        – Franky
        Mar 14 at 14:27







        What to write for Bundle Identifier and Version, please? I'm self-employed developer working at my own office. I wrote two a string and a number respectively for them and the sign errors are vanished, but I think can't run my app using the iOS kit (on Qt Creator)!

        – Franky
        Mar 14 at 14:27















        @Fedorov7890 To get the app launching on the device, you need to disable the debug executable checkbox in the scheme as explained in this comment iPhone has denied the launch request. This work around works for me after removing my dev account, cleaning up ~/Library/MobileDevice/Provisioning Profiles and changing the bundle identifier.

        – david
        Mar 14 at 15:56







        @Fedorov7890 To get the app launching on the device, you need to disable the debug executable checkbox in the scheme as explained in this comment iPhone has denied the launch request. This work around works for me after removing my dev account, cleaning up ~/Library/MobileDevice/Provisioning Profiles and changing the bundle identifier.

        – david
        Mar 14 at 15:56















        @david Thank you, I've already found an alternative solution without disable debug executable, stackoverflow.com/a/55160300/3824328

        – Fedorov7890
        Mar 14 at 16:00





        @david Thank you, I've already found an alternative solution without disable debug executable, stackoverflow.com/a/55160300/3824328

        – Fedorov7890
        Mar 14 at 16:00











        11














        I restored a profile from Time Machine when this was working and upon launch, Xcode immediately deletes and replaces it with a new one. The key difference seems to be the old profile has the get-task-allow entitlement while the new one has NO entitlements. This is definitely broken at Apple's end.



        Edit: The entitlements should also include a keychain access group, but again, no entitlements at all. Should look like:



        Good entitlements






        share|improve this answer






























          11














          I restored a profile from Time Machine when this was working and upon launch, Xcode immediately deletes and replaces it with a new one. The key difference seems to be the old profile has the get-task-allow entitlement while the new one has NO entitlements. This is definitely broken at Apple's end.



          Edit: The entitlements should also include a keychain access group, but again, no entitlements at all. Should look like:



          Good entitlements






          share|improve this answer




























            11












            11








            11







            I restored a profile from Time Machine when this was working and upon launch, Xcode immediately deletes and replaces it with a new one. The key difference seems to be the old profile has the get-task-allow entitlement while the new one has NO entitlements. This is definitely broken at Apple's end.



            Edit: The entitlements should also include a keychain access group, but again, no entitlements at all. Should look like:



            Good entitlements






            share|improve this answer















            I restored a profile from Time Machine when this was working and upon launch, Xcode immediately deletes and replaces it with a new one. The key difference seems to be the old profile has the get-task-allow entitlement while the new one has NO entitlements. This is definitely broken at Apple's end.



            Edit: The entitlements should also include a keychain access group, but again, no entitlements at all. Should look like:



            Good entitlements







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 13 at 16:57

























            answered Mar 13 at 16:19









            David GishDavid Gish

            540313




            540313























                10














                Seems Apple broke the automatic signing system.
                I was playing around with a few projects and Xcode just fetches the incorrect profile



                This worked for me:




                1. Turn off "Automatically manage signing" in project target

                2. Go to ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                3. Remove previously downloaded profiles

                4. Turn on "Automatically manage signing" again






                share|improve this answer





















                • 12





                  For me that does not work. Also I think you mean ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                  – Fedorov7890
                  Mar 13 at 13:09








                • 1





                  @Fedorov7890 Yep, corrected. What message do you see?

                  – Oleh Zayats
                  Mar 13 at 18:30






                • 1





                  Remark: looks like it works for projects created yesterday and earlier, but not for today's project

                  – Fedorov7890
                  Mar 13 at 19:04






                • 2





                  Didn't work for me, even for old projects.

                  – Chase Patterson
                  Mar 13 at 21:30






                • 2





                  Tired that, not working.

                  – N. Der
                  Mar 13 at 23:02
















                10














                Seems Apple broke the automatic signing system.
                I was playing around with a few projects and Xcode just fetches the incorrect profile



                This worked for me:




                1. Turn off "Automatically manage signing" in project target

                2. Go to ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                3. Remove previously downloaded profiles

                4. Turn on "Automatically manage signing" again






                share|improve this answer





















                • 12





                  For me that does not work. Also I think you mean ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                  – Fedorov7890
                  Mar 13 at 13:09








                • 1





                  @Fedorov7890 Yep, corrected. What message do you see?

                  – Oleh Zayats
                  Mar 13 at 18:30






                • 1





                  Remark: looks like it works for projects created yesterday and earlier, but not for today's project

                  – Fedorov7890
                  Mar 13 at 19:04






                • 2





                  Didn't work for me, even for old projects.

                  – Chase Patterson
                  Mar 13 at 21:30






                • 2





                  Tired that, not working.

                  – N. Der
                  Mar 13 at 23:02














                10












                10








                10







                Seems Apple broke the automatic signing system.
                I was playing around with a few projects and Xcode just fetches the incorrect profile



                This worked for me:




                1. Turn off "Automatically manage signing" in project target

                2. Go to ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                3. Remove previously downloaded profiles

                4. Turn on "Automatically manage signing" again






                share|improve this answer















                Seems Apple broke the automatic signing system.
                I was playing around with a few projects and Xcode just fetches the incorrect profile



                This worked for me:




                1. Turn off "Automatically manage signing" in project target

                2. Go to ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                3. Remove previously downloaded profiles

                4. Turn on "Automatically manage signing" again







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 13 at 18:26

























                answered Mar 13 at 12:32









                Oleh ZayatsOleh Zayats

                1,79811022




                1,79811022








                • 12





                  For me that does not work. Also I think you mean ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                  – Fedorov7890
                  Mar 13 at 13:09








                • 1





                  @Fedorov7890 Yep, corrected. What message do you see?

                  – Oleh Zayats
                  Mar 13 at 18:30






                • 1





                  Remark: looks like it works for projects created yesterday and earlier, but not for today's project

                  – Fedorov7890
                  Mar 13 at 19:04






                • 2





                  Didn't work for me, even for old projects.

                  – Chase Patterson
                  Mar 13 at 21:30






                • 2





                  Tired that, not working.

                  – N. Der
                  Mar 13 at 23:02














                • 12





                  For me that does not work. Also I think you mean ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                  – Fedorov7890
                  Mar 13 at 13:09








                • 1





                  @Fedorov7890 Yep, corrected. What message do you see?

                  – Oleh Zayats
                  Mar 13 at 18:30






                • 1





                  Remark: looks like it works for projects created yesterday and earlier, but not for today's project

                  – Fedorov7890
                  Mar 13 at 19:04






                • 2





                  Didn't work for me, even for old projects.

                  – Chase Patterson
                  Mar 13 at 21:30






                • 2





                  Tired that, not working.

                  – N. Der
                  Mar 13 at 23:02








                12




                12





                For me that does not work. Also I think you mean ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                – Fedorov7890
                Mar 13 at 13:09







                For me that does not work. Also I think you mean ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles⁩

                – Fedorov7890
                Mar 13 at 13:09






                1




                1





                @Fedorov7890 Yep, corrected. What message do you see?

                – Oleh Zayats
                Mar 13 at 18:30





                @Fedorov7890 Yep, corrected. What message do you see?

                – Oleh Zayats
                Mar 13 at 18:30




                1




                1





                Remark: looks like it works for projects created yesterday and earlier, but not for today's project

                – Fedorov7890
                Mar 13 at 19:04





                Remark: looks like it works for projects created yesterday and earlier, but not for today's project

                – Fedorov7890
                Mar 13 at 19:04




                2




                2





                Didn't work for me, even for old projects.

                – Chase Patterson
                Mar 13 at 21:30





                Didn't work for me, even for old projects.

                – Chase Patterson
                Mar 13 at 21:30




                2




                2





                Tired that, not working.

                – N. Der
                Mar 13 at 23:02





                Tired that, not working.

                – N. Der
                Mar 13 at 23:02











                8














                This issue has been resolved BUT some people still have problem with it. If you're one of them, try the following:



                1. In the General tab of target settings - uncheck the Automatically manage signing option



                2. Close Xcode (fully, not just your project)



                3. Erase .mobileprovision files under ~/Library/MobileDevice/Provisioning Profiles/



                4. In Keychain Access, delete the following:




                • iPhone Developer: youremail@email.com

                • Developer ID Certification Authority

                • Apple Worldwide Developer Relations Certification Authority 3.


                5. Delete the app on your iOS devices



                6. Restart your Mac and iOS devices



                7. Open Xcode again



                8. Change the Bundle Identifier (even if its a single character, you'd change it back to the original after you get it going)



                9. Check the Automatically manage signing option



                10. Use USB to connect your iPhone/iPad.



                11. Make sure you trust your certificate on your iOS devices



                This should do work for you.






                share|improve this answer


























                • Thx a lot, this was the very first thing that worked for me

                  – ShadowLightz
                  2 days ago











                • Did it solve the 'iPhone has denied the launch request' problem for you?

                  – Fedorov7890
                  2 days ago











                • @Fedorov7890 it did for me and I assume for ShadowLightz

                  – Bold Lion
                  2 days ago











                • Yeah! I tried and confirm it works!

                  – Fedorov7890
                  2 days ago
















                8














                This issue has been resolved BUT some people still have problem with it. If you're one of them, try the following:



                1. In the General tab of target settings - uncheck the Automatically manage signing option



                2. Close Xcode (fully, not just your project)



                3. Erase .mobileprovision files under ~/Library/MobileDevice/Provisioning Profiles/



                4. In Keychain Access, delete the following:




                • iPhone Developer: youremail@email.com

                • Developer ID Certification Authority

                • Apple Worldwide Developer Relations Certification Authority 3.


                5. Delete the app on your iOS devices



                6. Restart your Mac and iOS devices



                7. Open Xcode again



                8. Change the Bundle Identifier (even if its a single character, you'd change it back to the original after you get it going)



                9. Check the Automatically manage signing option



                10. Use USB to connect your iPhone/iPad.



                11. Make sure you trust your certificate on your iOS devices



                This should do work for you.






                share|improve this answer


























                • Thx a lot, this was the very first thing that worked for me

                  – ShadowLightz
                  2 days ago











                • Did it solve the 'iPhone has denied the launch request' problem for you?

                  – Fedorov7890
                  2 days ago











                • @Fedorov7890 it did for me and I assume for ShadowLightz

                  – Bold Lion
                  2 days ago











                • Yeah! I tried and confirm it works!

                  – Fedorov7890
                  2 days ago














                8












                8








                8







                This issue has been resolved BUT some people still have problem with it. If you're one of them, try the following:



                1. In the General tab of target settings - uncheck the Automatically manage signing option



                2. Close Xcode (fully, not just your project)



                3. Erase .mobileprovision files under ~/Library/MobileDevice/Provisioning Profiles/



                4. In Keychain Access, delete the following:




                • iPhone Developer: youremail@email.com

                • Developer ID Certification Authority

                • Apple Worldwide Developer Relations Certification Authority 3.


                5. Delete the app on your iOS devices



                6. Restart your Mac and iOS devices



                7. Open Xcode again



                8. Change the Bundle Identifier (even if its a single character, you'd change it back to the original after you get it going)



                9. Check the Automatically manage signing option



                10. Use USB to connect your iPhone/iPad.



                11. Make sure you trust your certificate on your iOS devices



                This should do work for you.






                share|improve this answer















                This issue has been resolved BUT some people still have problem with it. If you're one of them, try the following:



                1. In the General tab of target settings - uncheck the Automatically manage signing option



                2. Close Xcode (fully, not just your project)



                3. Erase .mobileprovision files under ~/Library/MobileDevice/Provisioning Profiles/



                4. In Keychain Access, delete the following:




                • iPhone Developer: youremail@email.com

                • Developer ID Certification Authority

                • Apple Worldwide Developer Relations Certification Authority 3.


                5. Delete the app on your iOS devices



                6. Restart your Mac and iOS devices



                7. Open Xcode again



                8. Change the Bundle Identifier (even if its a single character, you'd change it back to the original after you get it going)



                9. Check the Automatically manage signing option



                10. Use USB to connect your iPhone/iPad.



                11. Make sure you trust your certificate on your iOS devices



                This should do work for you.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 19 at 15:53









                matt

                332k46543741




                332k46543741










                answered Mar 19 at 15:30









                Bold LionBold Lion

                1,38511327




                1,38511327













                • Thx a lot, this was the very first thing that worked for me

                  – ShadowLightz
                  2 days ago











                • Did it solve the 'iPhone has denied the launch request' problem for you?

                  – Fedorov7890
                  2 days ago











                • @Fedorov7890 it did for me and I assume for ShadowLightz

                  – Bold Lion
                  2 days ago











                • Yeah! I tried and confirm it works!

                  – Fedorov7890
                  2 days ago



















                • Thx a lot, this was the very first thing that worked for me

                  – ShadowLightz
                  2 days ago











                • Did it solve the 'iPhone has denied the launch request' problem for you?

                  – Fedorov7890
                  2 days ago











                • @Fedorov7890 it did for me and I assume for ShadowLightz

                  – Bold Lion
                  2 days ago











                • Yeah! I tried and confirm it works!

                  – Fedorov7890
                  2 days ago

















                Thx a lot, this was the very first thing that worked for me

                – ShadowLightz
                2 days ago





                Thx a lot, this was the very first thing that worked for me

                – ShadowLightz
                2 days ago













                Did it solve the 'iPhone has denied the launch request' problem for you?

                – Fedorov7890
                2 days ago





                Did it solve the 'iPhone has denied the launch request' problem for you?

                – Fedorov7890
                2 days ago













                @Fedorov7890 it did for me and I assume for ShadowLightz

                – Bold Lion
                2 days ago





                @Fedorov7890 it did for me and I assume for ShadowLightz

                – Bold Lion
                2 days ago













                Yeah! I tried and confirm it works!

                – Fedorov7890
                2 days ago





                Yeah! I tried and confirm it works!

                – Fedorov7890
                2 days ago











                8














                UPDATE: This solution still works as on 2019/Mar/20 7:00 UTC+0

                SOLUTION: no XCode reinstallation required. I used a brand new free AppleId, but later checked with my old AppleID and it also works.




                1. In XCode, under the General tab, untick the Automatically manage signing option

                2. Close XCode.


                3. Erase old profiles in ~/Library/MobileDevice/Provisioning Profiles :



                  cd ~/Library/MobileDevice/Provisioning Profiles



                  rm -rf *




                4. On MacOS, run Launchpad->Other->Keychain Access and remove all certificates related to iPhone development, like the following four on the picture:




                  • Apple Worldwide Developer Relations Certification Authority

                  • Developer ID Certification Authority

                  • iPhone Developer: your_name_or_email




                Remove certificates




                1. Uninstall old app on iPhone, restart both iPhone and Mac

                2. Open XCode and change the Bundle Identifier of your app, at least one character (later you may revert this change)

                3. Enable the Automatically manage signing option in XCode.


                After this you should be able to run and debug your app on your device.



                If you have a “iPhone has denied the launch request” problem, the solution is https://stackoverflow.com/a/54990369/3824328.
                In short, you need in XCode to go to menu Product->Scheme->Edit Scheme... and select Executable: ask on launch






                share|improve this answer


























                • for denied lunch if i remove the debugger option, i cant debug while using the device. only simulator

                  – Renan Aguiar
                  Mar 14 at 15:42











                • @RenanAguiar you don't need to remove debugger option, just change 'Executable' from the drop-down list to "ask on launch". See link in my post that shows how to do that in pictures.

                  – Fedorov7890
                  Mar 14 at 15:54











                • when i do that, same thing happens. i cant see the debugger icons like step and location. only on the simulator

                  – Renan Aguiar
                  Mar 14 at 16:19











                • now i always get unable to launch...

                  – Renan Aguiar
                  Mar 14 at 16:34











                • It looks like debugger is not fully functional. I can get console output from device, but breakpoints don't work; neither do step over / step into commands

                  – Fedorov7890
                  Mar 14 at 17:36
















                8














                UPDATE: This solution still works as on 2019/Mar/20 7:00 UTC+0

                SOLUTION: no XCode reinstallation required. I used a brand new free AppleId, but later checked with my old AppleID and it also works.




                1. In XCode, under the General tab, untick the Automatically manage signing option

                2. Close XCode.


                3. Erase old profiles in ~/Library/MobileDevice/Provisioning Profiles :



                  cd ~/Library/MobileDevice/Provisioning Profiles



                  rm -rf *




                4. On MacOS, run Launchpad->Other->Keychain Access and remove all certificates related to iPhone development, like the following four on the picture:




                  • Apple Worldwide Developer Relations Certification Authority

                  • Developer ID Certification Authority

                  • iPhone Developer: your_name_or_email




                Remove certificates




                1. Uninstall old app on iPhone, restart both iPhone and Mac

                2. Open XCode and change the Bundle Identifier of your app, at least one character (later you may revert this change)

                3. Enable the Automatically manage signing option in XCode.


                After this you should be able to run and debug your app on your device.



                If you have a “iPhone has denied the launch request” problem, the solution is https://stackoverflow.com/a/54990369/3824328.
                In short, you need in XCode to go to menu Product->Scheme->Edit Scheme... and select Executable: ask on launch






                share|improve this answer


























                • for denied lunch if i remove the debugger option, i cant debug while using the device. only simulator

                  – Renan Aguiar
                  Mar 14 at 15:42











                • @RenanAguiar you don't need to remove debugger option, just change 'Executable' from the drop-down list to "ask on launch". See link in my post that shows how to do that in pictures.

                  – Fedorov7890
                  Mar 14 at 15:54











                • when i do that, same thing happens. i cant see the debugger icons like step and location. only on the simulator

                  – Renan Aguiar
                  Mar 14 at 16:19











                • now i always get unable to launch...

                  – Renan Aguiar
                  Mar 14 at 16:34











                • It looks like debugger is not fully functional. I can get console output from device, but breakpoints don't work; neither do step over / step into commands

                  – Fedorov7890
                  Mar 14 at 17:36














                8












                8








                8







                UPDATE: This solution still works as on 2019/Mar/20 7:00 UTC+0

                SOLUTION: no XCode reinstallation required. I used a brand new free AppleId, but later checked with my old AppleID and it also works.




                1. In XCode, under the General tab, untick the Automatically manage signing option

                2. Close XCode.


                3. Erase old profiles in ~/Library/MobileDevice/Provisioning Profiles :



                  cd ~/Library/MobileDevice/Provisioning Profiles



                  rm -rf *




                4. On MacOS, run Launchpad->Other->Keychain Access and remove all certificates related to iPhone development, like the following four on the picture:




                  • Apple Worldwide Developer Relations Certification Authority

                  • Developer ID Certification Authority

                  • iPhone Developer: your_name_or_email




                Remove certificates




                1. Uninstall old app on iPhone, restart both iPhone and Mac

                2. Open XCode and change the Bundle Identifier of your app, at least one character (later you may revert this change)

                3. Enable the Automatically manage signing option in XCode.


                After this you should be able to run and debug your app on your device.



                If you have a “iPhone has denied the launch request” problem, the solution is https://stackoverflow.com/a/54990369/3824328.
                In short, you need in XCode to go to menu Product->Scheme->Edit Scheme... and select Executable: ask on launch






                share|improve this answer















                UPDATE: This solution still works as on 2019/Mar/20 7:00 UTC+0

                SOLUTION: no XCode reinstallation required. I used a brand new free AppleId, but later checked with my old AppleID and it also works.




                1. In XCode, under the General tab, untick the Automatically manage signing option

                2. Close XCode.


                3. Erase old profiles in ~/Library/MobileDevice/Provisioning Profiles :



                  cd ~/Library/MobileDevice/Provisioning Profiles



                  rm -rf *




                4. On MacOS, run Launchpad->Other->Keychain Access and remove all certificates related to iPhone development, like the following four on the picture:




                  • Apple Worldwide Developer Relations Certification Authority

                  • Developer ID Certification Authority

                  • iPhone Developer: your_name_or_email




                Remove certificates




                1. Uninstall old app on iPhone, restart both iPhone and Mac

                2. Open XCode and change the Bundle Identifier of your app, at least one character (later you may revert this change)

                3. Enable the Automatically manage signing option in XCode.


                After this you should be able to run and debug your app on your device.



                If you have a “iPhone has denied the launch request” problem, the solution is https://stackoverflow.com/a/54990369/3824328.
                In short, you need in XCode to go to menu Product->Scheme->Edit Scheme... and select Executable: ask on launch







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 2 days ago

























                answered Mar 14 at 10:33









                Fedorov7890Fedorov7890

                339316




                339316













                • for denied lunch if i remove the debugger option, i cant debug while using the device. only simulator

                  – Renan Aguiar
                  Mar 14 at 15:42











                • @RenanAguiar you don't need to remove debugger option, just change 'Executable' from the drop-down list to "ask on launch". See link in my post that shows how to do that in pictures.

                  – Fedorov7890
                  Mar 14 at 15:54











                • when i do that, same thing happens. i cant see the debugger icons like step and location. only on the simulator

                  – Renan Aguiar
                  Mar 14 at 16:19











                • now i always get unable to launch...

                  – Renan Aguiar
                  Mar 14 at 16:34











                • It looks like debugger is not fully functional. I can get console output from device, but breakpoints don't work; neither do step over / step into commands

                  – Fedorov7890
                  Mar 14 at 17:36



















                • for denied lunch if i remove the debugger option, i cant debug while using the device. only simulator

                  – Renan Aguiar
                  Mar 14 at 15:42











                • @RenanAguiar you don't need to remove debugger option, just change 'Executable' from the drop-down list to "ask on launch". See link in my post that shows how to do that in pictures.

                  – Fedorov7890
                  Mar 14 at 15:54











                • when i do that, same thing happens. i cant see the debugger icons like step and location. only on the simulator

                  – Renan Aguiar
                  Mar 14 at 16:19











                • now i always get unable to launch...

                  – Renan Aguiar
                  Mar 14 at 16:34











                • It looks like debugger is not fully functional. I can get console output from device, but breakpoints don't work; neither do step over / step into commands

                  – Fedorov7890
                  Mar 14 at 17:36

















                for denied lunch if i remove the debugger option, i cant debug while using the device. only simulator

                – Renan Aguiar
                Mar 14 at 15:42





                for denied lunch if i remove the debugger option, i cant debug while using the device. only simulator

                – Renan Aguiar
                Mar 14 at 15:42













                @RenanAguiar you don't need to remove debugger option, just change 'Executable' from the drop-down list to "ask on launch". See link in my post that shows how to do that in pictures.

                – Fedorov7890
                Mar 14 at 15:54





                @RenanAguiar you don't need to remove debugger option, just change 'Executable' from the drop-down list to "ask on launch". See link in my post that shows how to do that in pictures.

                – Fedorov7890
                Mar 14 at 15:54













                when i do that, same thing happens. i cant see the debugger icons like step and location. only on the simulator

                – Renan Aguiar
                Mar 14 at 16:19





                when i do that, same thing happens. i cant see the debugger icons like step and location. only on the simulator

                – Renan Aguiar
                Mar 14 at 16:19













                now i always get unable to launch...

                – Renan Aguiar
                Mar 14 at 16:34





                now i always get unable to launch...

                – Renan Aguiar
                Mar 14 at 16:34













                It looks like debugger is not fully functional. I can get console output from device, but breakpoints don't work; neither do step over / step into commands

                – Fedorov7890
                Mar 14 at 17:36





                It looks like debugger is not fully functional. I can get console output from device, but breakpoints don't work; neither do step over / step into commands

                – Fedorov7890
                Mar 14 at 17:36











                8














                EDIT




                As per latest update Apple successfully resolved Automatically Code
                Sign with Free Account
                issue.



                I tried it and I can confirm its resolved.



                Please try at your end.




                I am also facing the same issue while I am creating a new Profile from XCode and if I go to other projects and check over there also I am facing the same issue as below.



                enter image description here



                Due to this issue none of my project able to build with old profile & certificate.



                The strange issue so I checked newly created Profile and compare with old one and I found that App ID is unknown as well as there are no Entitlement details in newly created profile.



                Check below screenshots of Old and New profile comparison:



                Old Profile:



                enter image description here



                New Profile:



                enter image description here



                So means it's not able to set App Id and Entitlements in the new profile. Which will result to not work all old profile and giving the same error in all projects.



                Issue Workaround:



                Step1: Go to Provisioning Profile folder (path: ~⁨Library⁩ ▸ ⁨MobileDevice⁩ ▸ ⁨Provisioning Profiles⁩).



                or use a shortcut to jump directly into this folder like CMD + SHIFT + G and enter ~/Library/MobileDevice/Provisioning Profiles it will redirect your finder directly on Provisioning Profiles folder.



                Step2: Short folder by Date Modified.



                Step3: Check profile with Unknown App Id and delete all unknown profile.



                Step4: Come back on XCode and check all old project will work as expected.




                Note: Make sure new app which causing this problem keep that project
                closed otherwise it will create a new profile with Unknown App Id.




                Hope this will helps and apple will solve this bug soon!






                share|improve this answer


























                • Where is that ~Library path, please?

                  – Franky
                  Mar 13 at 20:39











                • @Franky ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles. Although this fix does not work for me (and others, as seen in other answers). Your mileage may vary.

                  – Bilfred
                  Mar 13 at 21:52











                • @Bilfred My macOS X is Sierra 10.13.6 and there isn't such a path in ~Library!

                  – Franky
                  Mar 13 at 21:58








                • 1





                  @Franky Use shortcut CMD+SHIFT+G (go to directly on folder) and enter ~/Library/MobileDevice/Provisioning Profiles this path you will directly jump to that location and delete profile with unknown appid.

                  – CodeChanger
                  Mar 14 at 5:03








                • 1





                  yes delete that file and one more thing try again apple resolved above mention issue.

                  – CodeChanger
                  Mar 14 at 8:48
















                8














                EDIT




                As per latest update Apple successfully resolved Automatically Code
                Sign with Free Account
                issue.



                I tried it and I can confirm its resolved.



                Please try at your end.




                I am also facing the same issue while I am creating a new Profile from XCode and if I go to other projects and check over there also I am facing the same issue as below.



                enter image description here



                Due to this issue none of my project able to build with old profile & certificate.



                The strange issue so I checked newly created Profile and compare with old one and I found that App ID is unknown as well as there are no Entitlement details in newly created profile.



                Check below screenshots of Old and New profile comparison:



                Old Profile:



                enter image description here



                New Profile:



                enter image description here



                So means it's not able to set App Id and Entitlements in the new profile. Which will result to not work all old profile and giving the same error in all projects.



                Issue Workaround:



                Step1: Go to Provisioning Profile folder (path: ~⁨Library⁩ ▸ ⁨MobileDevice⁩ ▸ ⁨Provisioning Profiles⁩).



                or use a shortcut to jump directly into this folder like CMD + SHIFT + G and enter ~/Library/MobileDevice/Provisioning Profiles it will redirect your finder directly on Provisioning Profiles folder.



                Step2: Short folder by Date Modified.



                Step3: Check profile with Unknown App Id and delete all unknown profile.



                Step4: Come back on XCode and check all old project will work as expected.




                Note: Make sure new app which causing this problem keep that project
                closed otherwise it will create a new profile with Unknown App Id.




                Hope this will helps and apple will solve this bug soon!






                share|improve this answer


























                • Where is that ~Library path, please?

                  – Franky
                  Mar 13 at 20:39











                • @Franky ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles. Although this fix does not work for me (and others, as seen in other answers). Your mileage may vary.

                  – Bilfred
                  Mar 13 at 21:52











                • @Bilfred My macOS X is Sierra 10.13.6 and there isn't such a path in ~Library!

                  – Franky
                  Mar 13 at 21:58








                • 1





                  @Franky Use shortcut CMD+SHIFT+G (go to directly on folder) and enter ~/Library/MobileDevice/Provisioning Profiles this path you will directly jump to that location and delete profile with unknown appid.

                  – CodeChanger
                  Mar 14 at 5:03








                • 1





                  yes delete that file and one more thing try again apple resolved above mention issue.

                  – CodeChanger
                  Mar 14 at 8:48














                8












                8








                8







                EDIT




                As per latest update Apple successfully resolved Automatically Code
                Sign with Free Account
                issue.



                I tried it and I can confirm its resolved.



                Please try at your end.




                I am also facing the same issue while I am creating a new Profile from XCode and if I go to other projects and check over there also I am facing the same issue as below.



                enter image description here



                Due to this issue none of my project able to build with old profile & certificate.



                The strange issue so I checked newly created Profile and compare with old one and I found that App ID is unknown as well as there are no Entitlement details in newly created profile.



                Check below screenshots of Old and New profile comparison:



                Old Profile:



                enter image description here



                New Profile:



                enter image description here



                So means it's not able to set App Id and Entitlements in the new profile. Which will result to not work all old profile and giving the same error in all projects.



                Issue Workaround:



                Step1: Go to Provisioning Profile folder (path: ~⁨Library⁩ ▸ ⁨MobileDevice⁩ ▸ ⁨Provisioning Profiles⁩).



                or use a shortcut to jump directly into this folder like CMD + SHIFT + G and enter ~/Library/MobileDevice/Provisioning Profiles it will redirect your finder directly on Provisioning Profiles folder.



                Step2: Short folder by Date Modified.



                Step3: Check profile with Unknown App Id and delete all unknown profile.



                Step4: Come back on XCode and check all old project will work as expected.




                Note: Make sure new app which causing this problem keep that project
                closed otherwise it will create a new profile with Unknown App Id.




                Hope this will helps and apple will solve this bug soon!






                share|improve this answer















                EDIT




                As per latest update Apple successfully resolved Automatically Code
                Sign with Free Account
                issue.



                I tried it and I can confirm its resolved.



                Please try at your end.




                I am also facing the same issue while I am creating a new Profile from XCode and if I go to other projects and check over there also I am facing the same issue as below.



                enter image description here



                Due to this issue none of my project able to build with old profile & certificate.



                The strange issue so I checked newly created Profile and compare with old one and I found that App ID is unknown as well as there are no Entitlement details in newly created profile.



                Check below screenshots of Old and New profile comparison:



                Old Profile:



                enter image description here



                New Profile:



                enter image description here



                So means it's not able to set App Id and Entitlements in the new profile. Which will result to not work all old profile and giving the same error in all projects.



                Issue Workaround:



                Step1: Go to Provisioning Profile folder (path: ~⁨Library⁩ ▸ ⁨MobileDevice⁩ ▸ ⁨Provisioning Profiles⁩).



                or use a shortcut to jump directly into this folder like CMD + SHIFT + G and enter ~/Library/MobileDevice/Provisioning Profiles it will redirect your finder directly on Provisioning Profiles folder.



                Step2: Short folder by Date Modified.



                Step3: Check profile with Unknown App Id and delete all unknown profile.



                Step4: Come back on XCode and check all old project will work as expected.




                Note: Make sure new app which causing this problem keep that project
                closed otherwise it will create a new profile with Unknown App Id.




                Hope this will helps and apple will solve this bug soon!







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 5 hours ago

























                answered Mar 13 at 10:36









                CodeChangerCodeChanger

                3,83211745




                3,83211745













                • Where is that ~Library path, please?

                  – Franky
                  Mar 13 at 20:39











                • @Franky ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles. Although this fix does not work for me (and others, as seen in other answers). Your mileage may vary.

                  – Bilfred
                  Mar 13 at 21:52











                • @Bilfred My macOS X is Sierra 10.13.6 and there isn't such a path in ~Library!

                  – Franky
                  Mar 13 at 21:58








                • 1





                  @Franky Use shortcut CMD+SHIFT+G (go to directly on folder) and enter ~/Library/MobileDevice/Provisioning Profiles this path you will directly jump to that location and delete profile with unknown appid.

                  – CodeChanger
                  Mar 14 at 5:03








                • 1





                  yes delete that file and one more thing try again apple resolved above mention issue.

                  – CodeChanger
                  Mar 14 at 8:48



















                • Where is that ~Library path, please?

                  – Franky
                  Mar 13 at 20:39











                • @Franky ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles. Although this fix does not work for me (and others, as seen in other answers). Your mileage may vary.

                  – Bilfred
                  Mar 13 at 21:52











                • @Bilfred My macOS X is Sierra 10.13.6 and there isn't such a path in ~Library!

                  – Franky
                  Mar 13 at 21:58








                • 1





                  @Franky Use shortcut CMD+SHIFT+G (go to directly on folder) and enter ~/Library/MobileDevice/Provisioning Profiles this path you will directly jump to that location and delete profile with unknown appid.

                  – CodeChanger
                  Mar 14 at 5:03








                • 1





                  yes delete that file and one more thing try again apple resolved above mention issue.

                  – CodeChanger
                  Mar 14 at 8:48

















                Where is that ~Library path, please?

                – Franky
                Mar 13 at 20:39





                Where is that ~Library path, please?

                – Franky
                Mar 13 at 20:39













                @Franky ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles. Although this fix does not work for me (and others, as seen in other answers). Your mileage may vary.

                – Bilfred
                Mar 13 at 21:52





                @Franky ~/Library⁩/⁨MobileDevice⁩/⁨Provisioning Profiles. Although this fix does not work for me (and others, as seen in other answers). Your mileage may vary.

                – Bilfred
                Mar 13 at 21:52













                @Bilfred My macOS X is Sierra 10.13.6 and there isn't such a path in ~Library!

                – Franky
                Mar 13 at 21:58







                @Bilfred My macOS X is Sierra 10.13.6 and there isn't such a path in ~Library!

                – Franky
                Mar 13 at 21:58






                1




                1





                @Franky Use shortcut CMD+SHIFT+G (go to directly on folder) and enter ~/Library/MobileDevice/Provisioning Profiles this path you will directly jump to that location and delete profile with unknown appid.

                – CodeChanger
                Mar 14 at 5:03







                @Franky Use shortcut CMD+SHIFT+G (go to directly on folder) and enter ~/Library/MobileDevice/Provisioning Profiles this path you will directly jump to that location and delete profile with unknown appid.

                – CodeChanger
                Mar 14 at 5:03






                1




                1





                yes delete that file and one more thing try again apple resolved above mention issue.

                – CodeChanger
                Mar 14 at 8:48





                yes delete that file and one more thing try again apple resolved above mention issue.

                – CodeChanger
                Mar 14 at 8:48











                6














                It seems that this problem has been resolved now and the personal accounts can resign their apps automatically again.



                Regarding to @Paul answer, it is not related to uninstalling Xcode. Its is fixed from server side.



                The only thing that is required is removing Apple Developer Certificate (for the personal account) from your keychain, so that Xcode retry to generate and download new one.






                share|improve this answer
























                • Still can not install on the device. Even with new free appleid and certificate

                  – Fedorov7890
                  Mar 14 at 8:57











                • Did you removed all certificates?

                  – Husein Behboodi Rad
                  Mar 14 at 9:03











                • Yes I did, besides I purged ~/Library/MobileDevice/Provisioning Profiles and ~/Library/Developer/Xcode/DerivedData and restarted iPhone

                  – Fedorov7890
                  Mar 14 at 9:05













                • Finally it works with this workaround stackoverflow.com/a/54990369/3824328

                  – Fedorov7890
                  Mar 14 at 10:27






                • 1





                  @Franky stackoverflow.com/a/55160300/3824328

                  – Fedorov7890
                  Mar 14 at 15:36
















                6














                It seems that this problem has been resolved now and the personal accounts can resign their apps automatically again.



                Regarding to @Paul answer, it is not related to uninstalling Xcode. Its is fixed from server side.



                The only thing that is required is removing Apple Developer Certificate (for the personal account) from your keychain, so that Xcode retry to generate and download new one.






                share|improve this answer
























                • Still can not install on the device. Even with new free appleid and certificate

                  – Fedorov7890
                  Mar 14 at 8:57











                • Did you removed all certificates?

                  – Husein Behboodi Rad
                  Mar 14 at 9:03











                • Yes I did, besides I purged ~/Library/MobileDevice/Provisioning Profiles and ~/Library/Developer/Xcode/DerivedData and restarted iPhone

                  – Fedorov7890
                  Mar 14 at 9:05













                • Finally it works with this workaround stackoverflow.com/a/54990369/3824328

                  – Fedorov7890
                  Mar 14 at 10:27






                • 1





                  @Franky stackoverflow.com/a/55160300/3824328

                  – Fedorov7890
                  Mar 14 at 15:36














                6












                6








                6







                It seems that this problem has been resolved now and the personal accounts can resign their apps automatically again.



                Regarding to @Paul answer, it is not related to uninstalling Xcode. Its is fixed from server side.



                The only thing that is required is removing Apple Developer Certificate (for the personal account) from your keychain, so that Xcode retry to generate and download new one.






                share|improve this answer













                It seems that this problem has been resolved now and the personal accounts can resign their apps automatically again.



                Regarding to @Paul answer, it is not related to uninstalling Xcode. Its is fixed from server side.



                The only thing that is required is removing Apple Developer Certificate (for the personal account) from your keychain, so that Xcode retry to generate and download new one.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 14 at 7:33









                Husein Behboodi RadHusein Behboodi Rad

                2,683104090




                2,683104090













                • Still can not install on the device. Even with new free appleid and certificate

                  – Fedorov7890
                  Mar 14 at 8:57











                • Did you removed all certificates?

                  – Husein Behboodi Rad
                  Mar 14 at 9:03











                • Yes I did, besides I purged ~/Library/MobileDevice/Provisioning Profiles and ~/Library/Developer/Xcode/DerivedData and restarted iPhone

                  – Fedorov7890
                  Mar 14 at 9:05













                • Finally it works with this workaround stackoverflow.com/a/54990369/3824328

                  – Fedorov7890
                  Mar 14 at 10:27






                • 1





                  @Franky stackoverflow.com/a/55160300/3824328

                  – Fedorov7890
                  Mar 14 at 15:36



















                • Still can not install on the device. Even with new free appleid and certificate

                  – Fedorov7890
                  Mar 14 at 8:57











                • Did you removed all certificates?

                  – Husein Behboodi Rad
                  Mar 14 at 9:03











                • Yes I did, besides I purged ~/Library/MobileDevice/Provisioning Profiles and ~/Library/Developer/Xcode/DerivedData and restarted iPhone

                  – Fedorov7890
                  Mar 14 at 9:05













                • Finally it works with this workaround stackoverflow.com/a/54990369/3824328

                  – Fedorov7890
                  Mar 14 at 10:27






                • 1





                  @Franky stackoverflow.com/a/55160300/3824328

                  – Fedorov7890
                  Mar 14 at 15:36

















                Still can not install on the device. Even with new free appleid and certificate

                – Fedorov7890
                Mar 14 at 8:57





                Still can not install on the device. Even with new free appleid and certificate

                – Fedorov7890
                Mar 14 at 8:57













                Did you removed all certificates?

                – Husein Behboodi Rad
                Mar 14 at 9:03





                Did you removed all certificates?

                – Husein Behboodi Rad
                Mar 14 at 9:03













                Yes I did, besides I purged ~/Library/MobileDevice/Provisioning Profiles and ~/Library/Developer/Xcode/DerivedData and restarted iPhone

                – Fedorov7890
                Mar 14 at 9:05







                Yes I did, besides I purged ~/Library/MobileDevice/Provisioning Profiles and ~/Library/Developer/Xcode/DerivedData and restarted iPhone

                – Fedorov7890
                Mar 14 at 9:05















                Finally it works with this workaround stackoverflow.com/a/54990369/3824328

                – Fedorov7890
                Mar 14 at 10:27





                Finally it works with this workaround stackoverflow.com/a/54990369/3824328

                – Fedorov7890
                Mar 14 at 10:27




                1




                1





                @Franky stackoverflow.com/a/55160300/3824328

                – Fedorov7890
                Mar 14 at 15:36





                @Franky stackoverflow.com/a/55160300/3824328

                – Fedorov7890
                Mar 14 at 15:36











                5














                Here is the solution:




                1. let xCode be open.


                2. select your developer account and let the error appears again.


                3. Go to keychain App



                4.a) Goto certificate section



                4.b) remove All (valid and invalids) certificates ( I have 3 valid and many invalid!)



                remove certificates




                1. After removing the last certificate, mac os will recreate a new certificate for the active developer account automatically


                2. Run your app in your iDevice. You need to enter your system password to add newly created certificate into the Keychain.



                If in second run it says




                Your iPhone has denied the launch request




                just goto:



                Product > scheme > edit scheme: uncheck "debug executable"



                I hope it solves your problem.






                share|improve this answer





















                • 3





                  it doesnt! i cant debug or use location on the device

                  – Renan Aguiar
                  Mar 14 at 21:40











                • Hi, thanks. How to go to "keychain App" please? What path?

                  – Franky
                  Mar 15 at 0:35













                • You've probably found it by now, but the Keychain Access app is in Applications->Utilities

                  – David Gish
                  Mar 15 at 5:00











                • i still cant debug using iphone with those answers

                  – Renan Aguiar
                  Mar 15 at 15:26
















                5














                Here is the solution:




                1. let xCode be open.


                2. select your developer account and let the error appears again.


                3. Go to keychain App



                4.a) Goto certificate section



                4.b) remove All (valid and invalids) certificates ( I have 3 valid and many invalid!)



                remove certificates




                1. After removing the last certificate, mac os will recreate a new certificate for the active developer account automatically


                2. Run your app in your iDevice. You need to enter your system password to add newly created certificate into the Keychain.



                If in second run it says




                Your iPhone has denied the launch request




                just goto:



                Product > scheme > edit scheme: uncheck "debug executable"



                I hope it solves your problem.






                share|improve this answer





















                • 3





                  it doesnt! i cant debug or use location on the device

                  – Renan Aguiar
                  Mar 14 at 21:40











                • Hi, thanks. How to go to "keychain App" please? What path?

                  – Franky
                  Mar 15 at 0:35













                • You've probably found it by now, but the Keychain Access app is in Applications->Utilities

                  – David Gish
                  Mar 15 at 5:00











                • i still cant debug using iphone with those answers

                  – Renan Aguiar
                  Mar 15 at 15:26














                5












                5








                5







                Here is the solution:




                1. let xCode be open.


                2. select your developer account and let the error appears again.


                3. Go to keychain App



                4.a) Goto certificate section



                4.b) remove All (valid and invalids) certificates ( I have 3 valid and many invalid!)



                remove certificates




                1. After removing the last certificate, mac os will recreate a new certificate for the active developer account automatically


                2. Run your app in your iDevice. You need to enter your system password to add newly created certificate into the Keychain.



                If in second run it says




                Your iPhone has denied the launch request




                just goto:



                Product > scheme > edit scheme: uncheck "debug executable"



                I hope it solves your problem.






                share|improve this answer















                Here is the solution:




                1. let xCode be open.


                2. select your developer account and let the error appears again.


                3. Go to keychain App



                4.a) Goto certificate section



                4.b) remove All (valid and invalids) certificates ( I have 3 valid and many invalid!)



                remove certificates




                1. After removing the last certificate, mac os will recreate a new certificate for the active developer account automatically


                2. Run your app in your iDevice. You need to enter your system password to add newly created certificate into the Keychain.



                If in second run it says




                Your iPhone has denied the launch request




                just goto:



                Product > scheme > edit scheme: uncheck "debug executable"



                I hope it solves your problem.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 14 at 20:10

























                answered Mar 14 at 19:54









                AlirezakAlirezak

                1268




                1268








                • 3





                  it doesnt! i cant debug or use location on the device

                  – Renan Aguiar
                  Mar 14 at 21:40











                • Hi, thanks. How to go to "keychain App" please? What path?

                  – Franky
                  Mar 15 at 0:35













                • You've probably found it by now, but the Keychain Access app is in Applications->Utilities

                  – David Gish
                  Mar 15 at 5:00











                • i still cant debug using iphone with those answers

                  – Renan Aguiar
                  Mar 15 at 15:26














                • 3





                  it doesnt! i cant debug or use location on the device

                  – Renan Aguiar
                  Mar 14 at 21:40











                • Hi, thanks. How to go to "keychain App" please? What path?

                  – Franky
                  Mar 15 at 0:35













                • You've probably found it by now, but the Keychain Access app is in Applications->Utilities

                  – David Gish
                  Mar 15 at 5:00











                • i still cant debug using iphone with those answers

                  – Renan Aguiar
                  Mar 15 at 15:26








                3




                3





                it doesnt! i cant debug or use location on the device

                – Renan Aguiar
                Mar 14 at 21:40





                it doesnt! i cant debug or use location on the device

                – Renan Aguiar
                Mar 14 at 21:40













                Hi, thanks. How to go to "keychain App" please? What path?

                – Franky
                Mar 15 at 0:35







                Hi, thanks. How to go to "keychain App" please? What path?

                – Franky
                Mar 15 at 0:35















                You've probably found it by now, but the Keychain Access app is in Applications->Utilities

                – David Gish
                Mar 15 at 5:00





                You've probably found it by now, but the Keychain Access app is in Applications->Utilities

                – David Gish
                Mar 15 at 5:00













                i still cant debug using iphone with those answers

                – Renan Aguiar
                Mar 15 at 15:26





                i still cant debug using iphone with those answers

                – Renan Aguiar
                Mar 15 at 15:26











                4














                Maybe this might help? Apple Developer Forums



                Talks about Apple refusing to build iOS applications under SDK 12 as of March 2019 (OP from Dec 2018).



                I've not yet tried this but it may be linked to the issue, I have a free developer account and am also experiencing this bug.



                Here's a screenshot incase the link changes (screenshot 1 below).



                Edit: this is the link from the first screenshot (screenshot 2 below)




                1sdk_12_issue



                2iphone_xs_max_support_image







                share|improve this answer



















                • 1





                  Interesting, but we have XCode 10.1 showing this problem and 10.1 does support SDK 12.

                  – Ali Beadle
                  Mar 13 at 19:34











                • Okay sure thing, I've managed to get a temp workaround by cleaning the project in Xcode and only running in debug via my IDE (I'm using VSC) through a simulator.

                  – Jake
                  Mar 13 at 19:38






                • 4





                  As the OP said, simulators seem unaffected by the problem. It appears to only affect real devices.

                  – Ali Beadle
                  Mar 13 at 20:07






                • 3





                  Yeah I haven't been able to load on a physical device. Hope Apple fixes this soon.

                  – Jake
                  Mar 13 at 21:54
















                4














                Maybe this might help? Apple Developer Forums



                Talks about Apple refusing to build iOS applications under SDK 12 as of March 2019 (OP from Dec 2018).



                I've not yet tried this but it may be linked to the issue, I have a free developer account and am also experiencing this bug.



                Here's a screenshot incase the link changes (screenshot 1 below).



                Edit: this is the link from the first screenshot (screenshot 2 below)




                1sdk_12_issue



                2iphone_xs_max_support_image







                share|improve this answer



















                • 1





                  Interesting, but we have XCode 10.1 showing this problem and 10.1 does support SDK 12.

                  – Ali Beadle
                  Mar 13 at 19:34











                • Okay sure thing, I've managed to get a temp workaround by cleaning the project in Xcode and only running in debug via my IDE (I'm using VSC) through a simulator.

                  – Jake
                  Mar 13 at 19:38






                • 4





                  As the OP said, simulators seem unaffected by the problem. It appears to only affect real devices.

                  – Ali Beadle
                  Mar 13 at 20:07






                • 3





                  Yeah I haven't been able to load on a physical device. Hope Apple fixes this soon.

                  – Jake
                  Mar 13 at 21:54














                4












                4








                4







                Maybe this might help? Apple Developer Forums



                Talks about Apple refusing to build iOS applications under SDK 12 as of March 2019 (OP from Dec 2018).



                I've not yet tried this but it may be linked to the issue, I have a free developer account and am also experiencing this bug.



                Here's a screenshot incase the link changes (screenshot 1 below).



                Edit: this is the link from the first screenshot (screenshot 2 below)




                1sdk_12_issue



                2iphone_xs_max_support_image







                share|improve this answer













                Maybe this might help? Apple Developer Forums



                Talks about Apple refusing to build iOS applications under SDK 12 as of March 2019 (OP from Dec 2018).



                I've not yet tried this but it may be linked to the issue, I have a free developer account and am also experiencing this bug.



                Here's a screenshot incase the link changes (screenshot 1 below).



                Edit: this is the link from the first screenshot (screenshot 2 below)




                1sdk_12_issue



                2iphone_xs_max_support_image








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 13 at 19:19









                JakeJake

                3821521




                3821521








                • 1





                  Interesting, but we have XCode 10.1 showing this problem and 10.1 does support SDK 12.

                  – Ali Beadle
                  Mar 13 at 19:34











                • Okay sure thing, I've managed to get a temp workaround by cleaning the project in Xcode and only running in debug via my IDE (I'm using VSC) through a simulator.

                  – Jake
                  Mar 13 at 19:38






                • 4





                  As the OP said, simulators seem unaffected by the problem. It appears to only affect real devices.

                  – Ali Beadle
                  Mar 13 at 20:07






                • 3





                  Yeah I haven't been able to load on a physical device. Hope Apple fixes this soon.

                  – Jake
                  Mar 13 at 21:54














                • 1





                  Interesting, but we have XCode 10.1 showing this problem and 10.1 does support SDK 12.

                  – Ali Beadle
                  Mar 13 at 19:34











                • Okay sure thing, I've managed to get a temp workaround by cleaning the project in Xcode and only running in debug via my IDE (I'm using VSC) through a simulator.

                  – Jake
                  Mar 13 at 19:38






                • 4





                  As the OP said, simulators seem unaffected by the problem. It appears to only affect real devices.

                  – Ali Beadle
                  Mar 13 at 20:07






                • 3





                  Yeah I haven't been able to load on a physical device. Hope Apple fixes this soon.

                  – Jake
                  Mar 13 at 21:54








                1




                1





                Interesting, but we have XCode 10.1 showing this problem and 10.1 does support SDK 12.

                – Ali Beadle
                Mar 13 at 19:34





                Interesting, but we have XCode 10.1 showing this problem and 10.1 does support SDK 12.

                – Ali Beadle
                Mar 13 at 19:34













                Okay sure thing, I've managed to get a temp workaround by cleaning the project in Xcode and only running in debug via my IDE (I'm using VSC) through a simulator.

                – Jake
                Mar 13 at 19:38





                Okay sure thing, I've managed to get a temp workaround by cleaning the project in Xcode and only running in debug via my IDE (I'm using VSC) through a simulator.

                – Jake
                Mar 13 at 19:38




                4




                4





                As the OP said, simulators seem unaffected by the problem. It appears to only affect real devices.

                – Ali Beadle
                Mar 13 at 20:07





                As the OP said, simulators seem unaffected by the problem. It appears to only affect real devices.

                – Ali Beadle
                Mar 13 at 20:07




                3




                3





                Yeah I haven't been able to load on a physical device. Hope Apple fixes this soon.

                – Jake
                Mar 13 at 21:54





                Yeah I haven't been able to load on a physical device. Hope Apple fixes this soon.

                – Jake
                Mar 13 at 21:54











                3














                I am finally able to deploy to our iOS devices again. Here are the steps I took to make it work.



                First, I followed all 10 steps in Zameer's answer here. I have copied them below:





                1. Open your project in XCode.

                2. Select your project from the project navigator and then select your target from the column.

                3. Click on the General tab and under the Signing section, make sure "Automatically manage signing" is enabled.

                4. Click on the Capabilities tab and turn On both the "App Groups" and "Keychain Sharing" settings. This might raise an
                  "Automatic signing failed" popup error, just click cancel to make it go away.

                5. This should generate a entitlements file for you named nameProject.entitlements in the project folder of your project navigator.

                6. Move this entitlements file outside of the folder, just below your project file.

                7. Select your target again and return to the Capabilities tab to turn Off both the "App Groups" and "Keychain Sharing"
                  settings. This again might raise an "Automatic signing failed" popup
                  error, just click cancel to make it go away.

                8. Now select your project above the target and go to Building Settings tab.

                9. Scroll down to the Code Signing Identity setting under the Signing header and select iOS Developer from each drop down.

                10. Under the above Signing header, double click the text field beside the Code Signing Entitlements and enter the name of your
                  entitlements file, nameProject.entitlements.




                After completing those 10 steps, the 2 red entitlement error messages in XCode went away and I was able to build and deploy the XCode test app to the iPhone and run it.



                Although that XCode test app could build and deploy, I develop on a PC using Xamarin and I was unable to deploy my Xamarin.iOS application to my iOS devices and kept getting an error in Visual Studio: the executable was signed with invalid entitlements. I did the following things and now I can deploy my Xamarin app and run it on my iOS devices:




                1. I deleted the provisioning profile from the Mac in the ~/Library/MobileDevice/Provisioning Profiles directory. XCode immediately generated a new provisioining profile (I'm not sure if this step was necessary but I'm just writing it because that's what I did).

                2. I changed my Xamarin.iOS.csproj file and removed Entitlements.plist from the CodesignEntitlements element so it now just looks like <CodesignEntitlements></CodesignEntitlements>. Visual Studio automatically added two elements to the same propertygroup in the project which are probably not necessary but I thought I'd mention: <CodesignExtraArgs /> and <CodesignResourceRules />.






                share|improve this answer




























                  3














                  I am finally able to deploy to our iOS devices again. Here are the steps I took to make it work.



                  First, I followed all 10 steps in Zameer's answer here. I have copied them below:





                  1. Open your project in XCode.

                  2. Select your project from the project navigator and then select your target from the column.

                  3. Click on the General tab and under the Signing section, make sure "Automatically manage signing" is enabled.

                  4. Click on the Capabilities tab and turn On both the "App Groups" and "Keychain Sharing" settings. This might raise an
                    "Automatic signing failed" popup error, just click cancel to make it go away.

                  5. This should generate a entitlements file for you named nameProject.entitlements in the project folder of your project navigator.

                  6. Move this entitlements file outside of the folder, just below your project file.

                  7. Select your target again and return to the Capabilities tab to turn Off both the "App Groups" and "Keychain Sharing"
                    settings. This again might raise an "Automatic signing failed" popup
                    error, just click cancel to make it go away.

                  8. Now select your project above the target and go to Building Settings tab.

                  9. Scroll down to the Code Signing Identity setting under the Signing header and select iOS Developer from each drop down.

                  10. Under the above Signing header, double click the text field beside the Code Signing Entitlements and enter the name of your
                    entitlements file, nameProject.entitlements.




                  After completing those 10 steps, the 2 red entitlement error messages in XCode went away and I was able to build and deploy the XCode test app to the iPhone and run it.



                  Although that XCode test app could build and deploy, I develop on a PC using Xamarin and I was unable to deploy my Xamarin.iOS application to my iOS devices and kept getting an error in Visual Studio: the executable was signed with invalid entitlements. I did the following things and now I can deploy my Xamarin app and run it on my iOS devices:




                  1. I deleted the provisioning profile from the Mac in the ~/Library/MobileDevice/Provisioning Profiles directory. XCode immediately generated a new provisioining profile (I'm not sure if this step was necessary but I'm just writing it because that's what I did).

                  2. I changed my Xamarin.iOS.csproj file and removed Entitlements.plist from the CodesignEntitlements element so it now just looks like <CodesignEntitlements></CodesignEntitlements>. Visual Studio automatically added two elements to the same propertygroup in the project which are probably not necessary but I thought I'd mention: <CodesignExtraArgs /> and <CodesignResourceRules />.






                  share|improve this answer


























                    3












                    3








                    3







                    I am finally able to deploy to our iOS devices again. Here are the steps I took to make it work.



                    First, I followed all 10 steps in Zameer's answer here. I have copied them below:





                    1. Open your project in XCode.

                    2. Select your project from the project navigator and then select your target from the column.

                    3. Click on the General tab and under the Signing section, make sure "Automatically manage signing" is enabled.

                    4. Click on the Capabilities tab and turn On both the "App Groups" and "Keychain Sharing" settings. This might raise an
                      "Automatic signing failed" popup error, just click cancel to make it go away.

                    5. This should generate a entitlements file for you named nameProject.entitlements in the project folder of your project navigator.

                    6. Move this entitlements file outside of the folder, just below your project file.

                    7. Select your target again and return to the Capabilities tab to turn Off both the "App Groups" and "Keychain Sharing"
                      settings. This again might raise an "Automatic signing failed" popup
                      error, just click cancel to make it go away.

                    8. Now select your project above the target and go to Building Settings tab.

                    9. Scroll down to the Code Signing Identity setting under the Signing header and select iOS Developer from each drop down.

                    10. Under the above Signing header, double click the text field beside the Code Signing Entitlements and enter the name of your
                      entitlements file, nameProject.entitlements.




                    After completing those 10 steps, the 2 red entitlement error messages in XCode went away and I was able to build and deploy the XCode test app to the iPhone and run it.



                    Although that XCode test app could build and deploy, I develop on a PC using Xamarin and I was unable to deploy my Xamarin.iOS application to my iOS devices and kept getting an error in Visual Studio: the executable was signed with invalid entitlements. I did the following things and now I can deploy my Xamarin app and run it on my iOS devices:




                    1. I deleted the provisioning profile from the Mac in the ~/Library/MobileDevice/Provisioning Profiles directory. XCode immediately generated a new provisioining profile (I'm not sure if this step was necessary but I'm just writing it because that's what I did).

                    2. I changed my Xamarin.iOS.csproj file and removed Entitlements.plist from the CodesignEntitlements element so it now just looks like <CodesignEntitlements></CodesignEntitlements>. Visual Studio automatically added two elements to the same propertygroup in the project which are probably not necessary but I thought I'd mention: <CodesignExtraArgs /> and <CodesignResourceRules />.






                    share|improve this answer













                    I am finally able to deploy to our iOS devices again. Here are the steps I took to make it work.



                    First, I followed all 10 steps in Zameer's answer here. I have copied them below:





                    1. Open your project in XCode.

                    2. Select your project from the project navigator and then select your target from the column.

                    3. Click on the General tab and under the Signing section, make sure "Automatically manage signing" is enabled.

                    4. Click on the Capabilities tab and turn On both the "App Groups" and "Keychain Sharing" settings. This might raise an
                      "Automatic signing failed" popup error, just click cancel to make it go away.

                    5. This should generate a entitlements file for you named nameProject.entitlements in the project folder of your project navigator.

                    6. Move this entitlements file outside of the folder, just below your project file.

                    7. Select your target again and return to the Capabilities tab to turn Off both the "App Groups" and "Keychain Sharing"
                      settings. This again might raise an "Automatic signing failed" popup
                      error, just click cancel to make it go away.

                    8. Now select your project above the target and go to Building Settings tab.

                    9. Scroll down to the Code Signing Identity setting under the Signing header and select iOS Developer from each drop down.

                    10. Under the above Signing header, double click the text field beside the Code Signing Entitlements and enter the name of your
                      entitlements file, nameProject.entitlements.




                    After completing those 10 steps, the 2 red entitlement error messages in XCode went away and I was able to build and deploy the XCode test app to the iPhone and run it.



                    Although that XCode test app could build and deploy, I develop on a PC using Xamarin and I was unable to deploy my Xamarin.iOS application to my iOS devices and kept getting an error in Visual Studio: the executable was signed with invalid entitlements. I did the following things and now I can deploy my Xamarin app and run it on my iOS devices:




                    1. I deleted the provisioning profile from the Mac in the ~/Library/MobileDevice/Provisioning Profiles directory. XCode immediately generated a new provisioining profile (I'm not sure if this step was necessary but I'm just writing it because that's what I did).

                    2. I changed my Xamarin.iOS.csproj file and removed Entitlements.plist from the CodesignEntitlements element so it now just looks like <CodesignEntitlements></CodesignEntitlements>. Visual Studio automatically added two elements to the same propertygroup in the project which are probably not necessary but I thought I'd mention: <CodesignExtraArgs /> and <CodesignResourceRules />.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 14 at 16:29









                    Aaron TAaron T

                    364213




                    364213























                        2














                        For me, it finally works again. Either they just fixed it or any of my other steps helped:




                        1. Uninstall Xcode and all related files (using AppCleaner)

                        2. Install Xcode via the App Store

                        3. Change the Bundle Identifier of the App

                        4. Remove all "iOS Developer" Keys from Keychain






                        share|improve this answer
























                        • This fixed the problem for me at first, but then it came back again a few minutes later

                          – Ava
                          Mar 14 at 13:46
















                        2














                        For me, it finally works again. Either they just fixed it or any of my other steps helped:




                        1. Uninstall Xcode and all related files (using AppCleaner)

                        2. Install Xcode via the App Store

                        3. Change the Bundle Identifier of the App

                        4. Remove all "iOS Developer" Keys from Keychain






                        share|improve this answer
























                        • This fixed the problem for me at first, but then it came back again a few minutes later

                          – Ava
                          Mar 14 at 13:46














                        2












                        2








                        2







                        For me, it finally works again. Either they just fixed it or any of my other steps helped:




                        1. Uninstall Xcode and all related files (using AppCleaner)

                        2. Install Xcode via the App Store

                        3. Change the Bundle Identifier of the App

                        4. Remove all "iOS Developer" Keys from Keychain






                        share|improve this answer













                        For me, it finally works again. Either they just fixed it or any of my other steps helped:




                        1. Uninstall Xcode and all related files (using AppCleaner)

                        2. Install Xcode via the App Store

                        3. Change the Bundle Identifier of the App

                        4. Remove all "iOS Developer" Keys from Keychain







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Mar 14 at 5:45









                        PaulPaul

                        4701820




                        4701820













                        • This fixed the problem for me at first, but then it came back again a few minutes later

                          – Ava
                          Mar 14 at 13:46



















                        • This fixed the problem for me at first, but then it came back again a few minutes later

                          – Ava
                          Mar 14 at 13:46

















                        This fixed the problem for me at first, but then it came back again a few minutes later

                        – Ava
                        Mar 14 at 13:46





                        This fixed the problem for me at first, but then it came back again a few minutes later

                        – Ava
                        Mar 14 at 13:46











                        1














                        Here is a temporary workaround





                        1. Change Bundle Identifier : Target > General > Identity > Bundle Identifier (Set this to a different value than it is right now)


                        2. Change Version : Target > General > Identity > Version


                        3. Disable debug executable : Product > Scheme > Edit Scheme, (Uncheck the box that says "debug executable")


                        4. Delete Provisioning Profiles: ~/Library/MobileDevice/Provisioning Profiles delete everything in this folder


                        You now should be able to build and run projects on simulators and devices.






                        share|improve this answer
























                        • now i get it: Unable to launch /private/var/containers/Bundle/Application/52553D96-4B6A-4680-B77C-C04895B7759C/dois.app

                          – Renan Aguiar
                          Mar 16 at 9:35
















                        1














                        Here is a temporary workaround





                        1. Change Bundle Identifier : Target > General > Identity > Bundle Identifier (Set this to a different value than it is right now)


                        2. Change Version : Target > General > Identity > Version


                        3. Disable debug executable : Product > Scheme > Edit Scheme, (Uncheck the box that says "debug executable")


                        4. Delete Provisioning Profiles: ~/Library/MobileDevice/Provisioning Profiles delete everything in this folder


                        You now should be able to build and run projects on simulators and devices.






                        share|improve this answer
























                        • now i get it: Unable to launch /private/var/containers/Bundle/Application/52553D96-4B6A-4680-B77C-C04895B7759C/dois.app

                          – Renan Aguiar
                          Mar 16 at 9:35














                        1












                        1








                        1







                        Here is a temporary workaround





                        1. Change Bundle Identifier : Target > General > Identity > Bundle Identifier (Set this to a different value than it is right now)


                        2. Change Version : Target > General > Identity > Version


                        3. Disable debug executable : Product > Scheme > Edit Scheme, (Uncheck the box that says "debug executable")


                        4. Delete Provisioning Profiles: ~/Library/MobileDevice/Provisioning Profiles delete everything in this folder


                        You now should be able to build and run projects on simulators and devices.






                        share|improve this answer













                        Here is a temporary workaround





                        1. Change Bundle Identifier : Target > General > Identity > Bundle Identifier (Set this to a different value than it is right now)


                        2. Change Version : Target > General > Identity > Version


                        3. Disable debug executable : Product > Scheme > Edit Scheme, (Uncheck the box that says "debug executable")


                        4. Delete Provisioning Profiles: ~/Library/MobileDevice/Provisioning Profiles delete everything in this folder


                        You now should be able to build and run projects on simulators and devices.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Mar 15 at 23:47









                        Mitch WolfeMitch Wolfe

                        405




                        405













                        • now i get it: Unable to launch /private/var/containers/Bundle/Application/52553D96-4B6A-4680-B77C-C04895B7759C/dois.app

                          – Renan Aguiar
                          Mar 16 at 9:35



















                        • now i get it: Unable to launch /private/var/containers/Bundle/Application/52553D96-4B6A-4680-B77C-C04895B7759C/dois.app

                          – Renan Aguiar
                          Mar 16 at 9:35

















                        now i get it: Unable to launch /private/var/containers/Bundle/Application/52553D96-4B6A-4680-B77C-C04895B7759C/dois.app

                        – Renan Aguiar
                        Mar 16 at 9:35





                        now i get it: Unable to launch /private/var/containers/Bundle/Application/52553D96-4B6A-4680-B77C-C04895B7759C/dois.app

                        – Renan Aguiar
                        Mar 16 at 9:35











                        1














                        One other potential source of this error. If you do not have a valid signed development certificate setup within your Xcode environment it will throw similar errors as posted by OP.



                        you can check out your development certs status following the apple link here






                        share|improve this answer


























                        • i use the free account.. by following whatever people say, now i get a error about waiting 7 days..... im not going to pay for testing it on my device.

                          – Renan Aguiar
                          Mar 19 at 1:47
















                        1














                        One other potential source of this error. If you do not have a valid signed development certificate setup within your Xcode environment it will throw similar errors as posted by OP.



                        you can check out your development certs status following the apple link here






                        share|improve this answer


























                        • i use the free account.. by following whatever people say, now i get a error about waiting 7 days..... im not going to pay for testing it on my device.

                          – Renan Aguiar
                          Mar 19 at 1:47














                        1












                        1








                        1







                        One other potential source of this error. If you do not have a valid signed development certificate setup within your Xcode environment it will throw similar errors as posted by OP.



                        you can check out your development certs status following the apple link here






                        share|improve this answer















                        One other potential source of this error. If you do not have a valid signed development certificate setup within your Xcode environment it will throw similar errors as posted by OP.



                        you can check out your development certs status following the apple link here







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Mar 19 at 8:31

























                        answered Mar 18 at 22:06









                        ScottishUserScottishUser

                        5921128




                        5921128













                        • i use the free account.. by following whatever people say, now i get a error about waiting 7 days..... im not going to pay for testing it on my device.

                          – Renan Aguiar
                          Mar 19 at 1:47



















                        • i use the free account.. by following whatever people say, now i get a error about waiting 7 days..... im not going to pay for testing it on my device.

                          – Renan Aguiar
                          Mar 19 at 1:47

















                        i use the free account.. by following whatever people say, now i get a error about waiting 7 days..... im not going to pay for testing it on my device.

                        – Renan Aguiar
                        Mar 19 at 1:47





                        i use the free account.. by following whatever people say, now i get a error about waiting 7 days..... im not going to pay for testing it on my device.

                        – Renan Aguiar
                        Mar 19 at 1:47











                        1














                        I got it to work by doing the following steps:




                        1. Go to xCode

                        2. Preferences

                        3. Accounts

                        4. Manage certificates

                        5. Plus sign

                        6. iOS Development

                        7. Done

                        8. Download manual Profiles

                        9. Close

                        10. Go to your target

                        11. Change development team to none

                        12. Change development team to your previous team

                        13. Enjoy!






                        share|improve this answer




























                          1














                          I got it to work by doing the following steps:




                          1. Go to xCode

                          2. Preferences

                          3. Accounts

                          4. Manage certificates

                          5. Plus sign

                          6. iOS Development

                          7. Done

                          8. Download manual Profiles

                          9. Close

                          10. Go to your target

                          11. Change development team to none

                          12. Change development team to your previous team

                          13. Enjoy!






                          share|improve this answer


























                            1












                            1








                            1







                            I got it to work by doing the following steps:




                            1. Go to xCode

                            2. Preferences

                            3. Accounts

                            4. Manage certificates

                            5. Plus sign

                            6. iOS Development

                            7. Done

                            8. Download manual Profiles

                            9. Close

                            10. Go to your target

                            11. Change development team to none

                            12. Change development team to your previous team

                            13. Enjoy!






                            share|improve this answer













                            I got it to work by doing the following steps:




                            1. Go to xCode

                            2. Preferences

                            3. Accounts

                            4. Manage certificates

                            5. Plus sign

                            6. iOS Development

                            7. Done

                            8. Download manual Profiles

                            9. Close

                            10. Go to your target

                            11. Change development team to none

                            12. Change development team to your previous team

                            13. Enjoy!







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 22 hours ago









                            J. DoeJ. Doe

                            3,06511335




                            3,06511335

















                                protected by Bhargav Rao Mar 13 at 5:58



                                Thank you for your interest in this question.
                                Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                Would you like to answer one of these unanswered questions instead?



                                Popular posts from this blog

                                is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

                                How do i solve the “ No module named 'mlxtend' ” issue on Jupyter?

                                Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...