ios - Include CocoasMQTT library in swift framework project -


i pretty new swift , ios development. trying write framework using swift 2.0. need import cocoasmqtt library in framework. using cocoa pods approach , added

use_frameworks! pod 'cocoamqtt' 

in pod file. after pod install. in pods directory can see debug.xconfig , release.xconfig files(in xcode directory view). think should have worked unable import library in swift classes says "no such module 'cocoamqtt'" when try

import cocoamqtt 

in code.

can explain if doing wrong. p.s., have included use_frameworks! , using ios version 9 development think don't have write objective c bridge header.

i had same problem to. problem cause using cocoapods. think open .xcodeproj file xcode if install pods must open .xcworkspacefile. should raywenderlich's forum using cocoapods.

https://www.raywenderlich.com/97014/use-cocoapods-with-swift


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -