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
Post a Comment