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 8544593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:35:53+00:00 2026-06-11T12:35:53+00:00

I have been having a bit of a bug while testing on iOS 6

  • 0

I have been having a bit of a bug while testing on iOS 6 with my current iOS 5 app.

We have experienced a lock up on a method return for an innocuous method that internally used blocks, but not as properties. The issue is that calling the method works, so does every line of code within the method (including the block utilizing code)

I tried using [block copy] before calling the block, but there was absolutely no change.

  • 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-11T12:35:55+00:00Added an answer on June 11, 2026 at 12:35 pm

    turns out the function definition of my code was declared in an internal interface and did not have a return type.

    Here are some graphics to illustrate this issue.

    The Initial Error

    The Initial Error

    The Stack Track

    The Stack Trace

    The Method in Question (isolated from self to determine the issue exact location)

    The Method in Question

    The Function Implementation (this is what is called, and returned)

    The Implementation Line

    The Definition in the Private Interface

    The Definition in the Private Interface

    I decided to look at the function call, and noticed it returning (id) rather than void

    Function returning (id)

    And Finally the only code change that alleviated this bug.

    Code Change

    Explanation

    This bug reared its ugly head when my client called me saying our app does not run on ios 6

    I was forced to download iOS 6 and Xcode 4.5 for testing this out.

    I did indeed crash every time the app was run.

    After hunting down this bug on stack overflow among other sites linked to by Google, I tried the block issue that some others are experiencing. And did a copy wherever I could to try to alleviate the issue of retained object falling off the stack.

    I was not using block properties so I just called copy on the blocks themselves.

    This did not help.

    Finally with another developer going over it with me. I was stepping back and looking at it from another angle, and decided to try to determine what the heck was being retained.

    It turned out the result of the function was being retained. And the only way I figured that out was to look at the value that auto complete showed me as the return type.

    I knew the return type to be void, however it was telling me that the return type was id and that is what sparked the investigation into the method definition.

    I hope this helps others that have this issue as I spent about 2 hours hunting it down and it turned out to be a semantic issue between a result type that should never have existed.

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

Sidebar

Related Questions

I have been having quite a bit of trouble implementing unit testing on the
I have been having a bit of trouble with this issue with a while
I have been having some real trouble with this for a while. I am
I have been having an issue with the $this->delete() method that deletes a record
I'm having a little bit of trouble implementing the following method while handling the
I have been having issues with a custom check box control for a while
I have been having a bit of trouble with my find and replace function
I have been having a bit of a play with TPL and it's associated
I've been having a bit of trouble with a UISplitViewController in my iPad app.
OK, so I have been having a bit of a tough time with webcam

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.