简体   繁体   中英

Export ipa file fails

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

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)

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

TL;DR

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.

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

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.

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

to fix it on M1 Mac

Go to Xcode foldar > right click open Get Info > make sure open using Rosetta has been checked

don't forget quit Xcode then open it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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