导出IPA文件失败 [英] Export ipa file fails

查看:137
本文介绍了导出IPA文件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode v11.3,我尝试导出.IPA文件并收到此错误.

Using Xcode v11.3 I try to export my .IPA file and get this error.

导出期间发生错误.由于数据原因,无法读取数据格式不正确

An error occurred during export. The data couldn’t be read because of it isn’t in the correct format

这显示在IDEDistribution.standard.log

This is shown in IDEDistribution.standard.log

/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 -- cfpropertylist (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:15:in `<main>'
2020-02-05 07:57:11 +0000  /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool exited with 1
2020-02-05 07:57:11 +0000  ipatool JSON: (null)

我尝试了rvm use system,但徒劳无功.期待中的感谢.

I have tried rvm use system but in vain. Thanking in anticipation.

推荐答案

TL; DR

运行:

$ gem install CFPropertyList
$ gem install sqlite3

然后重新启动为我解决了该问题.

and then restarting solved it for me.

完整故事:

我遇到了同样的问题.谷歌搜索我发现这篇文章讨论了一个不同的问题,但为我指明了正确的方向:Ruby存在问题.

I've just had the same problem. Googling around I found this article which talks about a different problem, but pointed me to the right direction: there is an issue with Ruby.

然后我碰到了此问题,该问题侧重于无法加载这样的文件-错误消息的cfpropertylist 部分.

I then bumped into this issue which focused on the cannot load such file -- cfpropertylist part of the error message.

运行 gem install CFPropertyList 有效地使我向前迈了一步.这次,类似的错误抱怨 sqlite3 .再次运行 gem install sqlite3 应该可以解决问题.

Running gem install CFPropertyList effectively allowed me to move forward one more step. This time a similar error complained about sqlite3. Running gem install sqlite3, again, should solve the problem.

请注意,您需要在系统范围内安装SQLite( brew install sqlite ),并且出于任何原因都需要重新启动系统.

Please note that you need SQLite installed systemwide (brew install sqlite), and that you NEED to restart your system, for whatever reason.

这篇关于导出IPA文件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆