Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Project Builder madness

Project Builder madness
Thread Tools
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status: Offline
Reply With Quote
Sep 26, 2002, 01:48 AM
 
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
Reply With Quote
Sep 26, 2002, 02:30 AM
 
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
Reply With Quote
Sep 26, 2002, 09:11 AM
 
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
Reply With Quote
Sep 26, 2002, 10:55 AM
 
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
Reply With Quote
Sep 26, 2002, 02:33 PM
 
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
Reply With Quote
Sep 26, 2002, 03:11 PM
 
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
Reply With Quote
Sep 26, 2002, 11:16 PM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2