Skip to content
Browse files

[Add] GoogleAnalytics-iOS-SDK (1.4)

  • Loading branch information...
1 parent 8e30f3a commit a94b10b30d6412b7babbbe2b42cde2ef3575d7ed @pbernery pbernery committed Jul 29, 2012
Showing with 29 additions and 0 deletions.
  1. +29 −0 GoogleAnalytics-iOS-SDK/1.4/GoogleAnalytics-iOS-SDK.podspec
View
29 GoogleAnalytics-iOS-SDK/1.4/GoogleAnalytics-iOS-SDK.podspec
@@ -0,0 +1,29 @@
+Pod::Spec.new do |s|
+ s.name = "GoogleAnalytics-iOS-SDK"
+ s.version = "1.4"
+ s.summary = "GoogleAnalytics for iOS SDK."
+ s.description = <<-DESC
+ The Google Analytics SDK for iOS makes it easy for native iOS developers to collect user engagement data form their applications. Developers can then use the Google Analytics reports to measure:
+
+ * The number of active users are using their applications.
+ * From where in the world the application is being used.
+ * Adoption and usage of specific features.
+ * In-app purchases and transactions.
+ * And many other useful metrics...
+ DESC
+ s.homepage = "https://developers.google.com/analytics/devguides/collection/ios/"
+
+ s.license = {
+ :type => 'Copyright',
+ :text => <<-LICENSE
+ Copyright 2011 Google, Inc. All rights reserved.
+ LICENSE
+ }
+ s.author = 'Google Inc.'
+ s.source = { :http => "http://dl.google.com/gaformobileapps/GoogleAnalyticsiOS_1.4.tar.gz" }
+ s.platform = :ios
+
+ s.source_files = 'Google Analytics SDK/Library/GANTracker.h', 'Google Analytics SDK/Library/libGoogleAnalytics.a'
+ s.framework = 'CFNetwork'
+ s.library = 'sqlite3'
+end

7 comments on commit a94b10b

@PradeshKumar

GoogleAnalytics-iOS-SDK contain no files, after installing the pod

@pbernery

Have you the latest version of CocoaPods?
This Spec relies on support of tar.gz files which has been integrated in version 0.10.0 of CocoaPods.

@PradeshKumar

Yeah.. I have the latest version of CocoaPods 0.10.0.

@fabiopelosin
CocoaPods member

It is working for me. Can you delete the Pods/GoogleAnalytics-iOS-SDK folder and run pod install.

$ pod spec lint https://github.com/CocoaPods/Specs/raw/a94b10b30d6412b7babbbe2b42cde2ef3575d7ed/GoogleAnalytics-iOS-SDK/1.4/GoogleAnalytics-iOS-SDK.podspec --verbose

 -> GoogleAnalytics-iOS-SDK (1.4)

GoogleAnalytics-iOS-SDK (1.4) - Analyzing on iOS platform.

Resolving dependencies of: 

Resolving dependencies for target `default' (iOS 4.3)
  - GoogleAnalytics-iOS-SDK (from `/private/tmp/CocoaPods/Lint_podspec/GoogleAnalytics-iOS-SDK.podspec')
  * Fetching podspec for `GoogleAnalytics-iOS-SDK' from: /private/tmp/CocoaPods/Lint_podspec/GoogleAnalytics-iOS-SDK.podspec

Installing dependencies

-> Installing GoogleAnalytics-iOS-SDK (1.4)
   $ /usr/bin/curl -L -o '/tmp/CocoaPods/Lint/Pods/GoogleAnalytics-iOS-SDK/file.tgz' 'http://dl.google.com/gaformobileapps/GoogleAnalyticsiOS_1.4.tar.gz'
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
100  835k  100  835k    0     0   182k      0  0:00:04  0:00:04 --:--:--  206k
   $ /usr/bin/tar xfz '/tmp/CocoaPods/Lint/Pods/GoogleAnalytics-iOS-SDK/file.tgz' -C '/tmp/CocoaPods/Lint/Pods/GoogleAnalytics-iOS-SDK'
-> Using existing documentation

Generating support files

- Generating xcconfig file at `/tmp/CocoaPods/Lint/Pods/Pods.xcconfig'
- Generating prefix header at `/tmp/CocoaPods/Lint/Pods/Pods-prefix.pch'
- Generating copy resources script at `/tmp/CocoaPods/Lint/Pods/Pods-resources.sh'
- Running post install hooks
- Writing Xcode project file to `/tmp/CocoaPods/Lint/Pods/Pods.xcodeproj'

Building with xcodebuild.

2012-08-01 21:33:04.542 xcodebuild[21241:1207] error: (null)
=== CLEAN NATIVE TARGET Pods OF PROJECT Pods WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
warning: no rule to process file '$(PROJECT_DIR)/GoogleAnalytics-iOS-SDK/Google Analytics SDK/Library/libGoogleAnalytics.a' of type archive.ar for architecture armv7

Clean.Remove clean build/Release-iphoneos/libPods.a
    builtin-rm -rf /tmp/CocoaPods/Lint/Pods/build/Release-iphoneos/libPods.a

Clean.Remove clean /var/folders/f7/wclxr1011ys7jsscc_gr562m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Pods-prefix-cmmbffdwokwetxbyiqjlsmzkfhpy/Pods-prefix.pch.pth
    builtin-rm -rf /var/folders/f7/wclxr1011ys7jsscc_gr562m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Pods-prefix-cmmbffdwokwetxbyiqjlsmzkfhpy/Pods-prefix.pch.pth

Clean.Remove clean build/Pods.build/Release-iphoneos/Pods.build
    builtin-rm -rf /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build


** CLEAN SUCCEEDED **


=== BUILD NATIVE TARGET Pods OF PROJECT Pods WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
warning: no rule to process file '$(PROJECT_DIR)/GoogleAnalytics-iOS-SDK/Google Analytics SDK/Library/libGoogleAnalytics.a' of type archive.ar for architecture armv7

ProcessPCH /var/folders/f7/wclxr1011ys7jsscc_gr562m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Pods-prefix-cmmbffdwokwetxbyiqjlsmzkfhpy/Pods-prefix.pch.pth Pods-prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /tmp/CocoaPods/Lint/Pods
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194/bin:/Users/fabio/.autojump/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/fabio/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/fabio/.rvm/bin:/usr/local/sbin:/usr/local/bin:/Users/fabio/.tilde/bin:/Users/fabio/.tilde/sbin:/Users/fabio/.tilde/opt/bin:/Users/fabio/.tilde/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:/Users/fabio/.yadr/bin:/Users/fabio/.yadr/bin/yadr:/Users/fabio/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=4.3 -iquote /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-generated-files.hmap -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-own-target-headers.hmap -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-all-target-headers.hmap -iquote /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-project-headers.hmap -I/tmp/CocoaPods/Lint/Pods/build/Release-iphoneos/include -I/tmp/CocoaPods/Lint/Pods/Headers -I/tmp/CocoaPods/Lint/Pods/Headers/GoogleAnalytics-iOS-SDK -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/DerivedSources/armv7 -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/DerivedSources -F/tmp/CocoaPods/Lint/Pods/build/Release-iphoneos --serialize-diagnostics /var/folders/f7/wclxr1011ys7jsscc_gr562m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Pods-prefix-cmmbffdwokwetxbyiqjlsmzkfhpy/Pods-prefix.pch.dia -c /tmp/CocoaPods/Lint/Pods/Pods-prefix.pch -o /var/folders/f7/wclxr1011ys7jsscc_gr562m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Pods-prefix-cmmbffdwokwetxbyiqjlsmzkfhpy/Pods-prefix.pch.pth -MMD -MT dependencies -MF /var/folders/f7/wclxr1011ys7jsscc_gr562m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Pods-prefix-cmmbffdwokwetxbyiqjlsmzkfhpy/Pods-prefix.pch.d

CompileC build/Pods.build/Release-iphoneos/Pods.build/Objects-normal/armv7/PodsDummy_Pods.o PodsDummy_Pods.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /tmp/CocoaPods/Lint/Pods
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194/bin:/Users/fabio/.autojump/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/fabio/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/fabio/.rvm/bin:/usr/local/sbin:/usr/local/bin:/Users/fabio/.tilde/bin:/Users/fabio/.tilde/sbin:/Users/fabio/.tilde/opt/bin:/Users/fabio/.tilde/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:/Users/fabio/.yadr/bin:/Users/fabio/.yadr/bin/yadr:/Users/fabio/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=4.3 -iquote /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-generated-files.hmap -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-own-target-headers.hmap -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-all-target-headers.hmap -iquote /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Pods-project-headers.hmap -I/tmp/CocoaPods/Lint/Pods/build/Release-iphoneos/include -I/tmp/CocoaPods/Lint/Pods/Headers -I/tmp/CocoaPods/Lint/Pods/Headers/GoogleAnalytics-iOS-SDK -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/DerivedSources/armv7 -I/tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/DerivedSources -F/tmp/CocoaPods/Lint/Pods/build/Release-iphoneos -include /var/folders/f7/wclxr1011ys7jsscc_gr562m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Pods-prefix-cmmbffdwokwetxbyiqjlsmzkfhpy/Pods-prefix.pch -MMD -MT dependencies -MF /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Objects-normal/armv7/PodsDummy_Pods.d --serialize-diagnostics /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Objects-normal/armv7/PodsDummy_Pods.dia -c /tmp/CocoaPods/Lint/Pods/PodsDummy_Pods.m -o /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Objects-normal/armv7/PodsDummy_Pods.o

Libtool build/Release-iphoneos/libPods.a normal armv7
    cd /tmp/CocoaPods/Lint/Pods
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194/bin:/Users/fabio/.autojump/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/fabio/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/fabio/.rvm/bin:/usr/local/sbin:/usr/local/bin:/Users/fabio/.tilde/bin:/Users/fabio/.tilde/sbin:/Users/fabio/.tilde/opt/bin:/Users/fabio/.tilde/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:/Users/fabio/.yadr/bin:/Users/fabio/.yadr/bin/yadr:/Users/fabio/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/tmp/CocoaPods/Lint/Pods/build/Release-iphoneos -filelist /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods.build/Objects-normal/armv7/Pods.LinkFileList -framework Foundation -o /tmp/CocoaPods/Lint/Pods/build/Release-iphoneos/libPods.a

PBXCp "GoogleAnalytics-iOS-SDK/Google Analytics SDK/Library/GANTracker.h" build/Release-iphoneos/Pods/GANTracker.h
    cd /tmp/CocoaPods/Lint/Pods
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194/bin:/Users/fabio/.autojump/bin:/Users/fabio/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/fabio/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/fabio/.rvm/bin:/usr/local/sbin:/usr/local/bin:/Users/fabio/.tilde/bin:/Users/fabio/.tilde/sbin:/Users/fabio/.tilde/opt/bin:/Users/fabio/.tilde/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:/Users/fabio/.yadr/bin:/Users/fabio/.yadr/bin/yadr:/Users/fabio/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/strip -resolve-src-symlinks "/tmp/CocoaPods/Lint/Pods/GoogleAnalytics-iOS-SDK/Google Analytics SDK/Library/GANTracker.h" /tmp/CocoaPods/Lint/Pods/build/Release-iphoneos/Pods


** BUILD SUCCEEDED **

 -> GoogleAnalytics-iOS-SDK (1.4)
    - NOTE  | XCODEBUILD >  warning: no rule to process file '$(PROJECT_DIR)/GoogleAnalytics-iOS-SDK/Google Analytics SDK/Library/libGoogleAnalytics.a' of type archive.ar for architecture armv7
    - NOTE  | XCODEBUILD >  warning: no rule to process file '$(PROJECT_DIR)/GoogleAnalytics-iOS-SDK/Google Analytics SDK/Library/libGoogleAnalytics.a' of type archive.ar for architecture armv7

GoogleAnalytics-iOS-SDK.podspec passed validation.
@fabiopelosin
CocoaPods member

Now I realize that the Google Analytics SDK/Library/libGoogleAnalytics.a should be added to s.library.

@pbernery

s.library contains GoogleAnalytics and s.xcconfig sets the 'LIBRARY_SEARCH_PATHS' to $(PODS_ROOT)/GoogleAnalytics-iOS-SDK/Google Analytics SDK/Library", isn't that correct? (the diff on the top of this page doesn't reflect the latest version of the Spec, I submitted a patch a couple hours after the initial commit).

@fabiopelosin
CocoaPods member

Sorry I missed the commit that fixes this podspec. I works perfectly.

Please sign in to comment.
Something went wrong with that request. Please try again.