Sqlite.swift不适用于Xcode 7.3

阿什什·卡卡德

我在Xcode 7.2.x中使用Sqlite.swift运行正常。

我已经将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'

使用版本: pod 'SQLite.swift', '~> 0.9.2'

我发现了一个关闭池请求并出现了同样的问题。https://github.com/stephencelis/SQLite.swift/issues/349

我试过使用以下分支:

pod 'SQLite.swift',
  git: 'https://github.com/stephencelis/SQLite.swift.git',
  branch: 'cocoapods-xcode-7-3'

但是我无法解决这个问题。

等待真正的解决方案。

斯蒂芬斯利斯

不幸的是,另一个答案是不准确的。两者master和最新版本0.10.1几天前发布)都与Xcode 7.3和CocoaPods 1.0.0 beta 6兼容。

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

  • 如果尚未安装,请更新到最新的CocoaPods Beta版本:

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

  • 在重新构建之前,按住“ option”键并从Xcode的“产品”菜单中运行Clean Build Folder…
  • 从项目目录中删除“ Pods”文件夹,然后重新运行pod install
  • 如果所有其他方法均失败,请从“应用程序”文件夹中删除“ Xcode.app”,然后重新安装(一些用户的Xcode安装错误)。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章