Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 126.96.36.199 release ready!
Owner and Founder. Opencart
Dear Folks, I hope you are doing well. Sometimes a developer is required a third-party library to use inside the XCode project, such as Alamofire, SDWebView etc. This he uses the dependency manager (Cocoapod or Carthage) to inject the library in the project. Here I going to explain about Cocoapod. CocoaPods allows developers to easily integrate 3rd party libraries/frameworks into their projects without the need to manually download each library into your project and constantly check for updates individually.
Before proceeding further, you must install Cocoapod in your Mac System. You can use below commands in terminal to check whether your system has CocoaPod or not.
If your system has pod installed, you will see the Cocoapod version like below.
If you have not installed yet, you can follow below steps for installing:
Open terminal and type:
Just wait for successful installation. After installation, you can check for pod version through above command in terminal. If it is showing the version, you are ready to move further steps.
Let’s get started.
Assuming you have a working Xcode project and you have CocoaPods installed via terminal. Generally, a developer delivers a zip file of the XCode project. Extract the project anywhere in your system. Open your terminal and type command cd to change directory path to the project path, give a single space after cd command. After this drag the project path to the terminal window like below, then press enter. You can now see the complete path of the project in the terminal.
Type the below command to remove Podfile.lock file from the project directory. Without removing this file cocoapod will not allow you to install the pod libraries.
Now finally install the pod libraries using below command. The installation process will be started.
After a successful installation, the message “Pod installation complete!” will appear in the terminal.
From now on, open and work with .xcworkspace instead of .xcodeproj. In above example, you can see the DummyProject.xcworkspace file to launch the project.
For more information regarding CocoaPod refer following links:
If you have any doubts regarding this article, just leave a comment below. Thanks for reading.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.