0

I'm trying to create a Cocoapod. The files inside the library need access to Alamofire, SwiftyJSON, and XCGLogger Pods.

I have tried two approaches and they are both failing:

(1) Inside the Example project, I edited my Podfile to include:

pod 'couchbase-lite-ios'
pod 'SwiftyJSON', '~> 2.2.0'
pod 'Alamofire', '~> 1.2'
pod 'XCGLogger', '~> 2.0'

Did pod update relaunched the Example Workspace. Added files to the 'Development Pods' that use Alamofire, SwiftyJSON, XCGLogger, and Couchase, but I'm getting an error, no such module found.

(2) I started a new project through pod lib create and this time I manually dragged the frameworks mentioned above in Xcode, and still get the error no such module found.

enter image description here

enter image description here

Again, the files inside the Pods (or Library) that I'm trying to create can't seem to access Alamofire, SwiftyJSON, XCGLogger, and Couchase dependency. What am I doing wrong?

user1107173
  • 10,334
  • 16
  • 72
  • 117
  • Hey, were you able to get this working? Can you put your solution as an answer? – aditya Nov 03 '15 at 12:03
  • You can try this: http://stackoverflow.com/questions/31688348/ios8-custom-swift-framework-accessing-external-framework-written-in-objective-c – user1107173 Nov 03 '15 at 18:06

1 Answers1

0

Add the dependency to your *.podspec file.

Pod::Spec.new do |s|
  ...
  s.dependency 'Alamofire'
  s.dependency 'SwiftyJSON'
  s.dependency 'XCGLogger'
  s.dependency 'couchbase-lite-ios'
  ...
end
Wiles
  • 101