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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:36:44+00:00 2026-06-17T14:36:44+00:00

I have a class exposing some methods, whose implementation is provided by an inner

  • 0

I have a class exposing some methods, whose implementation is provided by an inner object.

I’m using forward invocation to dispatch at runtime the method calls to the inner object, but XCode is complaining since it cannot find an implementation of the declared methods.

I found some other similar questions on SO, but all of them were solved with a design change.

I don’t mean to have a discussion about the design here, but if anybody has some suggestion about it I have an open question on Code Review, which is more suitable for such kind of discussions.

My question is here is whether a method to turn off the Incomplete Implementation warning in XCode exists.

  • 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-17T14:36:45+00:00Added an answer on June 17, 2026 at 2:36 pm

    You can suppress Incomplete Implementation warnings by adding

      #pragma clang diagnostic ignored "-Wincomplete-implementation"
    

    just above the @implementation

    Hope this helps

    EDIT

    After being told in the comments that this didn’t work for someone and finding out the reason was because it was a different warning they were getting I have done a bit of playing around and been able to solve there issue to so I thought I would update this answer to include theirs and for GCC ignores as well. So for the issue for @Tony the following should work

      #pragma clang diagnostic ignored "-Wprotocol"
    

    For anyone wanting to know the GCC compiler version it is

      #pragma GCC diagnostic ignored "-Wprotocol"
    
      #pragma GCC diagnostic ignored "-Wincomplete-implementation"
    

    I will also make a point that all these diagnotstic ignores can also be done by specifying the setting on a per file basis by going to XCODE Project >> Target >> Build Phases >> Compile Sources and adding a compiler-flag so you would just add -Wprotocol or Wincomplete-implementation or whatever compiler-flag you needed.

    Hope this update helps all if anymore need I will update my answer to include.

    EDIT 2

    I was doing a bit more digging around about this an came across the Clang Compliler User’s Manual so I thought that this would be interesting and helpful to anyone having issues around this area still.

    I have also found another way that you can use these #pragma diagnostic ignores and that is you can push and pop them so if you wanted to just ignore a particular section of the file and not all of it then you could do the following

        #pragma clang diagnostic push
        #pragma clang diagnostic ignored "-Wmultichar"
    
        // And pop the warning is gone.
        char b = 'fa';
    
        #pragma clang diagnostic pop
    

    Remember that all these #pragma compile ignores can be used with GCC as well so the above would

        #pragma GCC diagnostic push
        #pragma GCC diagnostic ignored "-Wmultichar"
    
        // And pop the warning is gone.
        char b = 'fa';
    
        #pragma GCC diagnostic pop
    

    The push and pop seem to work with all the diagnostic ignores I have tried so far.

    Another one is

        #pragma clang diagnostic ignored "UnresolvedMessage"
        #pragma GCC diagnostic ignored "UnresolvedMessage"
    

    The one for suppressing unused variables is

        #pragma clang diagnostic push
        #pragma clang diagnostic ignored "-Wunused-variable"
            NSString *myUnusedVariable;
        #pragma clang diagnostic pop
    

    and the GCC version being

        #pragma GCC diagnostic push
        #pragma GCC diagnostic ignored "-Wunused-variable"
            NSString *myUnusedVariable;
        #pragma GCC diagnostic pop
    

    A few more for ignoring warnings from unavailableInDeploymentTarget

        #pragma clang diagnostic push
        #pragma ide diagnostic ignored "UnavailableInDeploymentTarget"
            leftEdge.barTintColor = rightEdge.barTintColor = self.toolbar.barTintColor;
        #pragma clang diagnostic pop
    

    and performSelector leaks

        #pragma clang diagnostic push
        #pragma clang diagnostic ignored "-Warc-performSelector-leaks"
        [target performSelector:cancelAction withObject:origin];
        #pragma clang diagnostic pop
    

    and deprecated declarations

        #pragma clang diagnostic push
        #pragma clang diagnostic ignored "-Wdeprecated-declarations"
            button = [[UIBarButtonItem alloc] initWithTitle:buttonTitle style:UIBarButtonItemStyleBordered target:self action:@selector(customButtonPressed:)];
        #pragma clang diagnostic pop
    

    Thanks to DanSkeel you can find the entire list here

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

Sidebar

Related Questions

I have a Class that retrieves some data and images does some stuff to
I'm exposing some services using RMI on Spring. Every service has a dependency to
I have a class property exposing an internal IList<> through System.Collections.ObjectModel.ReadOnlyCollection<> How can I
I have this class that exposes an IEnumerable<Record> as follows (implementation details left out):
Let's say I have some classes defined as follows: class Security { Boolean AuthenticateUser(String
Using .NET 4, C# Let's say I have class Info that extends CustomTypeDescriptor .
I have a factory class that creates an object based on a parameter it
I have a small test app for exposing a Bean to JMX using Spring.
Let's assume I have a class which manages some resource in RAII way: class
I have Class and Student objects. Both have collection of another as property. Which

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.