Bhagwat Singh
Bhagwat Singh

Reputation: 1

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

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

Upvotes: 0

Views: 395

Answers (1)

Joshua Sebastin
Joshua Sebastin

Reputation: 1

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

Upvotes: 0

Related Questions