Scenario

  • Returns below error

Before jumping on to solution, let’s what’s bundle & why we need them ?

  • What are the advantages of performing `pod install` vs `bundle exec pod install`
  • what is bundler ?

Bundler

  • Bundler creates a…

Issue: disconnected all the time from the debugger

macOS: BigSur

Xcode: 12.3

Error:

Actual Error:

Resolution:

Solution 1

  • After booting the…

Git permission — Source tree

  • ssh-add ~/.ssh/your_rsa
  • It can be found in your root directory .ssh

I want to update only a specific SDK or a library from Cocoa pods dependency manager.

✅ First, check the version of the pod that you wish to update

  • Open Podfile.lock

Podfile.lock keeps track of the resolved versions of each Pod installed, it’s not advisable to edit this file & it’s generated when performing pod operations such as install or update.

⛵️Next, let’s update the version of the Pod

  • Open terminal & cd <PROJECT_DIR>

pod update will NOT respect the podfile.lock. It will override it.

Alternatively if you wish to update to a specific version of a Pod

  • Open Podfile

In terminal, perform pod install

Scenario

  • Happens when macOS updated
  • Reinstalling macOS
  • ~Library is corrupted or moved/ deleted

Install pod on your system

Ideally cocoapods should install here, but it gives error

Solution

Ref: https://github.com/CocoaPods/CocoaPods/issues/8955

Install cocoapods through brew

Now link to the current version

If you get error from ruby, then you need to install ruby

Ref: https://github.com/fastlane/fastlane/issues/15460

Perform pod install from your directory

install missing gem `cocoapods-art`

Swift uses Automatic Reference Counting for memory management.

Reference counting applies only to instances of classes. Struct & Enums are not reference types.

Strong

ARC makes sure that this strong referenced object is kept in memory and is not deallocated.

If there is at least one strong reference, ARC makes sure that this strong referenced object is kept in memory and is not deallocated.

Weak

A weak reference is a reference that does not keep…

Rathish Kannan

iOS Enthusiast 📱 • LinkedIn: https://www.linkedin.com/in/rathishkannan/ • GitHub: https://github.com/ratzr15 • StackOverflow: https://stackoverflow.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store