Commit b3761cfa authored by Eloy Duran's avatar Eloy Duran

Update AFNetworking iOS example to use CocoaPods and fix bug with spaces in path…

Update AFNetworking iOS example to use CocoaPods and fix bug with spaces in path to resources script.
parent a6910ce3
......@@ -10,17 +10,17 @@ dependency do |s|
s.author = { 'Gowalla' => 'live@gowalla.com' }
s.source = { :git => 'https://github.com/gowalla/AFNetworking.git', :tag => '0.7.0' }
if config.ios?
#if config.ios?
s.source_files = 'AFNetworking' # everything
else
s.source_files = %w{
AFNetworking/AFHTTPRequestOperation.h
AFNetworking/AFJSONRequestOperation.h
AFNetworking/NSData+AFNetworking.h
AFNetworking/NSMutableURLRequest+AFNetworking.h
AFNetworking/NSString+AFNetworking.h
}
end
#else
#s.source_files = %w{
#AFNetworking/AFHTTPRequestOperation.h
#AFNetworking/AFJSONRequestOperation.h
#AFNetworking/NSData+AFNetworking.h
#AFNetworking/NSMutableURLRequest+AFNetworking.h
#AFNetworking/NSString+AFNetworking.h
#}
#end
s.clean_paths = ['iOS Example', 'Mac Example', 'AFNetworking.xcworkspace']
......
......@@ -217,7 +217,7 @@ module Pod
end
copy_resources = app_project.add_shell_script_build_phase('Copy Pods Resources',
"${SRCROOT}/Pods/Pods-resources.sh\n")
%{"${SRCROOT}/Pods/Pods-resources.sh"\n})
app_project.targets.each { |target| target.buildPhases << copy_resources }
app_project.save_as(projpath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment