Hi Angel,
Thanks, and yes I've come to the conclusion (over the weekend) that
the issue is more convoluted than I first thought.
Originally, my xib was in a state where indeed the removal or addition
of the collection view group of views would promote the problem.
However, I've since made some additions to the xib and have found that
things aren't so simple.
My current xib fails almost every time. Sometimes, after editing the
xib, I have found that it seems to have a better chance of
succeeding. This could be down to something about the structure of
the xib, perhaps some word alignment or something, or something more
esoteric like the data being knocked out of some cache, and therefore
changing timing, resulting in a chance of compiling.
I have managed to sample two cibs captured from the same xib, one that
happened to compile and one that didn't. There are a few discrete
differences in the data, but I'm not sure what they pertain to
specifically. A key thing here is the non-determinancy of the
compiler. When I had a smaller xib, I used to have a 10-20% chance of
success - enough to keep trying until I achieved a 'good' cib, which I
then kept safe until I needed to make another change. The problem I
have is ONLY with my large, complex MainMenu.xib file. I have around
10 xibs in all, and all the others are much simpler and compile OK
100% of the time, it seems! I sent some cib pairs to Francisco a
while back, but I'm not sure what he was able to make of the
differences, and indeed it may be difficult to infer why the compiler
is behaving non-deterministically from such snapshots of its
results.
In the last week or so, something in either the tools (which I
refreshed) or the xib (which grew) has caused my probability of
successful compilation to approach 0. I can't tell you how
frustrating this is. I have some slight chance of it compiling to a
useful cib, by employing 'witchcraft': adding or removing a button in
the xib to try to change it sufficiently to maybe get a 'good' cib.
If the compilation works though, it won't be repeatable and will work
once. Subsequent compiles will generate a 'bad' cib that produces the
"DOM Exception 8" at runtime. So the whole problem smacks of some
timing/concurrency issue.
Unfortunately, for me, the mysteries of nib2cib will probably have to
remain mysteries as I have very little time to try to learn the
intricacies (and nib2cib looks like a layered implementation with
narwhal in the mix). Like everyone else, I have deadlines and
priorities. I can see that the 280 North guys are still playing with
this tooling from time to time, and there seems to be some kind of
project to remediate parts of it (remove the "Java"?). So, I don't
know whether to expect this tooling to improve anyway.
It looks like I'm not entirely alone in experiencing this issue. In a
prior thread there was a least one other fellow with a nib/xib that
needed several tries to compile sometimes to generate a 'good' cib.
However... it looks like there aren't armies of us with this problem,
which is too bad for me as the problem is so egregious, even if it
doesn't afflict too many people.
Oops, long response... but that's my state-of-play, unfortunately.