[swift-users] swiftc and CocoaPods modules

Marcel Rebouças mscreboucas at gmail.com
Wed May 11 11:07:17 CDT 2016


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

2016-05-09 11:17 GMT-03:00 Marcel Rebouças <mscreboucas at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160511/8b8e97c9/attachment.html>


More information about the swift-users mailing list