Asked By
onam ophir
40 points
N/A
Posted on - 01/29/2013
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
The selection does not contain identifiable
content.
Make a different selection and try again.
OK
Xcode getting error while refactoring
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.
Xcode getting error while refactoring
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
Xcode getting error while refactoring
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.