Error when attempting to connect to a Mac

Aaron Robertson-Hodder 0 Reputation points
2025-02-01T04:00:48.85+00:00

I am getting and error when attempting to connect to my Mac to build my Maui App. The UI says Error: 'I' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.

The log files show the error details below. I have cleared all the caches, removed and re-added the Mac, restarted both devices and updated to the latest VS. I have also installed Xcode 16 and verified that the Simulator runs from there.

Does anyone have any ideas what might be causing this issue?

Xamarin.Messaging.Integration.State.ServerStateContext Information: 0 : Server State transition from DisconnectedState to DisconnectedState on MacBook Pro (3) (192.X8.X.XX): 02/01/2025 03:55:56Z

DateTime=2025-02-01T03:55:56.5291350Z: 02/01/2025 03:55:56Z
```   at System.Text.Json.Utf8JsonReader.Read()

   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)

   at System.Text.Json.JsonDocument.ParseUnrented(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, JsonTokenType tokenType)

   at System.Text.Json.JsonDocument.ParseValue(ReadOnlyMemory`1 json, JsonDocumentOptions options)

   at System.Text.Json.Nodes.JsonNode.Parse(String json, Nullable`1 nodeOptions, JsonDocumentOptions documentOptions)

   at Xamarin.VisualStudio.IOS.MeXamarin.Messaging.Integration.State.ServerStateContext Error: 0 : 'I' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.

System.Text.Json.JsonReaderException: 'I' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.

   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)

   at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)

   at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first)

   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()

ssaging.RemoteSimulatorValidator.<ValidateAsync>d__11.MoveNext() in D:\a\_work\1\s\src\Core\VisualStudio.IOS\Messaging\Validators\RemoteSimulatorValidator.cs:line 59

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at Xamarin.Messaging.Integration.State.ValidatingState.<ExecuteValidatorsAsync>d__14.MoveNext() in D:\a\_work\1\s\src\Xamarin.Messaging.Integration\State\ValidatingState.cs:line 77: 02/01/2025 03:55:56Z
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,923 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,511 Reputation points Microsoft Vendor
    2025-02-10T09:08:54.6333333+00:00

    Hello,

    As you said, you solved the problem after installing a latest Xcode and location.

    Thanks for your sharing.

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.