Json Data Corrupted Error After Updating macOS to 14.2.1 and Xcode to 15.2 with ixguard Toolchain

105 views Asked by At

After updating my macOS to version 14.2.1 and Xcode to version 15.2, I am encountering an issue when attempting to run my iOS app on a physical iPhone device. The app runs successfully in the simulator, but when deploying to the iPhone, I receive the following error:

dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character 'i' around line 1, column 2." UserInfo={NSJSONSerializationErrorIndex=1, NSDebugDescription=Unexpected character 'i' around line 1, column 2.})))

run on simulator fine but got issue with physical device with toolchain ixguard

1

There are 1 answers

1
Joshua Sebastin On

Quick Fix: Change the ToolChains to Xcode 15.2 or which ever version you have to run the code in Physical device.