[swift-users] Compiled swift module to be used in swift playground
Zhao Xin
owenzx at gmail.com
Thu Jul 14 04:54:40 CDT 2016
You can download this.
https://static.realm.io/downloads/swift/realm-swift-1.0.2.zip
You can find example applications for both iOS and OS X in our release zip
> under examples/, demonstrating how to use many features of Realm like
> migrations, how to use it with UITableViewControllers, encryption,
> command-line tools and much more.
You can learn what they did it. They use a playground wrapper to do it.
Zhaoxin
On Thu, Jul 14, 2016 at 4:59 PM, TUNG CK <cktung at mac.com> wrote:
> [image: image1.PNG]
> 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/f0793ee4/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/f0793ee4/attachment.png>
More information about the swift-users
mailing list