Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Did you enjoy this question?

  • Oh, heck yes I did

    Votes: 0 0.0%
  • Well, that's why they make different flavors

    Votes: 0 0.0%

  • Total voters
    0
  • Poll closed .

zeppenwolf

macrumors regular
Original poster
Nov 17, 2009
129
3
Hi, I was away from coding for a long time, just now getting back to it with XC 7.3.1, and I've googled
but I can't find an answer that works for this error.

The file "MainMenu.xib" gets copied, (along with other xibs) to the product's package, inside Resources then in Base.lproj/

And I've tried copying it "up" to just Resources, it doesn't matter.

In the General Settings of the project, the "Main Interface" field says "MainMenu". If I try to add ".xib" to that, XC wipes the suffix off it and it stays "MainMenu".

Any clue appreciated, thx,
 
In recent versions of XCode, dragging the .xib into the resources of the project won't automatically add it to the target. Select the farthest left icon in the left pane. This should show the sources for the project. Click on the .xib. In the right pane, select the file inspector (farthest left) icon. There will be a target membership area. Be sure that the app's target check box in checked. This has to be checked for your .xib to get build with the project. Maybe this is the problem. Yes, this "feature" is unnecessary and confusing.
 
Thanks, but that can't be it. There are three xib files in the project, one I added myself, and two that XC made for me and put in there when I created the project. All three xib files, if you click on them on the very leftmost pane, there isn't a "target membership" field in the "file inspector" on the very rightmost pane, because they are all listed on the left under the Base.lproj group/folder/thing, which, if you click on that, it *does* have a target membership on the right, and it's fine.

Also, proof being in the pudding, all xib files are copied to app/contents/resources/Base.lproj so target membership must be ok I think.

Which is what really chaps my hide about this one-- I only created this project a day ago, and MainMenu.xib is in there because XC created it for me, XC put it where it belongs, XC gave it whatever properties it has... and I haven't done anything to it-- I haven't moved it, changed the name... I added one IB connection, and now it just can't load?? Makes no sense.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.