Project build failed while using Carthage build #155
Description
Build example app (and other ones using liveQuery) failed after carthage build.
Setup:
swift 4.0
xcode 9.2
carthage 0.28.0
cat Cartfile
github "ParsePlatform/ParseLiveQuery-iOS-OSX" "2.3.0"
cat Cartfile.resolved
github "BoltsFramework/Bolts-ObjC" "1.9.0"
github "BoltsFramework/Bolts-Swift" "1.3.0"
github "ParsePlatform/Parse-SDK-iOS-OSX" "1.16.0"
github "ParsePlatform/ParseLiveQuery-iOS-OSX" "2.3.0"
github "daltoniam/Starscream" "3.0.4"
github "daltoniam/common-crypto-spm" "1.1.0"
github "daltoniam/zlib-spm" "1.1.0"
Carthage build of frameworks is fine, yet when trying to build the project, it will report duplicate definition errors like below. Checking files under Carthage/Checkouts, we would find there is a duplicate copy of every libraries used by ParseLiveQuery, one is under ./Checkouts directly, another is under ./Checkouts/ParseLiveQuery-iOS-OSX/Carthage/Checkouts. Looks to me like dependency management problem.
/liveQuery/Carthage/Checkouts/Starscream/zlib/module.modulemap:1:8: error: redefinition of module 'SSCZLib'
module SSCZLib [system] {
^
/liveQuery/Carthage/Checkouts/ParseLiveQuery-iOS-OSX/Carthage/Checkouts/Starscream/zlib/module.modulemap:1:8: note: previously defined here
module SSCZLib [system] {
^
/liveQuery/Carthage/Checkouts/Starscream/zlib/module.modulemap:6:8: error: redefinition of module 'SSCommonCrypto'
module SSCommonCrypto [system] {
^
/liveQuery/Carthage/Checkouts/ParseLiveQuery-iOS-OSX/Carthage/Checkouts/Starscream/zlib/module.modulemap:6:8: note: previously defined here
module SSCommonCrypto [system] {
^
:0: error: could not build Objective-C module 'Starscream'