


Your folder structure should look like this. Ensure all the commands listed above are completed successfully. The git command should take a few minutes to complete as it downloads the repository to your system. Once you have got this open the terminal and run the below commands one by one.Ĭd ~/.cocoapods/repos git clone - depth 1 https : ///CocoaPods/Specs.git master Your folder structure should look like this : If there is a master folder inside it, then delete it. Open the folder and look for a folder named repos. If the folder doesn’t exist, create one by that name. If the folder doesn’t exist, then create one with the name. If you can’t see the folder, press Command+Shift+. to reveal the hidden folders. cocoapods. (It is a hidden folder since the name starts with a dot). Go to your user folder using Finder Explorer. Or in some cases pod repo update might work.īut I am going to list the method that I use which works for me every time.įirst we need to create a folder. In older versions of CocoaPods, you can run pod setup and it should do the job (since version 1.8.0, pod setup does nothing!).
#Unity install for mac download#
The first time you run a pod install, it will download the repository before proceeding. But in order for it to work, the entire repository needs to be on your system in a specific folder. You just have to specify which “pods” you want in your project in a podfile and it installs them. CocoaPods is basically a repository of frameworks and their dependencies. This should install the latest version of CocoaPods on your system.īut the installation process isn’t complete. Run the following command on the Terminal. Once you have uninstalled the previous version (or if no previous version exists) proceed to install cocoapods. Type “y” and press “Enter/Return” on any prompts that this command makes. If there was a previous installation (or more than one installations) this will remove them. Open a Terminal and run the command below. So follow the steps below and by the end of it, CocoaPods would be installed successfully on your system.įirst lets remove any previous installations so that we can make a fresh start.

If your build is failing, the most likely cause is that CocoaPods is not installed and setup properly. If it doesn’t, follow the next steps to install and correctly setup CocoaPods on your system. Sometimes, just this magic command can make your build run fine. In that case, please run the command with the appropriate path. You may have installed or moved Xcode to a new location. The path listed above is the default location of Xcode. Please note that the path to Xcode on your machine may vary. Sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
#Unity install for mac mac#
Open Terminal on your Mac and run the following command. Now we have to ensure that our system knows where our Xcode is and specifically where the developer tools which come bundled with it are installed. Xcode can be installed from the Mac AppStore or by downloading a xip file from the apple developer site. Pretty self explanatory and in all probability you should have done this step already. The setup used for the purpose of this writeup: If you have encountered this error, follow the steps below to fix it and setup CocoaPods correctly. It is a long error message in the Console which would probably state how even the “pod repo update” was attempted and it failed as well.įor the people who aren’t aware how Pods work and not familiar with the Xcode CocoaPods workflow, this error is very hard to decipher and fix. This will will likely result in an non – functional Xcode project.
#Unity install for mac update#
It is mostly during the first build or sometimes after an OS update or after a hard disk change or moving to a new machine, that problems creep up and the Unity build fails with the message – “ iOS framework addition failed due to a Cocoapods installation failure. Once everything is setup, the builds usually almost always run successfully and rarely give problems. which require CocoaPods, then these steps enlisted below should help you run a smooth and successful build.Įven if you are not using Unity and just using Xcode project, these steps should ensure that the pods get installed in your project successfully.

If you are using Unity to build your iOS projects and use SDK’s like Firebase, Facebook etc.
