DEPRECATED: this repo is no longer actively maintained. It can still be used as reference, but may contain outdated or unpatched code.
This repository contains an example application to demonstrate how the Swift-based Watson Developer Cloud Swift SDK can be consumed from an Objective-C application.
This example modifies the JSQMessagesViewController demo application to add Watson services, including Speech to Text, Conversation, and Text to Speech.
- iOS 8.0+
- Xcode 9.0+
- Swift 4.0+
- Clone the repository:
git clone https://github.com/watson-developer-cloud/simple-chat-objective-c.git
- Install Carthage using Homebrew:
brew install carthage
- Build the dependencies:
carthage update --platform iOS
- Open
ChatApp.xcworkspace
- Copy
CredentialsExample.swift
toCredentials.swift
. - Update your service credentials in
Credentials.swift
- Build and run the app!