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 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.
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
Related
Xcode 13.2.1 Exporting Archive for Development team with "Distribute App" fails
Xcode 13.1 - works on the same MacBook to export IPA for development distribution. No errors!!
Xcode13.2.1 "Validate App" is successful, Error "The data couldn’t be read because it isn’t in the correct format." occurs only with the distribution.
Error: The data couldn’t be read because it isn’t in the correct format.
From the standard log:
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)
Go to Xcode folder > right click open Get Info > make sure open using Rosetta has been checked
don't forget quit Xcode then open it
In my case I got the error only when I open Xcode with the capacitor cli (npx cap open ios). I can create a distribution by opening Xcode with Spotlight.
I had a similar issue, but for me it was because I forgot to change the bundle identifier when I deployed my app on an Iphone. In my case, it was due to signing.
If thats also the case for you, I think you can try something like this :
click your project root in the project explorer, then in the editor go to "Signing and capabilities".
change your bundle identifier to something different, e.g. something like com.test.username.appname
Another thing you can try if things like that happen is :
if you are using automatically manage signing, untick it and then tick it again, it will process everything again.
I hope this will help you with your issue.
for this you have to open your xCode without rosetta this solve my problem..
In my case Distribute development certificate was expired!
So I created another one and then restarted the XCode.
That solved my problem.
I also have faced this issue using M1 chip.
Following steps resolved the issue:
Check if Xcode is open using Rosetta or not.
Just toggle (if checked then uncheck/if unchecked then check it) the open using Rosetta.
Open your Xcode and distribute the app.
Then you will be able to upload your archive.
Getting this error even when I create a new project. I installed Ruby and RoR through RVM
cannot load such file -- /var/lib/gems/2.3.0/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger (LoadError)
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/lib/gems/2.3.0/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:74:in `init_passenger'
/var/lib/gems/2.3.0/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:155:in `<module:App>'
/var/lib/gems/2.3.0/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
/var/lib/gems/2.3.0/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:29:in `<main>'
I think I found that the problem is in the directory of the gems. I do not know how to change it on Ubuntu
I would first try to understand if you have a problem with the app or the environment.
Try to run the simplest app by:
rails new simple_app
if it doesn't work - the problem is the environment.
if it does work - probably you have some problem with the initializers or config files
Let us know how it works for you!
Have you try gem install passenger ?
or gem install bundler
Your error message:
cannot load such file -- /var/lib/gems/2.3.0/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger (LoadError)
Suggests a permission problem with files in the gem /var/lib/gems/2.3.0/gems/passenger-5.0.30. Either, the files don't exist, or they aren't readable.
If you query the permissions for that file (make sure to append '.rb'):
ls -l /var/lib/gems/2.3.0/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger.rb
You'll probably find it's not world readable, or at least not readable by the web server process' user. If it doesn't exist, then you should reinstall.
I saw this error on a system that had a umask of 0066, which caused passenger's gem files to be root:root with mode -rw-------.
I am in rails setup hell.
I tried to make an app 2 years ago and after endless problems with it, I tried to make a fresh app and start again. I"m now having the same problem I had the first time around in getting the pg database setup, but none of the solutions offered for the first problem are working this time. My post about the problem the first time is here: Installing PG gem on OS X - failure to build native extension
Currently - I'm getting this error:
An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that gem install pg -v '0.18.4' succeeds before bundling.
I have tried uninstalling and reinstalling pg. I have tried installing with home-brew. I have tried all of the suggestions in the previous post I wrote about this problem with my first app. I've tried the solutions in this post:
Ruby/PgSQL error on Rails start : cannot load such file -- pg_ext (LoadError)
Each time, the gem installs correctly. It's just I can't start the server or do anything from the command line - this error keeps coming up.
One of the steps I tried involved adding this to my command line. It's a straight copy & paste. I don't know what it means. I'm wondering if its a source of my issue:
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
When I try:
rake rails:update:bin
I get this error:
rake aborted!
LoadError: cannot load such file -- nokogiri/nokogiri
Does anyone know how to solve this problem? I'm in rails hell!
A similar issue is occur by a user. Please have look to this link. Hope this may helpful!!
Error message: Make sure that `gem install pg -v '0.18.1'` succeeds before bundling
I've been following instructions to install capybara-webkit on Mac OS X 10.8. I've downloaded and installed:
qt-mac-opensource-4.8.5
qt-mac-opensource-4.8.5-debug-libs
Xcode Command Line tools + I later installed full XCode 5.0
qt4 using brew
Not necessary in this order
Running gem install capybara-webkit throws an error
# lots of output omitted
/Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1620:in `stat': No such file or directory - src/webkit_server (Errno::ENOENT)
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1620:in `block in fu_each_src_dest'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1633:in `fu_each_src_dest0'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1618:in `fu_each_src_dest'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:466:in `cp'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/lib/capybara_webkit_builder.rb:76:in `build'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/lib/capybara_webkit_builder.rb:88:in `build_all'
from extconf.rb:2:in `<main>'
Gem files will remain installed in /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0 for inspection.
Results logged to /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/./gem_make.out
I've tried reinstalling qt, installing XQuartz-2.7.4, ... without luck. There is no trace of similar problems on Github :(
Here's some additional info should it help someone figure out the cause - http://pastie.org/8355714.
Feeling silly answering my own question but looks like I needed to actually run XCode and accept their terms and conditions. After doing that running gem install capybara-webkit worked.
I cannot seem to start rdebug on my machine.
Everything else seems to be working okay.
I've tried updating my gems without much luck.
I've tried some suggestion of setting the arch flag to x86_64 and update the gems. No luck again.
I am on a Mac OSX 10.6.6
/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle: dlopen(/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle, 9): no suitable image found. Did find: (LoadError)
/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle: no matching architecture in universal wrapper - /opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
Any suggestions would be of great help.
Thanks
Updating the linecache gem should fix this: sudo gem install linecache
If that doesn't cut it, it might have something to do with your gems coming from /opt/ -- mine was failing on /Library/Ruby/Gems/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle (and re-installing linecache fixed it).
Or you could work around it by running rdebug in i386 mode:
arch -i386 rdebug ...