Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

wrong number of arguments (0 for 1) in ZBarSDK.podspec 1.3.1 #910

Closed
ened opened this Issue Mar 27, 2013 · 4 comments

Comments

Projects
None yet
4 participants

ened commented Mar 27, 2013

Resolving dependencies of ./Podfile' Resolving dependencies for targetdefault' (iOS 5.0)

Report

  • What did you do?
    pod install
  • What did you expect to happen?
    install new pods
  • What happened instead?
    see below

Stack

   CocoaPods : 0.16.4
        Ruby : ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.8.3 (12D78)
       Xcode : 4.6.1 (4H512)
Ruby lib dir : /Users/ened/.rvm/rubies/ruby-1.9.2-p290/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ d0e30624677f470f9b09e2c948c8fe4f6aa22962

Podfile

          platform :ios, '5.0'
pod 'MRCEnumerable',       '~> 0.0.1'
pod 'TestFlightSDK', '~> 1.2.3.beta1'
#pod 'RestKit', '~> 0.20.0rc1'
pod 'ZBarSDK', '~> 1.3.1'
pod 'SVProgressHUD', '~> 0.9'
pod 'MagicalRecord', '~> 2.1'
pod 'AFNetworking', '~> 1.1.0'
pod 'SSKeychain', '~> 0.2.1'
pod 'NSString+TextAndNumberValidation', '~> 0.0.1'

target :MyAppTests, :exclusive => true do
   pod 'Kiwi'
end

Error

wrong number of arguments (0 for 1)
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:503:in `post_install'
/Users/ened/.cocoapods/master/ZBarSDK/1.3.1/ZBarSDK.podspec:37:in `block in _eval_podspec'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:59:in `initialize'
/Users/ened/.cocoapods/master/ZBarSDK/1.3.1/ZBarSDK.podspec:1:in `new'
/Users/ened/.cocoapods/master/ZBarSDK/1.3.1/ZBarSDK.podspec:1:in `_eval_podspec'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:11:in `eval'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:11:in `_eval_podspec'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:27:in `from_file'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:71:in `specification'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/specification/set.rb:94:in `specification'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:85:in `block in search'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:80:in `each'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:80:in `find'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:80:in `search'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:158:in `block in search'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:158:in `select'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:158:in `search'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:172:in `find_cached_set'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:192:in `block (2 levels) in find_dependency_specs'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/user_interface.rb:77:in `message'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:191:in `block in find_dependency_specs'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:186:in `each'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:186:in `find_dependency_specs'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:92:in `block (2 levels) in resolve'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/user_interface.rb:37:in `section'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:90:in `block in resolve'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:89:in `each'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:89:in `resolve'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/installer.rb:186:in `specs_by_target'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/installer.rb:101:in `block in install!'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/user_interface.rb:37:in `section'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/installer.rb:100:in `install!'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/command/install.rb:46:in `run_install_with_update'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/command/install.rb:51:in `run'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/lib/cocoapods/command.rb:75:in `run'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/gems/cocoapods-0.16.4/bin/pod:16:in `<top (required)>'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/bin/pod:23:in `load'
/Users/ened/.rvm/gems/ruby-1.9.2-p290/bin/pod:23:in `<main>'

The mentioned podspec of zbarsdk:

% cat /Users/ened/.cocoapods/master/ZBarSDK/1.3.1/ZBarSDK.podspec
Pod::Spec.new do |s|
  s.name     = 'ZBarSDK'
  s.version  = '1.3.1'
  s.platform = :ios
  s.license  = 'GNU LGPL 2.1'
  s.summary  = 'QR and barcode scan library.'
  s.homepage = 'http://zbar.sourceforge.net/'
  s.author   = { 'Jeff Brown' => 'spadix@users.sourceforge.net' }
  s.source   = { :git => 'https://github.com/ZBar/ZBar.git', :tag => 'iPhoneSDK-1.3.1' }

  s.description  = 'ZBar is an open source software suite for reading bar codes from various sources, such as video streams, ' \
                   'image files and raw intensity sensors. It supports many popular symbologies (types of bar codes) including ' \
                   'EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.'

  s.resources    = 'iphone/res/{zbar-*.png,zbar-help.html}'

  s.source_files = 'include/zbar.h', 'zbar/**/*.h', 'iphone/*.h', 'iphone/include/**/*.h',
                   'zbar/{config,decoder,error,image,img_scanner,refcnt,scanner,symbol}.c',
                   'zbar/decoder/{codabar,code39,code93,code128,databar,ean,i25,qr_finder}.c',
                   'zbar/qrcode/*.c',
                   'iphone/*.m'

  s.public_header_files = 'iphone/**/**/*.h', 'include/*.h'

  s.frameworks   = 'AVFoundation', 'CoreGraphics', 'CoreMedia', 'CoreVideo', 'QuartzCore'

  s.library      = 'iconv'

  s.xcconfig = { "EXCLUDED_SOURCE_FILE_NAMES[sdk=iphoneos*][arch=*]"        => 'ZBarReaderViewImpl_Simulator.m',
                 "EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*][arch=*]" => 'ZBarReaderViewImpl_Capture.m ZBarCaptureReader.m',
                 "GCC_PREPROCESSOR_DEFINITIONS"                             => '$(inherited) NDEBUG=1' }

  s.prefix_header_file = 'iphone/include/prefix.pch'

  s.compiler_flags = '-w'

  s.post_install do |installer|
    project = installer.project
    project.objects_by_uuid.each do |key, obj|
      if obj.isa.to_s == "PBXBuildFile"
        file_ref = obj.file_ref
        if file_ref.isa.to_s == "PBXFileReference"
          path = file_ref.pathname

          if (path.extname.to_s == ".h" && path.dirname.to_s.include?("ZBarSDK/zbar"))
            project.objects_by_uuid.delete(key)
          end
        end
      end
    end
  end
end

Ustym commented Mar 27, 2013

Expect the same issue

Report

  • What did you do? pod install
  • What did you expect to happen? install new pods
  • What happened instead? see below

Stack

   CocoaPods : 0.16.4
        Ruby : ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.2.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.8.2 (12C60)
       Xcode : 4.6.1 (4H512)
Ruby lib dir : /Users/ustym/.rvm/rubies/ruby-1.9.3-p286/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ d0e30624677f470f9b09e2c948c8fe4f6aa22962

Podfile

platform :ios, '5.1'
  pod 'AFNetworking', '~> 0.10.0'
  pod 'MFSideMenu', '~>0.3'
  pod 'ZBarSDK', '~>1.3.1'
  pod 'SDWebImage', '~>3.0'

target :tests do
  pod 'Kiwi', '~> 1.1.0'
end

Error

wrong number of arguments (0 for 1)
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:503:in `post_install'
/Users/ustym/.cocoapods/master/ZBarSDK/1.3.1/ZBarSDK.podspec:37:in `block in _eval_podspec'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:59:in `initialize'
/Users/ustym/.cocoapods/master/ZBarSDK/1.3.1/ZBarSDK.podspec:1:in `new'
/Users/ustym/.cocoapods/master/ZBarSDK/1.3.1/ZBarSDK.podspec:1:in `_eval_podspec'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:11:in `eval'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:11:in `_eval_podspec'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/specification.rb:27:in `from_file'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:71:in `specification'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/specification/set.rb:94:in `specification'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:85:in `block in search'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:80:in `each'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:80:in `find'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:80:in `search'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:158:in `block in search'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:158:in `select'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/source.rb:158:in `search'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:172:in `find_cached_set'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:192:in `block (2 levels) in find_dependency_specs'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/user_interface.rb:77:in `message'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:191:in `block in find_dependency_specs'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:186:in `each'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:186:in `find_dependency_specs'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:92:in `block (2 levels) in resolve'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/user_interface.rb:37:in `section'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:90:in `block in resolve'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:89:in `each'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/resolver.rb:89:in `resolve'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/installer.rb:186:in `specs_by_target'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/installer.rb:101:in `block in install!'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/user_interface.rb:37:in `section'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/installer.rb:100:in `install!'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/command/install.rb:46:in `run_install_with_update'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/command/install.rb:51:in `run'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/lib/cocoapods/command.rb:75:in `run'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/gems/cocoapods-0.16.4/bin/pod:16:in `<top (required)>'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/bin/pod:19:in `load'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/bin/pod:19:in `<main>'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/bin/ruby_noexec_wrapper:14:in `eval'
/Users/ustym/.rvm/gems/ruby-1.9.3-p286@mobile_dev/bin/ruby_noexec_wrapper:14:in `<main>'

ened commented Mar 27, 2013

Solved by upgrading to cocoapods 0.17.0.rc7 using gem install cocoapods --pre - bug should still be fixed I think.

Already fixed in the spec, some background infos could found in the commit message:

CocoaPods/Specs@41bdfe5

Owner

alloy commented Apr 2, 2013

Thanks guys!

@alloy alloy closed this Apr 2, 2013

@jzapater jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013

Sebastien Thiebaud Merge pull request #910 from Raizlabs/master
Add RZCollectionList 0.5.0
594d7ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment