2118

How to resolve `No method with selector is implemented in this translation unit`?

I got this error like the image below.

<img src="https://i.stack.imgur.com/p5pIp.jpg" alt="Image">

the showSingerInfo method is defined in parent class.

How can I resolve this warning??

Answer1:

It looks like Clang is unable to resolve the declaration of the showSingerInfo: method.

I'm guessing that showSingerInfo: is a local method within the translation unit/class? If so try either of the following.

<ol> <li>

Add the method declaration to your class header file.

</li> <li>

If you do not want to publicly expose the method declaration then create a local/private category in your class implementation file and declare it there.

</li> </ol>

Recommend

  • With Xcode 4.5.2, Clang compiler seems not to be SDK version dependent. Why?
  • LLVM-5.0 Makefile undefined reference fail
  • Can't compile/assemble MRC and MCR coprocessor instructions on iPhone?
  • doing database write after the response
  • Name hiding in constructor initialization list
  • Update a record where _id = :id with Mongoose
  • adjust iframe height based on the content
  • GRPC and types import error in App Engine Datastore
  • Nodejs bluebird promise fails while processing image
  • What is the likely cause of a net::ERR_CONNECTION_ABORTED when uploading a file to Spring
  • Loading fixtures in sails tests
  • Double dispatch in Java example
  • Is it possible to run clang with llc flags
  • What Makes These Two Array Adds Different?
  • How to use jQuery's $.post() method with async/await and typescript
  • NUnit 3.0 TestCase const custom object arguments
  • Overlapping controls in Windows XP
  • Login not working in Firefox in Meteor
  • How solve “Qt: Untested Windows version 10.0 detected!”
  • Unable to install Git-core+svn by MacPorts
  • Unable to decode certificate at client new X509Certificate2()
  • C: Incompatible pointer type initializing
  • Needing to do .toArray() to get output of mongodb .find() on key name not value
  • MongoError: Incorrect arguments
  • Setting up SourceTree to merge unity3d scenes with UnityYAMLMerge
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • FileReader+canvas image loading problem
  • Launch Runnable Jar from Web Start
  • Obtain ObjectIdHex value from mgo query
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Java static initializers and reflection
  • need help with bizarre java.net.HttpURLConnection behavior
  • LevelDB C iterator
  • python draw pie shapes with colour filled
  • unknown Exception android
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • Unable to use reactive element in my shiny app