swiftc and CocoaPods modules


(Marcel Rebouças) #1

Hello all,

I'm trying to run the swiftc (a modified one) command in a project folder
in order to compile all .swift files. It is currently working as follows:

xcrun -sdk iphoneos build/Ninja-DebugAssert/swift-macosx-x86_64/bin/swiftc
-dump-ast -target armv7-apple-ios7.0 **/*.swift

Right now, it is able to find and compile all .swift files in the
directories and subdirectories, and is able to import modules such as UIKit.

However, I can't find a way to make it work with modules added through
CocoaPods. This generates an error like:

*Example/Source/DetailViewController.swift:23:8: **error: **no such module
'Alamofire'*

Any thoughts?

Thanks,

Marcel


(Marcel Rebouças) #2

I just realized the text formatting is wrong, sorry for that.

···

2016-05-09 11:17 GMT-03:00 Marcel Rebouças <mscreboucas@gmail.com>:

Hello all,

I'm trying to run the swiftc (a modified one) command in a project folder
in order to compile all .swift files. It is currently working as follows:

xcrun -sdk iphoneos build/Ninja-DebugAssert/swift-macosx-x86_64/bin/swiftc
-dump-ast -target armv7-apple-ios7.0 **/*.swift

Right now, it is able to find and compile all .swift files in the
directories and subdirectories, and is able to import modules such as UIKit.

However, I can't find a way to make it work with modules added through
CocoaPods. This generates an error like:

*Example/Source/DetailViewController.swift:23:8: **error: **no such
module 'Alamofire'*

Any thoughts?

Thanks,

Marcel