HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – 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'

我无解决这个问题.

等待真正的解决方案.

解决方法

不幸的是,另一个答案是不准确的.主版和最新版0.10.1( a couple days ago发布)与Xcode 7.3和CocoaPods 1.0.0 beta 6兼容.

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

>如果您还没有,请更新到CocoaPods的最新测试版:

运行sudo gem update cocoapods –pre并重新运行pod install.>在重新构建之前,按住“选项”键并从Xcode的“产品”菜单运行“清理构建文件夹…”.>从项目目录中删除“Pods”文件夹,然后重新运行pod install.>如果所有其他方法都失败了,请从“Applications”文件夹中删除“Xcode.app”并重新安装(少数用户安装了错误的XcodE).

大佬总结

以上是大佬教程为你收集整理的ios – Sqlite.swift无法使用Xcode 7.3全部内容,希望文章能够帮你解决ios – Sqlite.swift无法使用Xcode 7.3所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。