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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:16:37+00:00 2026-05-26T03:16:37+00:00

I have recently upgraded to Xcode 4.2 and its started to give me so

  • 0

I have recently upgraded to Xcode 4.2 and its started to give me so many semantic warnings with my code…

one of them is “conflicting distributed object modifiers on return type in implementation of ‘release'” in my singleton class..

I read somewhere about – (oneway void)release; to release this warning but once i put that in my code i start to getting compile error as “Duplicate declaration of release” not sure why and if you try to find the second declaration it shows in this line

SYNTHESIZE_SINGLETON_FOR_CLASS(GlobalClass);

Update: This is the post where it explained about – (oneway void)release;

how to get rid of this warning “conflicting distributed object modifiers on return type in implementation of release” ? and why its happening ?

  • 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-05-26T03:16:37+00:00Added an answer on May 26, 2026 at 3:16 am

    The post you link to contains the solution to the problem in the title and explains why it happened to you.

    However, from reading your question it appears that your new issue is caused by mis-applying the great advice in that post’s answer. I am fairly certain you added the line

    - (oneway void) release {}
    

    in your .m file rather than amending your existing

    - (void) release {
    

    line with the extra word “oneway”.

    This would be why you get “Duplicate declaration of release”. Yes, this is confusing because it’s a duplicate definition that is invisibly creating the duplicate declaration. But I’ve just tried doing it your wrong way, and I get that “duplicate declaration” message.

    I get the impression, perhaps wrongly, that you didn’t realise you actually had a release method, particularly when you think adding the line will “release this warning”.

    Don’t take all errors too literally, and always try to think what someone might really mean as it’s often different from what they say, but do try and understand what is in your code, even in the classes you’ve taken off the shelf.

    And to address other questions raised, the reason you’re overriding release is because it is a singleton which is not usually released. You probably only have a definition in your code, which will suffice.

    What Jonathan Grynspan has to say about specifying on both the declaration and the definition is broadly valid (and indeed the root of the issue) but it’s important to recognise that in this specific case, the declaration is by Apple’s foundation code which has changed.

    So, if it’s not clear already, amend the line that XCode finds problem with to include the word oneway.

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

Sidebar

Related Questions

We have recently upgraded from Delphi 2009 to 2010. One of the things in
We've recently upgraded one of our SSRS2005 servers to SSRS2008 and have found that
I've recently upgraded my Xcode version and have been having huge trouble trying to
I have a solution that uses EF Code First. I recently upgraded all my
We have recently upgraded from mvc2 to mvc3 and one of our Custom Authorization
I have recently upgraded my .Net 3.5 solution containing some C# code projects and
I have recently (e.g. just now) upgraded to XCode 4, and I like it
I have an app that I developed with Xcode 3 and recently started editing
I have recently upgraded from VS2005 to VS2010. In my .Net 2.0 code I
I have recently upgraded to h2 1.2.147. My code throws an exception - Caused

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.