The dependency `` is not used in any concrete target
The dependency `AFNetworking ` is not used in any concrete target
- 1
- 2
- 1
- 2
- Cocoa Pods encountered difficulties again. The computer rebuilt the system a few days ago, and all the development tools were up-to-date. When I used Cocoa Pods, I gave a hint that my version was not last version. Then I gave you a command to copy directly, which is the following:
sudo gem install cocoapods --pre
- 1
- 1
Installing the preview version of cocoapods will update the new version 1.0.0.beta.2 as follows:
Successfully installed cocoapods-1.0.0.beta.2
Parsing documentation for cocoapods-1.0.0.beta.2
- 1
- 2
- 1
- 2
I'm glad to update the new version, but pod install made a mistake and saddened the play! The following mistakes were made:
Updating local specs repositories
Analyzing dependencies
[!] The dependency `FMDB (~> 2.3)` is not used in any concrete target.
The dependency `SDWebImage (~> 3.6)` is not used in any concrete target.
The dependency `AFNetworking (~> 2.3.0)` is not used in any concrete target.
The dependency `DACircularProgress (~> 2.2.0)` is not used in any concrete target.
The dependency `MBProgressHUD (~> 0.8)` is not used in any concrete target.
The dependency `PSTCollectionView (~> 1.2.1)` is not used in any concrete target.
The dependency `HPGrowingTextView (~> 1.1)` is not used in any concrete target.
The dependency `ProtocolBuffers (= 1.9.3)` is not used in any concrete target.
The dependency `leveldb-library (~> 1.18.1)` is not used in any concrete target.
The dependency `SCLAlertView-Objective-C (~> 0.7.5)` is not used in any concrete target.
The dependency `MWPhotoBrowser (~> 1.4.1)` is not used in any concrete target.
The dependency `MMMarkdown (~> 0.5)` is not used in any concrete target.
The dependency `MJExtension (~> 2.5.16)` is not used in any concrete target.
The dependency `MJRefresh (~> 2.4.12)` is not used in any concrete target.
The dependency `Masonry (~> 0.6.3)` is not used in any concrete target.
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
I use a lot of tripartite libraries. It's quite long. The mistake is to tell us that the library we use doesn't specify a target. It doesn't know where to use it, so it gave me a wrong report. Then I went to the official cocoapods website and looked at it. cocoapods official address
The official website is recommended as follows:
When creating a Podfile, use this format.
platform :ios, '8.0'
#use_frameworks! Individually needed, such as reactiveCocoa
target 'MyApp' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- The MyApp inside remembers to replace it with its target in the city. This is basically OK, so you can execute pod install / pod update. (use_frameworks! This is an individual requirement, so if you change it here, you can delete the line in my code above.)
- When creating a podfile file, you can directly use the pod init command to create a podfile file, which directly reduces the probability of this error.