Reputation: 23882
I was using Sqlite.swift with Xcode 7.2.x. It was working fine.
I have updated Xcode to Xcode 7.3 and problem occurs with Sqlite.swift framework.
/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'
Using version : pod 'SQLite.swift', '~> 0.9.2'
I found a closed pool request with the same issue. https://github.com/stephencelis/SQLite.swift/issues/349
I have tried using following branch :
pod 'SQLite.swift',
git: 'https://github.com/stephencelis/SQLite.swift.git',
branch: 'cocoapods-xcode-7-3'
But I could not able to solve this problem.
Waiting for genuine solution.
Upvotes: 3
Views: 2571
Reputation: 4345
I'm using Xcode 7.3, and Cocoapods version 1.0.0.beta.5
. I am not using the most recent version of Cocoapods because it caused me many problems a few weeks ago with other pods that I'm using, and I don't want to update it again until I feel that it is more stable.
What worked for me:
Option-Shift-Command-K
)Pods/
directory and delete the Podfile.lock
file (don't delete Podfile
!)pod 'SQLite.swift', git: 'https://github.com/stephencelis/SQLite.swift.git'
pod install
Upvotes: 0
Reputation: 4964
The other answer is unfortunately inaccurate. Both master
and the latest version, 0.10.1
(released a couple days ago), are compatible with Xcode 7.3 and CocoaPods 1.0.0 beta 6.
The Xcode upgrade process had some snags this time around, though, and one or more of the following steps were needed for several users after updating CocoaPods and the pod:
If you haven't already, update to the latest beta version of CocoaPods:
Run sudo gem update cocoapods --pre
and re-run pod install
.
pod install
.Upvotes: 3
Reputation: 70098
The "master" branch of the SQLite.swift repository is not compatible with Xcode 7.3.
Fortunately, the author has already made a compatible branch:
https://github.com/stephencelis/SQLite.swift/tree/cocoapods-xcode-7-3
This is the one you should use in Xcode 7.3 (I'm using it without any issues).
This is the same repository: it's just a different branch. We can guess it will be merged with "master" as soon as the author sees fit.
Upvotes: 4