ios - 使用 Xcode13 : The data couldn’t be read because it isn’t in the correct format 导出存档

标签 ios xcode xcode13

Xcode 13.2.1 使用“分发应用程序”为开发团队导出存档失败

Xcode 13.1 - 在同一台 MacBook 上工作以导出 IPA 以进行开发分发。没有错误!!

Xcode13.2.1“验证应用程序”成功,错误“无法读取数据,因为它的格式不正确。”仅在分布中发生。

dev-export distribute-validate

错误:由于格式不正确,无法读取数据。

来自标准日志:

2022-02-16 00:42:46 +0000  ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
2022-02-16 00:42:46 +0000  /Users/dev.d/.gem/ruby/2.6.3/gems/CFPropertyList-3.0.3/lib/cfpropertylist/rbCFPropertyList.rb:83: warning: assigned but unused variable - temp
2022-02-16 00:42:46 +0000  Ignoring ffi-1.14.2 because its extensions are not built. Try: gem pristine ffi --version 1.14.2
2022-02-16 00:42:46 +0000  Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1
2022-02-16 00:42:46 +0000  Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
2022-02-16 00:42:46 +0000  Ignoring nokogiri-1.10.3 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.3
2022-02-16 00:42:46 +0000  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- sqlite3 (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:24:in `<main>'
2022-02-16 00:42:46 +0000  /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool exited with 1
2022-02-16 00:42:46 +0000  ipatool JSON: (null)

最佳答案

转到 Xcode 文件夹 > 右键单击​​打开 Get Info > 确保已选中使用 Rosetta 打开

别忘了退出 Xcode 然后打开它

settings

关于ios - 使用 Xcode13 : The data couldn’t be read because it isn’t in the correct format 导出存档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71135230/

相关文章:

javascript - onClick 中的嵌套函数调用未触发

ios - xcode预览模拟器继承自哪里?

objective-c - UITextfield.text 返回 null

ios - 命令 CompileSwiftSources 失败,退出代码为非零 XCode 13

Swift 5.5 并发 : creating a task with custom error type

php - REST API 安全设计

ios - 如何解决 NSURLError : The network connection was lost?

ios - 如何使用 Swift/ScriptingBridge 获取 iTunes 中当前轨道的艺术作品?

ios - 考虑制作一个开源 iOS 应用程序,我应该在我的 .gitignore 中添加什么?

ios - 顶部和底部没有 Storyboard黑色面板的应用程序