Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9100837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:58:02+00:00 2026-06-17T00:58:02+00:00

I’ve just begun using CocoaPods today… First up I added AFNetworking, which worked fine…

  • 0

I’ve just begun using CocoaPods today…
First up I added AFNetworking, which worked fine… Then I needed SocketRocket…

However, SRWebSocket.m throws 9 warnings and 6 errors after being added with CocoaPods…
The errors are in regards to retain/release not being available and ARC restrictions…
The warnings are all:

'dispatch_get_current_queue' is deprecated: first deprecated in iOS 6.0

So I’m guessing I might be missing a step in setting this up somehow?

Any help would be appreciated…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:58:03+00:00Added an answer on June 17, 2026 at 12:58 am

    So a couple things

    1. 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.

    2. 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. The compiler_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

    0.1.0: https://github.com/square/SocketRocket/blob/82c9f8938f8b9b7aa578866cb7ce56bc11e52ced/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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am using JSon response to parse title,date content and thumbnail images and place
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I would like to run a str_replace or preg_replace which looks for certain words
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.