skip to Main Content

I am working on an iOS app for my office. If I disable the Debug executable option from Edit Scheme the app runs on the device perfectly. But In that mode, no breakpoints work for debugging. But If I enable the Debug executable the app shows the above error. All I want is to run the app and also debug it at the same time. Does anyone have any idea? I saw a lot of posts related to this error and the uncheck of Debug executable worked but I need the breakpoints thing. Thanks in advance
enter image description here
enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    I was using an Adhoc profile instead of a Development profile. Creating a development profile and using it fixed my problem.


  2. Try this approach from Apple’s forum:

    This info solved it for me:
    https://developer.apple.com/support/expiration/
    Apparently apple issued a new certificate to sign apps with, xcode versions that are ‘too old’ don’t automatically add this new certificate to the
    keychain. I had to manually download the new certificate and drop it
    in the KeyChain (Keychains: login, category: certificates). I didn’t
    change anything to the scheme and also didn’t delete or fix any
    certificates..

    By the way, there’s a temporary workaround could be helpful (also mentioned in the link above) – change Launch parameter to Ask on Launch

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search