ibm watson with wiced sense (IoS app)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello vik86

you created a demo application on IoS to connect WICED sense to IBM watson https://community.broadcom.com/community/wiced-smart/wiced-smart-forums/blog/2016/03/28/ios-applicat...

i tried to compile your project with XCODE (7.3) and i got 3 errors.

- in ssl.h : expected identifier or '('

- in mosquitto_internal.h : unknown type name 'SSL'

- in mosquitto_internal.h :unknown type name 'SSL_CTX'

just by chance, did you already see this problem ?

i don't have experience with xcode it is my first trial so maybe i've something wrong.

thank you

0 Likes
1 Reply
VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

Hi Etienne,

I'll provide more details on setting up the project, since I've imported the Moscapsule library for MQTT functionality into my project, you would have to setup in the pod file

Add the below in pod file( "pod init" )

use_frameworks!

pod 'Moscapsule', :git => 'https://github.com/flightonary/Moscapsule.git'

pod 'OpenSSL-Universal', '~> 1.0.1.l'

pod install

Later you would have to create a bridge header, since the Moscapsule is based of objective-C .(Using Swift with Cocoa and Objective-C (Swift 2.2): Swift and Objective-C in the Same Project

This can be manually done by following the steps here

Adding a Swift Bridge Header manually | bencoding

Once you done this you should be able to build and compile the application

hth

Vik86