简体   繁体   English

导出 ipa 文件失败

[英]Export ipa file fails

Using Xcode v11.3 I try to export my.IPA file and get this error.使用 Xcode v11.3 我尝试导出 my.IPA 文件并收到此错误。

An error occurred during export.导出时出错。 The data couldn't be read because of it isn't in the correct format无法读取数据,因为它的格式不正确

This is shown in IDEDistribution.standard.log这显示在 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)

I have tried rvm use system but in vain.我试过 rvm use system 但没有成功。 Thanking in anticipation.感谢期待。

TL;DR TL; 博士

Running:跑步:

$ gem install CFPropertyList
$ gem install sqlite3

and then restarting solved it for me.然后重新启动为我解决了它。


Full story:完整故事:

I've just had the same problem.我刚刚遇到了同样的问题。 Googling around I foundthis article which talks about a different problem, but pointed me to the right direction: there is an issue with Ruby.谷歌搜索我发现这篇文章讨论了一个不同的问题,但为我指明了正确的方向:Ruby 存在问题。

I then bumped into this issue which focused on the cannot load such file -- cfpropertylist part of the error message.然后我遇到了这个问题该问题集中在cannot load such file -- cfpropertylist错误消息的cannot load such file -- cfpropertylist部分。

Running gem install CFPropertyList effectively allowed me to move forward one more step.运行gem install CFPropertyList有效地让我又向前迈进了一步。 This time a similar error complained about sqlite3 .这次类似的错误抱怨sqlite3 Running gem install sqlite3 , again, should solve the problem.再次运行gem install sqlite3应该可以解决问题。

Please note that you need SQLite installed systemwide ( brew install sqlite ), and that you NEED to restart your system, for whatever reason.请注意,您需要在系统范围内brew install sqlite ( brew install sqlite ),并且无论出于何种原因,您都需要重新启动系统。

to fix it on M1 Mac在 M1 Mac 上修复它

Go to Xcode foldar > right click open Get Info > make sure open using Rosetta has been checked Go 至 Xcode 文件夹 > 右键单击打开获取信息 > 确保已选中使用 Rosetta 打开

don't forget quit Xcode then open it不要忘记退出 Xcode 然后打开它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM