So a couple things
You should likely submit a pull request to SocketRocket to remove the usage of
dispatch_get_current_queue
and change it to whatever it was replaced with, but it is a warning so it's not a huge concern for now.Since the SocketRocket project does not support/utilize ARC (presumably since it is has retain/release calls in it) you will need to go into Build Phases > Compile Sources and locate all SocketRocket classes and add the
-fno-objc-arc
compiler flag. This will let you compile, ideally though the SkyRocket Podspec should be updated to specify that ARC should be turned off. Thecompiler_flags
property in the Podspec should include-fno-objc-arc
, you should submit a pull request to have that updated.
EDIT
Interestingly SocketRocket touts that it uses ARC and I do not see any calls to retain/release (outside of CFRetain/CFRelease, which is fine/necessary in ARC).
I took a peak at the source code for SRWebSocket.m for both versions that are listed in the podspec repo (0.1.0 and 0.2.0) neither have retain/release calls.
0.2.0: https://github.com/square/SocketRocket/blob/v0.2.0/SocketRocket/SRWebSocket.m
Strange?? Are you sure you are getting errors about SRWebSocket.m?
EDIT 2
After further digging and as mentioned in the comments. dispatch_release
and dispatch_retain
are not allowed when targeting iOS 6.0+ or OS X 10.8+ so you will need to remove those calls or do something that was suggested in pull request 55 for the project