 |
 |
Project Builder madness
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status:
Offline
|
|
so, I'm developing along in Obj-C in PB and IB, and suddenly when I compile (I'm sorry; "Build") my project and run it, the last changes aren't there. When I change my nib, the changes don't show, and when I comment out code, the code still executes. What's more, when I debug it from PB, it works as expected (changes to code and nib are present in the running program). Even if I toss the Build folder, relaunch PB and recompile from scratch, no changes I've made since this whole thing started take effect in the compiled program, only in the debugger version. I believe I've worked around this before only by copying my source files and my nib to a fresh project, which I now have to do for the 5th time on this project.
basically, WTF? Does anyone know how to fix this, what's causing it, or even what I'm talking about?
Thanks, and sorry if this has been discussed before but the forum search hasn't worked in weeks...
|
|
blackmail is such an ugly word. I prefer extortion. the X makes it sound cool
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status:
Offline
|
|
I've never seen this, but it's possible that you somehow set PB to place builds in a non-standard location, but your product is set to the standard build directory. Do a right click on "Products -> your app name" and Show Info.
Also, dig through your target settings. You may have multiple targets set up and be building to a target you don't think you're building to.
Good luck!
|
Geekspiff - generating spiffdiddlee software since before you began paying attention.
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Dec 2001
Location: My own personal purgatory
Status:
Offline
|
|
Have you tried "cleaning" the project? I wouldn't think that would have anything to do with it, but, well, you never know with computers.
|
|
"A scientist can discover a new star but he cannot make one. He would have to ask an engineer to do it for him."
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status:
Offline
|
|
I've done the get info, and looked through all the visible fields in the target settings (but I know next to nothing about this part of development, so keep the seemingly obvious suggestions coming; like I didn't know about the right-click thing), and everything seems to point to the right build folder in my project directory, which makes sense since I could trash that folder and it would be re-created with the same old (outdated) app inside it. It really baffles me where Project Builder is getting this code from to compile. I seem to recall that PB allows undo even through old saves and restarts? is there a way to flush the cache?
|
|
blackmail is such an ugly word. I prefer extortion. the X makes it sound cool
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status:
Offline
|
|
Another thing that you might try is rebuilding the index. From the "Groups & Files" pane, right click the name of your project, the topmost item in the listing. Choose Show Info, and click "Rebuild Index"
This index seems to get screwed up pretty regularly (and the release notes for PB seem to be aware of the issue).
Periodically, I'll: - Rebuild index
- Clean the project when it asks if I really want to
- Quit Project Builder
- Delete the build folder for the project
- Open my project
- Build it
|
Geekspiff - generating spiffdiddlee software since before you began paying attention.
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status:
Offline
|
|
ok, well, I didn't do much; I think all I did was choose build from the menu instead of the button, and now the problem is gone. Thanks for all the suggestions, and I will try them when this comes back in about 2 weeks... 
|
|
blackmail is such an ugly word. I prefer extortion. the X makes it sound cool
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status:
Offline
|
|
Update:
I now think this is a problem with the OS or the Finder or whatever is involved with actually launching the app. Here's why:
1. The problem was not solved this afternoon, as I thought it was. It turns out that I chose 'build and run', which worked, but launching from the Finder still did not work.
2. At lunch when I thought the problem was fixed, I sent off a bug fix to a friend of mine, who confirmed the fix. BUT, I forgot to run the app from the finder, instead I just debugged it.
3. I just restarted and it seems to be fixed now (yes, I know it was stupid for me to have not tried restarting the computer until now, but what are you going to do?)
Given these new developments, does anyone know what might be causing this? How does OS X launch an app exactly when it's opened from the finder?
Thanks
|
|
blackmail is such an ugly word. I prefer extortion. the X makes it sound cool
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|