xcodemacosnib

Xcode 13 nib file changes not reflected in build


I am working on a 10 year old Xcode project in Xcode 13.4. Even though the project is old, it has been updated to modern project settings and APIs. There are no warnings, no errors and the compiled app works fine.

However changes made to the MainMenu.nib file are not reflected in the app after compiling. The user interface shown is an old version.

When I delete or rename the nib file the app no longer works, which proves the nib file I am working with is the real actual nib file the app uses.

When I change image asset files that are used in NSImages in the nib, the new images are correctly shown in the app, but any other changes are not shown.

I have tried (to no avail):

Any help would be appreciated.


Solution

  • Finally I found the solution: open the nib file in the Finder, right-click, select "Show Package Contents".

    Delete all files named keyedobjects-*.nib but leave keyedobjects.nib.

    Build and run.