As per the heading, in this tutorial we will learn how to solve pod install or pod update error that it fails with run-time error – [Xcodeproj] unknown object version. Also we will, solve another error
operation not permitted – /usr/bin/pod cocoa-pods. So basically we will solve the below two errors
1) pod install or pod update fails with run-time error – [Xcodeproj] unknown object version
2) operation not permitted – /usr/bin/pod cocoa-pods
Below are the steps to solve the above listed two errors
Step 1: Open terminal and type command
sudo gem install cocoapods
Step 2: It will ask for password, enter your system password.
Step 3: If you get error as shown in the picture below then see step 4.
Step 4: Run the command
sudo gem install -n /usr/local/bin cocoapods
Step 5: Your pods were successfully installed and now you can install pods for your xcode project.
Where to go from here