iOS8: Custom Swift Framework accessing external framework written in Objective-C

前端 未结 3 1194
天涯浪人
天涯浪人 2021-01-05 00:58

I\'m trying to create a custom framework called CouchbaseKit (a new target in Xcode) in Swift. Inside my CouchbaseKit, I need to access Couc

3条回答
  •  礼貌的吻别
    2021-01-05 01:09

    CouchbaseLite on iOS is a static framework, i.e. its binary is a static library not a dylib. This means it's linked into your app as though it were a source file. For this reason you don't use import in Swift to access it; the classes are already in the same namespace as your app's classes.

提交回复
热议问题