'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.
Solution 1:[1]
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 found this 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.
Solution 2:[2]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | mjsarfatti |
Solution 2 | Ala'a Abu Nemeh |