使用 ixguard 工具链将 macOS 更新到 14.2.1 并将 Xcode 更新到 15.2 后出现 Json 数据损坏错误

问题描述 投票:0回答:1

将 macOS 更新到版本 14.2.1 并将 Xcode 更新到版本 15.2 后,我在尝试在物理 iPhone 设备上运行 iOS 应用程序时遇到问题。该应用程序在模拟器中成功运行,但是当部署到 iPhone 时,我收到以下错误:

dataCorrupted(Swift.DecodingError.Context(codingPath:[],debugDescription:“给定的数据不是有效的JSON。”,underlyingError:可选(Error Domain = NSCocoaErrorDomain Code = 3840“第1行第2列周围出现意外字符“i”) ." UserInfo={NSJSONSerializationErrorIndex=1, NSDebugDescription=第 1 行第 2 列周围出现意外字符“i”。})))

在模拟器上运行良好,但使用工具链 ixguard 时遇到物理设备问题

json xcode toolchain xcode15 ixguard
1个回答
0
投票

快速修复:将工具链更改为 Xcode 15.2 或您必须在物理设备中运行代码的任何版本。

© www.soinside.com 2019 - 2024. All rights reserved.