Obsolete names messing up Xcode/IB/iPhone-simulator operation
Obsolete names messing up Xcode/IB/iPhone-simulator operation
- Subject: Obsolete names messing up Xcode/IB/iPhone-simulator operation
- From: Jay Reynolds Freeman <email@hidden>
- Date: Fri, 16 Jul 2010 03:00:22 -0700
I am encountering some weird bugs that may have to do with Xcode /
Interface Builder or may have to do with the iPhone/iPad simulator, or
both. I thought I would ask here first. (I promise not to cross-post
if the discussion moves to another group.)
These problems have to do with Xcode/IB 3.2.2 and with the iPhone
simulator that was distributed with them. I have tried later versions
of the software, but have had to deinstall because of other, more
troublesome bugs in other projects.
I am not in the iPhone development program, but for fun I decided to
try to make a version of a Mac app of mine -- a Scheme interpreter --
that would run on the iPad, or at least on the iPad simulator. (I
will probably join if it looks like it is going to work, even though
the app is not likely to be distributable if I read Apple's current
licensing stuff correctly.)
So I created a single-view iPad app in Xcode, via the appropriate
template, and got it to run without much actual code in it, both in
the simulator accessed from IB (Command-R therein) and from Xcode
(also Command-R). Then I started adding code, and in due course I
combined some xib files and changed their names, and I think that is
where the trouble began.
When I created the app, I gave the template the name "Pixie Scheme
III". It created an project folder of that name, and several files --
class, .xib, and otherwise, with the string "Pixie_Scheme_III" as part
of their name. They included class files that were called
"Pixie_Scheme_IIIAppDelegate.h" and .m, also class files named
"Pixie_Scheme_IIIViewController.h" and .m, and the IB file,
"Pixie_Scheme_IIIViewController.xib". The template also created the
IB file, "MainWindow.xib".
In due course I merged the two .xib files (since my app is single-view
and it made sense to load all the stuff in both of them at once),
renamed the resulting file to "PixieSchemeIII.xib", changed to a view
controller called "PixieSchemeIIIController" (with .h and .mm files to
match), and also changed the app delegate file to .mm rather than .m.
I was no longer using the class and files for
"Pixie_Scheme_IIIViewController", as well. I deleted references to
the old files in Xcode, moved the old files out of the project folder,
carefully renamed everything in my .c++, .h, .m and .mm files (and
grepped to make sure), reloaded class files into IB, and searched
diligently in the Xcode information files for both the project and the
target for instances of the file and class names I was no longer
using, and similarly in IB; I don't know where to look for more.
I have also cleaned and rebuilt, and closed and relaunched Xcode,
IB, and the iPhone simulator, all many times, and reset the latter's
settings as well.
Nevertheless, when I try to launch my project just as an IB executable
(Command-R in IB), I get the messages:
Unknown class Pixie_Scheme_IIIAppDelegate in Interface Builder File
Unknown class PixieSchemeIIIController in Interface Builder File
(The .h and .mm files for both of those are certainly there and are
certainly added to the project, and oddly, although I also stopped
using the template-created view-controller class and files, nothing
has complained about their absence.) The simulator, as run from
IB, does however work -- it correctly simulates the UI.
But when I try to launch it from Xcode -- command-R there -- I get
Failed to load NSMainNibFile MainWindow.
(But there is no "MainWindow" file in the project, and to the best of
my ability to look, the string "MainWindow" appears nowhere in the
project.) This error happens pretty early in the startup process for
the simulator: I have instrumented the app delegate's
"application:DidFinishLaunchingWithOptions:" with NSLog, and it appears
not even to be getting called. I have no doubt that my code itself
will require lots more work, but it is hard to get very far when the
simulator won't work because it can't find a file that isn't there and
that it shouldn't be looking for anyway.
So:
(1) Any suggestions for places in Xcode or IB where references to
obsolete files and class names might still be hiding? Or in
the iPhone simulator?
(2) Have I missed a rule somewhere about required names and quantities
of .xib files? (I did look through the documentation.)
(3) If you think this is a topic better discussed in an iPad/iPhone
specific group, by all means recommend one (perhaps off line); I
am not a member of any at present.
Thanks very much.
-- Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden