• 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
Re: Quotes Removed When Project Opened And Closed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quotes Removed When Project Opened And Closed


  • Subject: Re: Quotes Removed When Project Opened And Closed
  • From: Mark Douma <email@hidden>
  • Date: Thu, 8 Dec 2005 16:34:39 -0500


On Nov 13, 2005, at 4:34 PM, Howard Rodstein wrote:

This is known bug of Xcode 2.1.
It was fixed in 2.2 (at least for me).

For me it is still broken in 2.2. I sent a sample project to Apple developer support which illustrates the problem.


You can reproduce it by creating a new project and entering this for LIBRARY_SEARCH_PATHS:

  "$(SRCROOT)/build/Debug" "$(SRCROOT)/build/Debug" "$(SRCROOT)"

Close and reopen the project and the quotes will be gone. At least they are on my system. This causes a failure to link if SRCROOT contains spaces.

Howard Rodstein


I get the same problem here.

In my case, the value for the Library Search Paths is:

	$(LIBRARY_SEARCH_PATHS) "$(SRCROOT)"

This works fine as long as long as I put quotes are around SRCROOT. However, if I close a project and reopen it, the quotes are no longer there, and building it will give warnings or fail (obviously).

For whatever reason, I never had a problem with this in Xcode 2.1 or prior. I think when I dragged a static library into my project in Xcode 2.1, it added the full, quoted path to the Library Search Paths value.

In Xcode 2.2, let's say I add the full quoted path to make the LIbrary Search Paths value to be:

$(LIBRARY_SEARCH_PATHS) "$(SRCROOT)" "/Users/mdouma46/Documents/ Programming/MyProject With Spaces/MyProject/"

If I close and reopen the project, that will be changed to this:

$(LIBRARY_SEARCH_PATHS) $(SRCROOT) /Users/mdouma46/Documents/ Programming/MyProject\ With\ Spaces/MyProject/

Seems like it removes all quotes at all costs.

On a side note, anyone know why $(LIBRARY_SEARCH_PATHS) is included in the above value? By default in a new project, the Library Search Paths value is blank. If I drag a static library from the Finder into my project (choosing to copy it), and then check that value, it shows:

	$(LIBRARY_SEARCH_PATHS) $(SRCROOT)

I can understand the $(SRCROOT) being inserted, as that's the path to where the static library is, but what's the purpose of putting $ (LIBRARY_SEARCH_PATHS) in, isn't that the value we're defining?

Or, is that basically just saying:

$(LIBRARY_SEARCH_PATHS) = $(LIBRARY_SEARCH_PATHS) $(SRCROOT)

(which makes sense, I guess).

Anyway, I guess I'll submit a bug report against this as well...



------------------------------------------------------------------------ ---
Mark Douma
Grand Rapids, MI, USA
email@hidden
http://homepage.mac.com/mdouma46/
------------------------------------------------------------------------ ---



_______________________________________________ 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
  • Prev by Date: Re: virtual method hidden
  • Next by Date: RE: virtual method hidden
  • Previous by thread: RE: virtual method hidden
  • Next by thread: Re: Cannot link project checkedout from an SVN repository
  • Index(es):
    • Date
    • Thread