maui icon indicating copy to clipboard operation
maui copied to clipboard

Pair to Mac failed with the error “The Xcode license status couldn't be verified because Xcode has not been found...”

Open v-Lily opened this issue 2 years ago • 7 comments

Description

Pair to Mac failed with the error as below: image

The Xcode license status couldn't be verified because Xcode has not been found on the default location of the connected Mac. Having Xcode installed and functional is necessary in order to build and run iOS apps, so please check that Xcode is correctly installed and that the path specified under iOS Settings is correct.

Steps to Reproduce

  1. Install the build from the VS PR CloudBuild: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=6784435&view=ms.vss-build-web.run-extensions-tab
  2. Add a few feeds to your NuGet.config:
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
    <add key="dotnet7-internal" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/7.0.100-rc.2.22477.23-shipping/nuget/v3/index.json" />
    <add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
    <add key="dotnet6-internal" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/6.0.402-servicing.22476.26-shipping/nuget/v3/index.json" />
  </packageSources>
  <packageSourceCredentials>
    <dotnet7-internal>
      <add key="Username" value="[email protected]" />
      <add key="ClearTextPassword" value="PLACEHOLDER_YOUR_PAT_HERE" />
    </dotnet7-internal>
    <dotnet6-internal>
      <add key="Username" value="[email protected]" />
      <add key="ClearTextPassword" value="PLACEHOLDER_YOUR_PAT_HERE" />
    </dotnet6-internal>
  </packageSourceCredentials>
  1. If you want to pair with the mac build agent, follow these iinstructions: https://devdiv.visualstudio.com/DevDiv/_wiki/wikis/DevDiv.wiki/30321/Private-dotnet-SDK-and-workloads-Manual-Installation
  2. On the Windows machine, create a new Blazor Hybrid project on the command line using the following: dotnet new maui-blazor -o iOSWindowsProject
  3. Open the iOSWindowsProject solution with Visual Studio.
  4. Select the "Pair to Mac" option in the Visual Studio toolbar.
  5. Select the mac OS device that is connected to the network and press "Connect".
  6. In the next window, enter the username and password for the user account on the macOS machine.
  7. Connect the machine.

Actual Pair to mac failed. image After click “ok”, the waring will change image Continue click “ok”, it will show the error image

Note We try to the bellow resolutions, But it still doesn’t work.

  1. Reinstall Xcode
  2. Change IOS setting to give a Xcode path

image

  1. Try some commands on Mac, e.g:
 sudo xcode-select –reset
 sudo xcodebuild -license
 sudo xcode-select -s /Applications/Xcode.app

Link to public reproduction project repository

No

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 7.0.100-rc.2.22477.23

Did you find any workaround?

No

Relevant log output

The Xcode license status couldn't be verified because Xcode has not been found on the default location of the connected Mac. Having Xcode installed and functional is necessary in order to build and run iOS apps, so please check that Xcode is correctly installed and that the path specified under iOS Settings is correct.


The Xcode tools validation couldn't be performed because IDB has not been started successfully on the paired Mac, which is necessary in order to read the iOS Remote Settings. Having a non functional paired Mac or the Xcode tools not updated could cause unwanted behaviors. Please check the logs to see what happened with IDB initialization on the paired Mac.

The connection to the Mac has been lost in the middle of the process. Please try to connect again

v-Lily avatar Oct 12 '22 06:10 v-Lily

Seeing the same. image

kfrancis avatar Oct 12 '22 16:10 kfrancis

Thanks for the issue report @v-Lily! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the VS feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

This issue will be automatically closed in 3 days if there are no further comments.

ghost avatar Oct 12 '22 18:10 ghost

@PureWeen @TanayParikh @kfrancis This issue does not reproduce after installing the latest Dev17.4 VS and maui version (The detailed configuration info see here), I will continue to track this issue.

v-Lily avatar Oct 13 '22 08:10 v-Lily

Should we close out this issue in that case?

TanayParikh avatar Oct 13 '22 16:10 TanayParikh

Hi @v-Lily. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Oct 13 '22 22:10 ghost

@TanayParikh @PureWeen I'm not sure if this is an unstable bug, I will continue to track this issue for a week. If this issue doesn't reproduce I will close it.

v-Lily avatar Oct 14 '22 03:10 v-Lily

I am getting this issue as well after I updated to the latest VS Preview yesterday.

WebGoose avatar Oct 14 '22 11:10 WebGoose

This issue is being closed due to inactivity. If this issue is still affecting you, please follow the steps above to use the VS Feedback Tool to report the issue.

ghost avatar Oct 17 '22 12:10 ghost

I updated to the latest version of Visual studio both on mac and windows and I still get the same problem

Saulawa avatar Oct 23 '22 07:10 Saulawa

@v-Lily was this reported to VS? If so, can you please provide the VS issue here for tracking.

TanayParikh avatar Oct 25 '22 20:10 TanayParikh

@TanayParikh We haven't met this issue for two weeks, and there is no environment to reproduce the issue reported to VS. I will continue to track this issue.

v-Lily avatar Oct 26 '22 02:10 v-Lily

I updated to the latest version of Visual studio both on mac and windows and I still get the same problem

@Saulawa can you please report this to VS via the Report a Problem feature in VS. This assures the appropriate data is captured and routed to the right team.

TanayParikh avatar Oct 26 '22 05:10 TanayParikh

image

Same problem!!

JORGEGO avatar Nov 21 '22 10:11 JORGEGO

Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you!

ghost avatar Nov 21 '22 10:11 ghost

It seems fixed if you execute sudo xcode-select -r from Mac Terminal

JORGEGO avatar Nov 21 '22 10:11 JORGEGO

I am facing this issue in Visual Studio 17.4.3

HobDev avatar Dec 15 '22 13:12 HobDev

Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you!

ghost avatar Dec 15 '22 13:12 ghost

I met same problem, workaround is downgrade to xcode14.1

jingliancui avatar Dec 30 '22 09:12 jingliancui

@jingliancui I reported this bug on Visual Stuido Developer Community. The solution could help you.

HobDev avatar Dec 30 '22 10:12 HobDev