1

Using a Podfile like so:

platform :ios, '8.1'
source 'https://github.com/CocoaPods/Specs.git'
pod 'AWSiOSSDKv2'

I am getting a bunch of "file not found" errors in my xcode project related to the #imports being used in the AWSSDK. E.g. in AWSMobileAnalyticsContext.h:

#import "configuration/AWSMobileAnalyticsConfiguring.h"

I suspect this has to do with the fact that the project hasn't been updated with a dynamic framework output in mind (which is what the beta of cocoapods is using). I've gone through and actually tried hand-updating the paths to these imports, and I can clear most of the file not found errors, but then it starts complaining about the Mantle.h import elsewhere.

Anybody successfully gotten the AWSiOSSDKv2 to work with an app by using the cocoapods beta (or even a forked version that uses dynamic frameworks)?

MGY
  • 7,245
  • 5
  • 41
  • 74
user871177
  • 721
  • 5
  • 12
  • Did you ever get anywhere with this? i'm in the same position. – poperob Mar 15 '15 at 19:55
  • No, the repo owner for AWS podspec has been closing issues related to this, basically telling folks "use the current stable version of cocoapods" -- which of course doens't help us. I actually had to do exactly that to get it to work with my app, which is a pain. I'm assuming we'll have to wait until the official cocoapods release before we can get further action from them. – user871177 Mar 16 '15 at 20:57
  • OK thanks for replying. I'm hitting dead ends with swift and cocopods at the moment. – poperob Mar 17 '15 at 02:09

1 Answers1

0

I was able to get it to work today.

I deleted all traces of cocoapods since it had originally been installed using 0.35.

  1. [project].xcworkspace
  2. All mentions in [project].xcodeproj related to pods (yes, by hand with vim)
  3. Pods/
  4. Podfile and Podfile.lock

I then installed my swift pods using carthage instead. For me, this was Alamofire and SwiftyJSON.

I made a commit here, so I could easily go back to this point.

My podfile was just this, I could not get it to work with the use_frameworks! line.

target 'WhatsLegal' do
  pod 'AWSiOSSDKv2'
  pod 'Facebook-iOS-SDK'
end

I ran pod init and then pod install, and it started working from here!

John Beck
  • 61
  • 1
  • 2