onmyway133 / Arcane

:trident: CommonCrypto in Swift, and more
https://onmyway133.github.io/
Other
284 stars 22 forks source link

redefinition of module 'CCommonCrypto' #9

Closed rzolin closed 6 years ago

rzolin commented 7 years ago

In search for answer to use CommonCrypto in my Swift Cocoapod I found your pod, which seems to be the answer. But I ran into an issue on XCode 9 (beta 6) with iOS11. If I include your pod it gives me the error redefinition of module 'CCommonCrypto' for each of the deployment targets like so:

/.../Pods/Arcane/CocoaPods/appletvsimulator/module.modulemap:1:8: error: redefinition of module 'CCommonCrypto'
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/appletvos/module.modulemap:1:8: note: previously defined here
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/iphoneos/module.modulemap:1:8: error: redefinition of module 'CCommonCrypto'
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/appletvos/module.modulemap:1:8: note: previously defined here
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/iphonesimulator/module.modulemap:1:8: error: redefinition of module 'CCommonCrypto'
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/appletvos/module.modulemap:1:8: note: previously defined here
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/macosx/module.modulemap:1:8: error: redefinition of module 'CCommonCrypto'
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/appletvos/module.modulemap:1:8: note: previously defined here
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/watchos/module.modulemap:1:8: error: redefinition of module 'CCommonCrypto'
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/appletvos/module.modulemap:1:8: note: previously defined here
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/watchsimulator/module.modulemap:1:8: error: redefinition of module 'CCommonCrypto'
module CCommonCrypto [system] {
       ^
/.../Pods/Arcane/CocoaPods/appletvos/module.modulemap:1:8: note: previously defined here
module CCommonCrypto [system] {

Any ideas how to fix that?

onmyway133 commented 6 years ago

@rzolin Hi, I just updated the project to Swift 4, you can check tag 1.0.0. And can you test with my example https://github.com/onmyway133/Arcane/tree/master/Example/CommonCryptoSwiftDemo? I built without any problem