IBM / BluePic

WARNING: This repository is no longer maintained :warning: This repository will not be updated. The repository will be kept available in read-only mode.
https://developer.ibm.com/code/patterns
Apache License 2.0
325 stars 67 forks source link

Build Error for BluePic-Server - No such module CouchDB #277

Closed csantanapr closed 8 years ago

csantanapr commented 8 years ago

My env: In terminal setup: swift-DEVELOPMENT-SNAPSHOT-2016-05-03-a $ swift --version Apple Swift version 3.0-dev (LLVM dffa09ffd8, Clang 1e6cba3ce3, Swift d2aee43220) Target: x86_64-apple-macosx10.9 XCode 8 beta setup to default ToolChain

Steps to reproduce:

  1. Create a new BluePic project using IBM Cloud Tools for Swift
  2. Open BluePic-Server in terminal
  3. Run swift build (finished with no errors)
  4. Run swift build -X (generated ./BluePic-Server.xcodeproj)
  5. Open in XCode 8 Run open -a /Applications/Xcode-beta.app BluePic-Server.xcodeproj

Results: Build Error No such module CouchDB image

I see CouchDB listed, then why the error image

Switched to server->My Mac and try to Build more errors: image

rolivieri commented 8 years ago

@csantanapr Hello, since you are using The IBM Cloud Tools for project generation, I’d recommend using their feedback(http://ibm.biz/Bd4QPP) page to provide feedback and/or report any issues you may be running into. Having said that, I noticed you are using Xcode 8. The BluePic iOS app code was tested and developed using Xcode 7.3 (default toolchain). For the back-end components, a different toolchain was used: DEVELOPMENT-SNAPSHOT-2016-05-03-a version (see the Swift version section in the README).

csantanapr commented 8 years ago

To use XCode 8 for the server project do I need to set the tool chain to 5/3 ? Xcode 8 comes wit tool gain 6/13 I think

csantanapr commented 8 years ago

I reported all issues using their form but pointed here to github since it's easier to attached terminal output and screenshots

tfrank64 commented 8 years ago

We did our development with Xcode 7.3.1, but yes if you can find a way to use the 5/3 toolchain in Xcode 8, then it should work for the Server project. I noticed many of my old toolchains are incompatible with Xcode 8.

csantanapr commented 8 years ago

Do you mind updating the README to help others trying to setup this locally. About using XCode 7 and to use a different tool chain for iOS project and a different one for server?

tfrank64 commented 8 years ago

Ricardo updated the Readme this morning with your second point, but we could probably make it more clear that Xcode 8 may not work. Were you able to run the server in Xcode 8?

tfrank64 commented 8 years ago

@csantanapr We made another update to the Readme so it is more clear. I will close this issue unless there is something else?

csantanapr commented 8 years ago

The update help now. In addition can you add something about the backend component that user needs to use XCode 7 and build 05/03?

The back-end components (i.e. Kitura-based server and OpenWhisk actions) of the BluePic app work with the DEVELOPMENT-SNAPSHOT-2016-05-03-a version of the Swift binaries. To run the back-end with Xcode, use Xcode 7.3.1 and configure it to use the specified ToolChain. At the moment, any other versions of Xcode are not guaranteed to work.

rolivieri commented 8 years ago

@csantanapr Using Xcode for the back-end code is completely optional. Having said that, we just added one more paragraph to state that it is possible.

csantanapr commented 8 years ago

Yep I understand it's optional, but I happened to have a Mac and like Xcode so why not use it

README looks OK now I will close now