Iâve downloaded Cocoa pods, copied the commands you detail and run âswift buildâ. The package manager goes away and getâs all the dependencies but then I get a Fatal error:
Fatal error: Duplicate values for key: âCouchDBâ: file /BuildRoot/Library/Caches/com.apple.xbs/Binaries/swiftlang/install/TempContent/Objects/BNI_assert_lightweight/swift-macosx-x86_64/stdlib/public/core/8/HashedCollections.swift, line 8108
Illegal instruction: 4
Hi @yodatg! Letâs see what we can do. Can you answer a couple of questions for me?
what version of swift are you running via your command line? (You can check with swift --version)
what did you use to install CouchDB (Homebrew or something else)?
what version of CouchDB is installed? (You can check this by visiting localhost:5984 in your browser.)
Also, if you donât want to continue this question here, you can join our slack at http://slack.kitura.io and get help from myself or someone else on the Kitura team.
~/Downloads/getting-started/starter/EmojiJournalServer $ swift package generate-xcodeproj
warning: PackageDescription API v3 is deprecated and will be removed in the future; used by package(s): Stencil
'CommonCrypto' /Users/unipheas/Downloads/getting-started/starter/EmojiJournalServer/.build/checkouts/CommonCrypto.git--9083855582992868405: warning: Ignoring declared target(s) 'CommonCrypto' in the system package
'CCurl' /Users/unipheas/Downloads/getting-started/starter/EmojiJournalServer/.build/checkouts/CCurl.git--4701432290616523576: warning: Ignoring declared target(s) 'CCurl' in the system package
generated: ./EmojiJournalServer.xcodeproj
After running the SPM command and opening the package I then select the right Scheme and hit run. I then get the following errors.
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/CommonCrypto/module.modulemap:1:8: Redefinition of module 'CommonCrypto'
/Users/unipheas/Downloads/getting-started/starter/EmojiJournalServer/.build/checkouts/Kitura-WebSocket.git-5119411368287924598/Sources/KituraWebSocket/WSConnectionUpgradeFactory.swift:19:8: No such module 'Cryptor'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/CommonCrypto/module.modulemap:1:8: Redefinition of module 'CommonCrypto'
/Users/unipheas/Downloads/getting-started/starter/EmojiJournalServer/.build/checkouts/SwiftMetrics.git--7583004232535015354/Sources/SwiftMetricsBluemix/SwiftMetricsBluemix.swift:26:8: No such module 'SwiftBAMDC'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/CommonCrypto/module.modulemap:1:8: Redefinition of module 'CommonCrypto'
warning: PackageDescription API v3 is deprecated and will be removed in the future; used by package(s): Stencil
âCommonCryptoâ /Users/jan/Developer/Projects/Kitura/getting-started/starter/EmojiJournalServer/.build/checkouts/CommonCrypto.git-6198766693013294880: warning: Ignoring declared target(s) âCommonCryptoâ in the system package
âCCurlâ /Users/jan/Developer/Projects/Kitura/getting-started/starter/EmojiJournalServer/.build/checkouts/CCurl.gitâ8312469658033386208: warning: Ignoring declared target(s) âCCurlâ in the system package
Can you show me which scheme you are trying to run in Xcode, as well as on which device? We want to make sure you are running the executable for EmojiJournalServer, and you want to be sure that it is running on âMy Macâ.
In terminal when I run swift package generate-xcodeproj I get the following warnings
warning: PackageDescription API v3 is deprecated and will be removed in the future; used by package(s): Stencil
'CommonCrypto' /Users/unipheas/Downloads/getting-started/starter/EmojiJournalServer/.build/checkouts/CommonCrypto.git--7190019815585461610: warning: Ignoring declared target(s) 'CommonCrypto' in the system package
'CCurl' /Users/unipheas/Downloads/getting-started/starter/EmojiJournalServer/.build/checkouts/CCurl.git--1931583891200464794: warning: Ignoring declared target(s) 'CCurl' in the system package