CocoaPods adds dependency support for all targets of the project, cocoapodstarget
When CocoaPods is used, pod install can only add dependency library support for the first target of the xcode project by default. To add more targets, follow these steps:
Two conditions
1. Edit the Podfile
First, all targets use the same third-party dependency configuration.
Link_with 'targetname1', 'targetname2'
Platform: ios, '6. 1'
Pod 'mknetworkkit'
Pod 'mbprogresshud'
Pod 'iqkeyboardmanager'
Pod 'toast'
The second type uses different third-party dependency configurations for different targets.
Source 'https: // github.com/CocoaPods/Specs.git'
Platform: ios, '6. 1'
Target: TargetName1 do
Pod 'mknetworkkit'
Pod 'mbprogresshud'
Pod 'iqkeyboardmanager'
Pod 'toast'
End
Target: TargetName2 do
Pod 'mknetworkkit'
Pod 'mbprogresshud'
Pod 'iqkeyboardmanager'
Pod 'toast'
End
2. Save and run pod install again
3. Open the project and add $ (inherited) for the four places in build setting for each target ).
Other Link Flags
Library search Paths
Header search Paths
Framework search Paths
4. recompile
The third step is optional. If the pod install is yellow, execute
Xcode Cocoapods Compilation
Select Zxing target, and then build
What does the following line mean by the ant command?
A target represents a task. The task content is written in <target> </target>.
So there are two tasks in the code.
First, the first target name is a description of the task name.
Copy todiar is literally copied to the specified directory. This directory is a variable $ {classes. dir}. This is a variable name. The specific directory to check the Code does not include
Include. That is to say, the specified XML file is a resource required by this file. You can directly call or reference the variable. conf configuration file.
Second Task
Delete the file and run the same code as above.
Then let's look at the task name. The first COPY-RESOURCE can be inferred based on the content to COPY the generated code or RESOURCE file to the specified directory. This directory is usually used by an external TARGET. This is a preparation.
The basic meaning of COPY-LOCAL-PRPPS is the same as above. However, the files are different. The modification method is useless because of the same name of the file. It is just a simple method to delete the original file and fix the new one.
All targets are dependent on depend to form an execution sequence. Or you can choose to run it separately.
All of the above are ANT knowledge. If it is necessary to use the length of the system to learn. ANT still has a lot of applications, saving some repetitive work.
Because the TARGET can be executed independently or breakpoint in XML. So you can customize a TARGET to learn the meaning of each keyword.