amazon-archives/aws-sdk-ios-v1

Adding a podspec for 1.4.4 for use with cocoapods

Closed this issue · 0 comments

Hi there,

I'd like to use this SDK with cocoapods but the latest version with a podspec is 1.3.3. I tried adding a podspec myself but was unsuccessful. Could you add a new podspec to https://github.com/CocoaPods/Specs , or perhaps do you see what's wrong with the following?

Thanks,

Francesco

Here's the modified spec I tried to use:

Pod::Spec.new do |s|
  s.name         =  'AWSiOSSDK'
  s.version      =  '1.4.4'
  s.license      =  'https://github.com/aws/aws-sdk-ios/blob/master/LICENSE.txt'
  s.summary      =  'Amazon Web Services SDK for iOS.'
  s.homepage     =  'http://aws.amazon.com/sdkforios'
  s.author       =  { 'Amazon Web Services' => 'amazonwebservices' }
  s.source       =  { :git => 'https://github.com/aws/aws-sdk-ios.git', :commit => 'f9238cfc4c4da4f84e79203d5b6b8a8439a2befe'}
  s.description  =  'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
  s.platform     =  :ios

  s.header_mappings_dir = 'src/include'

  s.subspec 'DynamoDB' do |ss|
    ss.source_files = "src/Amazon.DynamoDB/**/*.m", "src/include/DynamoDB/*.h"
    ss.dependency 'AWSiOSSDK/Runtime'
  end

  s.subspec 'Runtime' do |ss|
    ss.source_files = "src/Amazon.Runtime/**/*.m", "src/include/*.h"
    ss.dependency 'AWSiOSSDK/DynamoDB'
    ss.dependency 'AWSiOSSDK/GMT-Logger'
    ss.dependency 'SBJson'
  end

  # TODO: GTM should be an external dependency.
  s.subspec 'GMT-Logger' do |ss|
    ss.source_files = 'src/ThirdParty/GTM*.{h,m}'
  end

  # S3 does not build because it needs a Constants.h file defined by clients
  %w[ AutoScaling CloudWatch DynamoDB EC2 ElasticLoadBalancing S3 SES SNS SQS STS SimpleDB ].each do |name|
    s.subspec name do |ss|
      ss.source_files = "src/Amazon.#{name}/**/*.m", "src/include/#{name}/*.h"
      ss.dependency 'AWSiOSSDK/Runtime'
    end
  end
end

but it fails with the following error:

$pod spec lint AWSiOSSDK.podspec 

 -> AWSiOSSDK (1.4.4)
    - ERROR | XCODEBUILD >  AWSiOSSDK/src/Amazon.DynamoDB/DynamoDBResponse.m:66:34: error: use of undeclared identifier 'AmazonErrorHandler'
    - ERROR | XCODEBUILD >  AWSiOSSDK/src/Amazon.DynamoDB/DynamoDBResponse.m:82:40: error: use of undeclared identifier 'AmazonErrorHandler'
    - ERROR | XCODEBUILD >  AWSiOSSDK/src/Amazon.DynamoDB/DynamoDBResponse.m:98:38: error: use of undeclared identifier 'AmazonErrorHandler'
    - ERROR | XCODEBUILD >  AWSiOSSDK/src/Amazon.DynamoDB/DynamoDBResponse.m:106:69: error: use of undeclared identifier 'AmazonErrorHandler'
    - ERROR | XCODEBUILD >  AWSiOSSDK/src/Amazon.DynamoDB/DynamoDBResponse.m:121:38: error: use of undeclared identifier 'AmazonErrorHandler'
    - ERROR | XCODEBUILD >  AWSiOSSDK/src/Amazon.DynamoDB/DynamoDBResponse.m:133:69: error: use of undeclared identifier 'AmazonErrorHandler'
    - WARN  | Git sources without tag should be marked as 0.0.1 (not always applicable)

Analyzed 1 podspec.

[!] The spec did not pass validation.