我在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
。
pod install
。本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句