In earlier section we have seen how to install CocoaPods in system.
Now we will see how to integrate CocoaPods
Here I am taking example of MBProgressHUD
Step 1 Create Sample Project
Step 2 Open Terminal -> Go to your project directory,
Step 3 Write Command-> pod init
This will create a pod file in your directory always open this file with xcode.
Step 4 Write Command-> pod install
If command is successful you will see "xcworkspace" file
Quite Your project and Open ".xcworkspace" file, now you need not to open ".xcodeproj" file ever
your project will look like this
Open Podfile, I am taking example of MBProgressHUD which we use to show alert and taking decision from user.
Step 5 Write Command-> $ pod install
After successful installation you will see MBProgressHUD in Pods
Now we will see how to integrate CocoaPods
Here I am taking example of MBProgressHUD
Step 1 Create Sample Project
Step 2 Open Terminal -> Go to your project directory,
Step 3 Write Command-> pod init
This will create a pod file in your directory always open this file with xcode.
Step 4 Write Command-> pod install
If command is successful you will see "xcworkspace" file
Quite Your project and Open ".xcworkspace" file, now you need not to open ".xcodeproj" file ever
your project will look like this
Open Podfile, I am taking example of MBProgressHUD which we use to show alert and taking decision from user.
Step 5 Write Command-> $ pod install
After successful installation you will see MBProgressHUD in Pods
No comments:
Post a Comment