我在
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).
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。