将SQLite作为依赖导入Swift框架并使用该框架

时间:2016-09-09 01:06:10

标签: swift xcode carthage

我有一个包装SQLite的Swift框架。它针对iOS,macOS和tvOS。为实现此目的,各个平台引用另一个目标,该目标是SQLite标头和库的简单模块映射。

然后我设置Carthage导入这个库。对于Xcode 7 / Swift 2.2和Xcode 8 / Swift 2.3,这是正常的。对于Xcode 8 / Swift 3,我在运行时得到以下内容:

dyld: Library not loaded: @rpath/SQLite.framework/SQLite
  Referenced from: /Users/*****/Library/Developer/CoreSimulator/Devices/89E1BBC9-E15D-41F5-A444-7EAD878FFB97/data/Containers/Bundle/Application/075FE984-2C88-44D8-8481-C269FDFAF05A/***********.app/Frameworks/Structure.framework/Structure
  Reason: image not found

The link to the library can be found here。 Swift 3分支是2.0

有什么需要改变的想法?或者这是工具链中的错误吗?

0 个答案:

没有答案
相关问题