Learn Courses My Dashboard

Database Lesson 2 Error

I just started to setup the environment for coco pods and it is throwing a bunch of errors upon running pods install command after following along with the video. I am not sure why it is erroring out but in the video it doesn’t happen. On top that it throws 17000 lines of weird gibberish that I don’t understand which I can’t list because of character limitations. It mentions that something might be wrong with ruby at the end but I am not sure what it is.

Any advice?

ericbeecroft@Erics-iMac CocopodsTest % pod install

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.

zsh: abort      pod install
ericbeecroft@Erics-iMac CocopodsTest %

Can you type the following command in your Terminal window and paste the response in a reply

gem list --local | grep cocoapods

Here is the results from the command.

cocoapods (1.11.2)

cocoapods-core (1.11.2)

cocoapods-deintegrate (1.0.5)

cocoapods-downloader (1.5.1)

cocoapods-plugins (1.0.0)

cocoapods-search (1.0.1)

cocoapods-trunk (1.6.0)

cocoapods-try (1.2.0)

I am having the exact same problem. :sob: And I get those exact same results when I run that command in terminal.

I found this post in the Apple Developer forum, but since it’s from a year ago, I don’t know if it helps. Many of the techniques listed in the comments were ones that we’ve already tried. Things like using Homebrew to install. What’s weird is everything seems to work until the pod install command.

One person in that link said, “This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it. This can usually be fixed by re-installing CocoaPods.”

Another person added this advice:

" 1. install LATEST version of brew (Installing Homebrew on a Mac)
2. then use “brew uninstall cocoapods”
3. install the latest version of cocoapods using “brew install cocoapods” (You must verify installed version with github version https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.2, they must match)
4. overwrite link to cocoapods with “brew link --overwrite cocoapods”
5. check the version of cocoapods “pod --version”
6. done, You have the latest version of cocoapods installed"

I was thinking this might be the next step in the attempts to get Cocoapods to work on our newer Macs? :pray: But I don’t really know how to verify that the version of cocoapods that home-brew is trying to install is the same as the GitHub version. (As they explain in step 3).

Based on what I see on GitHub, the latest version of Cocoapods is 1.11.2 which I’m pretty sure (based on the terminal output) is the same version Erik and I have downloaded on our computers right now. So perhaps these instructions I’ve found won’t help us at all. :cry:

Looks pretty much the same as mine.

Maybe try the process listed by Philomath in the above post.

To check the version of cocoapods installed, you can use the command:

pod --version

In your case the version number returned will match what you have already seen above when you used the other command

gem list --local | grep cocoapods

ie it shows that cocoapods is V 1.11.2

Here is what I got from running the two commands you mentioned. I am going to try out the information that Philomath to see if that helps.

ericbeecroft@Erics-iMac CocopodsTest % gem list --local | grep cocoapods

cocoapods (1.11.2)

cocoapods-core (1.11.2)

cocoapods-deintegrate (1.0.5)

cocoapods-downloader (1.5.1)

cocoapods-plugins (1.0.0)

cocoapods-search (1.0.1)

cocoapods-trunk (1.6.0)

cocoapods-try (1.2.0)

ericbeecroft@Erics-iMac CocopodsTest % pod --version

1.11.2

Let me know if you ever get it working. I’ve been stuck on this for about a week now and still haven’t been able to get it to work. I’ve basically given up on the database course and am trying to teach myself the concepts using more up-to-date YouTube tutorials. :man_shrugging:

(This forum continues to remove the person who I have replied to the day after I post or after I post a new reply to an existing post. Its very annoying. It leaves the text I posted up but if I reply to Philomath or another user, the icon just goes poof a moment or two later. This hasn’t been the first time it has done this.)

I got up to step 2 but it failed and threw an error.

ericbeecroft@Erics-iMac CocopodsTest % brew unistall cocoapods

zsh: command not found: brew

ericbeecroft@Erics-iMac CocopodsTest % brew uninstall cocoapods

zsh: command not found: brew

ericbeecroft@Erics-iMac CocopodsTest % echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/ericbeecroft/.zprofile

ericbeecroft@Erics-iMac CocopodsTest % eval "$(/opt/homebrew/bin/brew shellenv)"

ericbeecroft@Erics-iMac CocopodsTest % brew uninstall cocoapods

Error: No such keg: /opt/homebrew/Cellar/cocoapods

ericbeecroft@Erics-iMac CocopodsTest %

@ebeecroft

Just checking in with you to say, I saw your message. And I’m sorry you’re still stuck. I am too. About a month in, and I still haven’t found a way to get it to work. I’m back to trying to work through the database videos without actually being able to follow along.

This is the very first time that anyone has reported such an experience so it is either an isolated case or an error is usage. Please PM me to discuss the circumstances in which this occurred so that I can attempt to replicate it.

This is a test.

You need to install HomeBrew “whatever not found” means the command doesn’t exist on your computer

Here is the thing, the application told me that home-brew was successfully installed. Yet it still doesn’t allow me to uninstall it.

==> Tapping homebrew/core
remote: Enumerating objects: 1148341, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 1148341 (delta 10), reused 19 (delta 9), pack-reused 1148320
Receiving objects: 100% (1148341/1148341), 449.06 MiB | 9.88 MiB/s, done.
Resolving deltas: 100% (793899/793899), done.
From https://github.com/Homebrew/homebrew-core
 * [new branch]              master     -> origin/master
HEAD is now at 130bfdd0e39 translate-toolkit: update 3.6.0 bottle.
Warning: /opt/homebrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the 'Next steps' section below.
==> Installation successful!


Did you follow the next steps for adding it to your path??

Some of the steps were a bit confusing but I tried running the next two steps but I ran into an error.

ericbeecroft@Erics-iMac CocopodsTest % echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/ericbeecroft/.zprofile

ericbeecroft@Erics-iMac CocopodsTest % echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/ericbeecroft/.zprofile

ericbeecroft@Erics-iMac CocopodsTest % eval "$(/opt/homebrew/bin/brew shellenv)"

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted

job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted

Try this one

If that doesn’t work, maybe this one

Are you on an M1 Mac? Cause that’s mainly what that SO post is from

I have an M1 Mac.

I tried the steps listed but I am still running into issue with the setup on my M1 Mac.

ericbeecroft@Erics-iMac CocopodsTest % eval $(/opt/homebrew/bin/brew shellenv)

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted

job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted

ericbeecroft@Erics-iMac CocopodsTest %

Try to run it from your root directory rather than in your Cocoapods test folder

Okay so far that works and now I have a cocoa pods version but it is not allowing me to run pod install on my project folder. Any advice?

ericbeecroft@Erics-iMac CocopodsTest % ls
CocopodsTest		Podfile
CocopodsTest.xcodeproj	Pods
ericbeecroft@Erics-iMac CocopodsTest % pod install

Analyzing dependencies
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000102824000
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:                    
     * ~/Library/Logs/DiagnosticReports                                     
     * /Library/Logs/DiagnosticReports                                      
   for more details.                                                        
Don't forget to include the above Crash Report log file in bug reports.     

-- Control frame information -----------------------------------------------
c:0049 p:---- s:0307 e:000306 CFUNC  :attach
c:0048 p:0258 s:0301 e:000300 METHOD /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275
c:0047 p:0050 s:0281 e:000280 CLASS  /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:17
c:0046 p:0007 s:0278 e:000277 CLASS  /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:7
c:0045 p:0007 s:0275 e:000274 TOP    /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb:2 [FINISH]
c:0044 p:---- s:0272 e:000271 CFUNC  :require
c:0043 p:0110 s:0267 e:000266 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0042 p:0042 s:0255 e:000254 TOP    /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:15 [FINISH]
c:0041 p:---- s:0252 e:000251 CFUNC  :require
c:0040 p:0110 s:0247 e:000246 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0039 p:0013 s:0235 e:000234 TOP    /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2 [FINISH]
c:0038 p:---- s:0232 e:000231 CFUNC  :require
c:0037 p:0110 s:0227 e:000226 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0036 p:0006 s:0215 e:000214 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440
c:0035 p:0045 s:0207 e:000206 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372
c:0034 p:0318 s:0196 e:000195 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365
c:0033 p:0006 s:0186 e:000185 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338
c:0032 p:0059 s:0181 e:000180 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53
c:0031 p:0021 s:0177 e:000176 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31
c:0030 p:0030 s:0172 e:000171 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30 [FINISH]
c:0029 p:---- s:0167 e:000166 CFUNC  :new
c:0028 p:0068 s:0162 e:000158 BLOCK  /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315 [FINISH]
c:0027 p:0039 s:0154 E:002058 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322
c:0026 p:0007 s:0147 e:000146 BLOCK  /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331 [FINISH]
c:0025 p:---- s:0143 e:000142 CFUNC  :map
c:0024 p:0006 s:0139 e:000138 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331
c:0023 p:0008 s:0133 e:000132 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26
c:0022 p:0004 s:0129 e:000128 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60
c:0021 p:0025 s:0125 e:000124 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:393
c:0020 p:0006 s:0120 e:000119 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/sources_manager.rb:22
c:0019 p:0010 s:0115 e:000114 BLOCK  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:178 [FINISH]
c:0018 p:---- s:0111 e:000110 CFUNC  :map
c:0017 p:0136 s:0107 e:000106 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:177
c:0016 p:0024 s:0098 e:000093 BLOCK  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1077
c:0015 p:0081 s:0090 e:000089 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64
c:0014 p:0078 s:0083 e:000082 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1076
c:0013 p:0161 s:0076 e:000075 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:124
c:0012 p:0011 s:0061 e:000060 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416
c:0011 p:0007 s:0056 e:000055 BLOCK  /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241
c:0010 p:0081 s:0053 e:000052 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64
c:0009 p:0048 s:0046 e:000045 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240
c:0008 p:0009 s:0040 e:000039 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161
c:0007 p:0054 s:0036 e:000035 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52
c:0006 p:0078 s:0031 e:000030 METHOD /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334
c:0005 p:0024 s:0024 e:000023 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52
c:0004 p:0378 s:0019 e:000018 TOP    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC  :load
c:0002 p:0109 s:0008 E:001eb0 EVAL   /usr/local/bin/pod:23 [FINISH]
c:0001 p:0000 s:0003 E:001240 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/pod:23:in `<main>'
/usr/local/bin/pod:23:in `load'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1076:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1077:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:177:in `sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:177:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:178:in `block in sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/sources_manager.rb:22:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:393:in `source_with_url'