Forum Xamarin.iOS

Could not connect to the debugger

_Jai_Jai USMember ✭✭

I am getting this on iPhone only. On IPhoneSimulator its dubugging step by step.

Best Answer

Answers

  • NurBademNurBadem Member ✭✭

    The same issue here... No solution yet?

  • JohnHJohnH GBMember ✭✭✭✭✭

    @NurBadem said:
    The same issue here... No solution yet?

    Have you checked your developer provisioning profiles?

  • NurBademNurBadem Member ✭✭

    Yes I have.
    Keeps telling me "Waiting for the debugger to connect to my iphone on port 1000 via WIFI"
    Tried via USB as well.
    I can only see the App icon on my device but that's it.
    Changed supported architectures to "ARMv7+ARMv7s+ARM64" and
    Linker behavior to "Link All" under iOS Build but nothing has changed.

  • NurBademNurBadem Member ✭✭

    @JohnHair
    The problem was on the iphone itself, changing it to a new one and creating a new provisioning profile, fixed it.
    Thanks again!

  • JohnHJohnH GBMember ✭✭✭✭✭

    @NurBadem said:
    @JohnHair
    The problem was on the iphone itself, changing it to a new one and creating a new provisioning profile, fixed it.
    Thanks again!

    Glad you got it sorted and thank you for reporting back!
    Is the previous iPhone an older model? Any idea why it didn't work? Maybe a new provisioning profile including the previous iPhone would have worked.

  • DannyCDannyC US ✭✭✭✭

    Just FYI, when this occurs you can tap the app to manually start it and debugging will start. :smile:

  • NurBademNurBadem Member ✭✭

    @JohnHair
    Yes it was an old iPhone.

  • System.AshSystem.Ash AUMember ✭✭

    @NurBadem Do you mind elaborating a bit about what that problem was on the iPhone itself?

    @JohnH :

    So you have setup wifi debugging in Xcode?

    I'm debugging via USB

    You added your iPhone to your provisioning profile?

    Yes. It runs on the device, just can't get the debugger to connect to it.

    Are you using Visual Studio 4 Mac, or Visual Studio on a PC and paired with a Mac?

    VS for Mac

    Is your mac on the latest MacOS and latest Xcode?

    Yes

  • System.AshSystem.Ash AUMember ✭✭

    Nevermind, restating my Mac for a second time fixed it.

  • ManInTheLoftManInTheLoft GBBeta, University ✭✭

    I work with an old iPhone 5. A new iOS project in VS for mac has a default build architecture of arm64, too advanced for my ancient iPhone! I therefore had to change the architecture to arm7s/arm64.

    MITL

Sign In or Register to comment.