Shashi Ranjan
Shashi Ranjan

Reputation: 154

Is there any way to create a library or framework written in Swift that doesn't expose source?

my questions are those five:

  1. Can I write static library by using swift ??

  2. Can I use a static library that is coded by swift?

  3. Can I use a static library that is coded by objective-c?

  4. It seems like from xcode 8, static library is only coded by objective-c(no choice to swift),.... Then I code static library with objective-c, Dose it can be used full swift based project (the project's target SDK is iOS 8) ?

  5. Is there any way to create a library or framework written in Swift that doesn't expose source? Thanks

Upvotes: 1

Views: 802

Answers (1)

Tj3n
Tj3n

Reputation: 9923

  1. No, you have to use framework for swift
  2. There's no static library coded by swift
  3. Yes
  4. Yes, you can use any kind of Obj-C code in swift
  5. Create dynamic framework using swift will hide your source with proper use of access keyword

Upvotes: 4

Related Questions