• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Super Annoying: Can't Compile C++ File from Window. Ideas?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Super Annoying: Can't Compile C++ File from Window. Ideas?


  • Subject: Super Annoying: Can't Compile C++ File from Window. Ideas?
  • From: Mark Coniglio <email@hidden>
  • Date: Fri, 4 Jun 2010 11:06:50 +0200

Dear List,

I have an XCode project with about 1300 files in it total. XCode recently started the behavior where, when the source file is the active window, the "Compile" option in the "Build" menu is grayed out. But, when selecting the same file in the source code tree, the "Compile" option is available and works. Given that I'm on a deadline, this bug is super-duper annoying as I can't easily compile the file I'm working on without a couple of extra clicks, etc.

I'm running XCode 3.1.4 on Mac OS X 10.5.8.

Component versions
Xcode IDE: 1203.0
Xcode Core: 1204.0
ToolSupport: 1186.0

This seems to be a known bug, as it has been mentioned on this list before. (One post noted it was a long-standing bug that Apple had not paid attention too even though developers had complained about it "for years.")

In any case, given that the bug is there, is there any work around besides removing and adding the file from/to the project tree? I've tried numerous things to eradicate this behavior from my project:

1) Clean All Targets, Close Project, Reopen, Build.

2) Make a single target/single build configuration version of the project. (An Apple engineer had alluded to a known some problem relating to files being included in some targets and not others when there were multiple targets.)

3) Making a copy of the project, deleting all files from copy's project tree, and recreating the project tree by dragging the tree from the old project. (Note; I checked out the internal project.pbxproj file and doing this does indeed re-generate the fileRefs [e.g., numbers like this F28967EF11B3C1C300DFB4F8], so I don't think any "corruption" is being carried over.)

4) I threw away the pbxuser and mode1v3 files from inside the project so that they would be regenerated.

5) I even made a backup of the project.pbxproj file when a particular file was fine, and then diffed it with the current project.pbxproj file when a new file "went bad" (i.e., wouldn't compile from it's own window) but there didn't seem to be any difference within these two files. So somehow a corruption of the pbxproj file doesn't seem to be the reason it is happening.

None of these seem to solve the problem.

I suppose re-building the _entire_ project absolutely from the ground up might help. But really, if you look at the pbxproj file, the only information in there are the file references, the build order and build phases, and the project tree structure. If I'm deleting the pbxuser and mode1v3 files, it doesn't seem like taking the time to recreate the project one file at a time is going to make any difference.

Again, on a deadline and having my fingers crossed for a solution. Let me know if you have one.

Thanks In Advance,
Mark

--
=======================================================================
 Mark Coniglio             |  email@hidden
 TroikaTronix              |  http://www.troikatronix.com/
 Isadora®                  |  http://www.troikatronix.com/isadora.html
                           |  (interactive media processing environment)
=======================================================================
_______________________________________________
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


  • Follow-Ups:
    • Re: Can't Compile C++ File from Window. Ideas?
      • From: Mark Coniglio <email@hidden>
References: 
 >Trouble embedding a framework in an application (From: Tito Ciuro <email@hidden>)
 >Re: Trouble embedding a framework in an application (From: Dong Feng <email@hidden>)
 >Re: Trouble embedding a framework in an application (From: Tito Ciuro <email@hidden>)
 >Re: Trouble embedding a framework in an application (From: Christiaan Hofman <email@hidden>)
 >Re: Trouble embedding a framework in an application (From: Tito Ciuro <email@hidden>)

  • Prev by Date: Re: Running without the debugger
  • Next by Date: Xcode Loses Index on Framework Symbols
  • Previous by thread: Re: Trouble embedding a framework in an application
  • Next by thread: Re: Can't Compile C++ File from Window. Ideas?
  • Index(es):
    • Date
    • Thread