Xcode getting error while refactoring

Asked By 40 points N/A Posted on -
qa-featured

When refactoring Xcode, I got the error “The selection does not contain identifiable content. ” Does anyone have an idea how I resolve this error?

Lapsus Refactoring selection does not contain identifiable content

Lapsus – Refactoring

The selection does not contain identifiable

content.

Make a different selection and try again.

OK

SHARE
Best Answer by Ronald B Cline
Answered By 30 points N/A #133194

Xcode getting error while refactoring

qa-featured

Hello,

There are few things to do.

First is to check your selection doesn't contain any blank lines.

The second is, shrinking your selection. 

For example, if your code looks like:

— (void) setCollection:(NSArray*)array {

// Your code here

}

Right click on the first segment (– (void) setCollection:(NSArray*)array) and Refactor that.

Answered By 0 points N/A #133195

Xcode getting error while refactoring

qa-featured

Hi Onam,

It is quite difficult to provide a complete relevant solution as you have not provided the Xcode to the post. Although my best bet would be that you have made a wrong file selection. Please try this after you rename the file to its original name: Try right-click the first segment of the selector and Refractor that.

 

Hope this Helps

Regards,

Alice

Best Answer
Best Answer
Answered By 45 points N/A #133196

Xcode getting error while refactoring

qa-featured

Hello there,

Refactoring must be an easy way to rename a class. In the case of your problem, there are two distinct ways to solve that just do the following:

1. You may try to refactor again at the -/+ or

2. Right click the first segment of the selector and refactor it.

If you are using an Object – C++ then refactoring would not work since refactoring is disabled in C++.

Hope this help you.

Related Questions