As you know without lib it's to difficult to completed project. In Android we use Gradle as Dependency manager but in Swift and Objective-c it's CocoaPods is Dependency Manager. This tutorial will explain how to getting start with CocoaPods on XCode.
1. Create iPhone new project using XCode.
2. Now Close this Project.
3. Execute Following command.
sudo gem install cocoapods
4. Open Terminal and goes on your Project location.
cd ~/Desktop/CocoapodsTestApp
5. Now Simple Execute following command.
pod init
6. Now check project location it will be generate PodFile.
7. Open that Pod File on Text Editor It will be look like below.
1. Create iPhone new project using XCode.
2. Now Close this Project.
3. Execute Following command.
sudo gem install cocoapods
4. Open Terminal and goes on your Project location.
cd ~/Desktop/CocoapodsTestApp
5. Now Simple Execute following command.
pod init
6. Now check project location it will be generate PodFile.
7. Open that Pod File on Text Editor It will be look like below.
8. Now you can add as my POD at # Sing. Let's try add Firebase Pod There.
9. Now Save this file.
10. And Execute following command same as project location.
pod install
11. its done.. Thanks..
12. Now Open xcode Proejct. Be CAREFUL when open .xcworkspace file not .xcodeproj
Thanks.



No comments:
Post a Comment