[swift-users] Compiled swift module to be used in swift playground

TUNG CK cktung at mac.com
Thu Jul 14 03:59:32 CDT 2016


Thanks for you info.

No matter I put the framework under Sources or Resouces, it can't import in playground

> Zhao Xin <owenzx at gmail.com> 於 14 Jul 2016 3:50 PM 寫道:
> 
> You can create a folder named Sources in your .playground file package and put your frameworks there. I guess you didn't use Xcode. Or you will find it yourself.
> 
> <屏幕快照 2016-07-14 下午3.49.47.png>
> 
> Zhaoxin
> 
>> On Thu, Jul 14, 2016 at 3:36 PM, TUNG CK via swift-users <swift-users at swift.org> wrote:
>> I found out I could use
>> swift -F build/Debug
>> if the module is build as a target framework
>> But how to put this framework to use in swift playground ?
>> 
>> > TUNG CK via swift-users <swift-users at swift.org> 於 14 Jul 2016 1:33 PM 寫道:
>> >
>> > How can I use a compiled swift module to be use in swift REPL or playground ?
>> >
>> > such as in swift REPL
>> > import MyModule
>> >
>> > P.S. I could use it in swift package manager by adding it as a dependency in  the Package.swift
>> >
>> > _______________________________________________
>> > swift-users mailing list
>> > swift-users at swift.org
>> > https://lists.swift.org/mailman/listinfo/swift-users
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160714/18354351/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1.PNG
Type: image/png
Size: 100004 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160714/18354351/attachment.png>


More information about the swift-users mailing list