Ios Sqlite.swift不使用Xcode 7.3

Ios Sqlite.swift不使用Xcode 7.3,ios,swift,sqlite.swift,xcode7.3,swift2.2,Ios,Swift,Sqlite.swift,Xcode7.3,Swift2.2,我使用的是Xcode 7.2.x。它工作得很好 我已经将Xcode更新为Xcode 7.3,Sqlite.swift框架出现了问题 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/module.modulemap:1:8: error: redefinition of module 'Compression' module

我使用的是Xcode 7.2.x。它工作得很好

我已经将Xcode更新为Xcode 7.3,Sqlite.swift框架出现了问题

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/module.modulemap:1:8: error: redefinition of module 'Compression'
module Compression [system] [extern_c] {
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:1:8: note: previously defined here
module Compression [system] [extern_c] {
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/module.modulemap:6:8: error: redefinition of module 'Darwin'
module Darwin [system] [extern_c] {
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:6:8: note: previously defined here
module Darwin [system] [extern_c] {
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/module.modulemap:1478:8: error: redefinition of module 'os'
module os [system] [extern_c] {
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:1599:8: note: previously defined here
module os [system] [extern_c] {
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/module.modulemap:1494:8: error: redefinition of module 'libkern'
module libkern [system] [extern_c] {
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:1615:8: note: previously defined here
module libkern [system] [extern_c] {
       ^
<unknown>:0: error: could not build Objective-C module 'SQLite'
但我无法解决这个问题

正在等待真正的解决方案。

SQLite.swift存储库的“主”分支与Xcode 7.3不兼容

幸运的是,作者已经创建了一个兼容的分支:

这是您应该在Xcode 7.3中使用的(我使用它时没有任何问题)


这是同一个存储库:它只是一个不同的分支。我们可以猜测,一旦作者认为合适,它将与“master”合并。

另一个答案不幸不准确。
master
和最新版本
0.10.1
(已发布)都与Xcode 7.3和CocoaPods 1.0.0 beta 6兼容

不过,Xcode升级过程这次遇到了一些障碍,在更新CoCoapod和pod之后,一些用户需要执行以下一个或多个步骤:

  • 如果尚未更新,请更新至CocoaPods的最新测试版:

    运行
    sudo gem update cocoapods--pre
    并重新运行
    pod安装

  • 在重新构建之前,按住“选项”键并从Xcode的产品菜单中运行清理构建文件夹…
  • 从项目目录中删除“Pods”文件夹,然后重新运行
    pod安装
  • 如果所有其他操作都失败,请从“应用程序”文件夹中删除“Xcode.app”并重新安装(少数用户的Xcode安装不正确)

我正在使用Xcode 7.3和Cocoapods版本
1.0.0.beta.5
。我没有使用最新版本的Cocoapods,因为它在几周前给我使用的其他pods带来了很多问题,我不想再次更新它,直到我觉得它更稳定

对我有用的是:

  • 清理生成文件夹(键绑定:
    Option-Shift-Command-K
  • 删除
    Pods/
    目录并删除
    Podfile.lock
    文件(不要删除
    Podfile
    !)
  • 使用以下命令确认podfile包含指向github url的导入语法:
  • pod'SQLite.swift',git:'https://github.com/stephencelis/SQLite.swift.git“

  • 保存播客文件编辑(如果有)
  • 运行
    pod安装

  • 我在使用他们的软件,没有问题。相同的回购协议,但不是相同的分支机构。:)@埃里克:你应该把这个作为答案提交。为什么要投反对票!!很多开发者都面临这个问题。我来检查一下这个。但是我们可以用pod吗?@AshishKakkad这个版本还没有pod。但安装很简单:将SQLite.swift xcodeproject拖到您的项目中,然后在“链接框架和库”中添加链接的SQLite库。确定。谢谢我会检查。@Eric该分支已经合并并且版本发生了变化(我没有删除它的唯一原因是为了让成功锁定它的人不会有问题——我可能会在一个月左右删除它)。@Stephenclis好的,我明白了。我之前曾尝试使用7.3的主分支,但失败了,因此我对Ashish问题的回答是。谢谢你提供这些宝贵的信息,我会在自己的安装中尝试。谢谢你的回答。我会检查的。我已经在两台不同的电脑上试过了,但都没用。我现在正在尝试最后一步,在其中一个上重新安装Xcode。还有什么吗?我将pod文件中的行更改为
    pod'SQLite.swift',“~>0.10.1”
    谢谢@FrankConry有帮助吗?我无法让任何东西工作,现在也没有时间重新安装。@CodyHarness是的。成功了。按照上面的步骤,按照我所描述的修改pod文件,它应该可以工作,而无需重新安装xcode
    pod 'SQLite.swift',
      git: 'https://github.com/stephencelis/SQLite.swift.git',
      branch: 'cocoapods-xcode-7-3'