cocoapods - During Pod Installation `AFNetworking (~> 3.0)` is not used in any concrete target -


recently i've installed cocoapods v 1.0.0 in mac successfully, trying install 'afnetworking', '~> 3.0' dependency in pod file of project directory. i've created successfully, putting following code in pod file

source 'https://github.com/cocoapods/specs.git' platform :ios, '8.0'  pod 'afnetworking', '~> 3.0' 

but when write pod install in terminal giving me following error

[!] dependency `afnetworking (~> 3.0)` not used in concrete target. 

could suggest me why getting error & how resolve issue?

after submitting question, further explored solution & come know @ "https://guides.cocoapods.org/using/the-podfile.html" should write code in podefile

target 'myapp'   pod 'afnetworking', '~> 3.0' end 

instead of above found @ github afnetworking official dependency installation guide. https://github.com/afnetworking/afnetworking

but curious why official afnetworking method not works installation in project? answer please?

anyway cocoapods official website.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -