Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Add me to the list. I get this error after "refactoring - rename" on a class. The class I am renaming is a custom ViewController with its own .xib. I use Storyboard which launches a viewController containing a "Container View", which has my custom ViewController embedded in it upon launch. </p> <p>The only way out of this so far is to NOT use my refactored .xib (disconnect it from the container view). </p> <p>My semi-solution:<br> I have restored my app from a prior working snapshot and created a new custom ViewController and .xib from scratch instead of refactoring. Connected it to Storyboard and I got the error message again. Cleaned the build and deleted the app from the simulator and re-ran, and then it magically ran without error. <strong>For this reason I believe there is a bug in Xcode with Refactor-Rename, which corrupts some storyboard file behind-the-scenes.</strong> Once I confirmed that the new .xib was attaching to storyboard without error, I copied/pasted the class code into the new custom viewController class, and went through the process of reconnecting the class objects to the .xib, as you'd expect. Ran it and everything still worked.</p> <p>FYI - here are some of the FAILED steps I took in my attempt to recover from the error (before giving up and restoring snapshot).<br> 1. Cleaning Build.<br> 2. Deleting App in iOS simulator.<br> 3. Deleting all views in the custom ViewController .xib.<br> 4. Naming the custom ViewController something else.<br> 5. In Storyboard, adding a blank view to the ViewController representing my custom Viewcontroller class. <strong>This worked and allowed my app to run</strong>, however my custom class was neither able to load its own views in place of this default blank view, nor were it's own views visible upon making the default blank view transparent. Debugging showed my custom class .xib views being nil when assigned to self.view.</p> <p>I am presently avoiding Xcode's Refactor-Rename for files having a .xib. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload