Skip to content

Commit

Permalink
Can't find Xcode version (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch authored Dec 22, 2023
1 parent 2ea7e10 commit 69ab17a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Troubleshoot known issues"
description: "Learn about .NET MAUI known issues and troubleshooting you can do to resolve these issues."
ms.date: 10/02/2023
ms.date: 12/22/2023
---

# Troubleshooting known issues
Expand Down Expand Up @@ -171,6 +171,18 @@ If you receive the error "Could not find a valid Xcode app bundle at '/Library/D
sudo xcode-select --reset
```

## Xcode version can't be located

In some scenarios, building a .NET MAUI app on iOS or Mac Catalyst may attempt to use an Xcode version that's no longer installed. When this occurs you'll receive an error message similar to:

```
xcodebuild: error: SDK "/Applications/Xcode_14.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located.
xcrun: error: sh -c '/Applications/Xcode_14.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_14.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find dsymutil 2> /dev/null' failed with exit code 16384: (null) (errno=Invalid argument)
xcrun: error: unable to find utility "dsymutil", not a developer tool or in PATH
```

In this scenario, you should update the *~/Library/Preferences/Xamarin/Settings.plist* file to specify the version of Xcode that's installed on your machine.

::: moniker range=">=net-maui-8.0"

## Diagnose issues in Blazor Hybrid apps
Expand Down

0 comments on commit 69ab17a

Please sign in to comment.