iosobjective-cswiftcocoapodssocketrocket

Adding SocketRocket to a Swift project through Pods


I'm trying to add the SocketRocket framework to my Swift project using pods and I haven't been able to get the import to work on the Swift side.

I added the following entry to the Podfile:

pod 'SocketRocket', '0.2.0'

And ran pod install.

Then added the bridging header with:

#import <ScoketRocket/SRWebSocket.h>

In my ViewController, Xcode doesn't find the header file:

import SRWebSocket 

fails. I really hope to get this done through pods instead of manually adding the files to the project.

Thanks.


Solution

  • Is there a typo ?

    #import <ScoketRocket/SRWebSocket.h>
    

    ScoketRocket/SRWebSocket.h