• 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: Linker errors resulting from changing a filename
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linker errors resulting from changing a filename


  • Subject: Re: Linker errors resulting from changing a filename
  • From: Fritz Anderson <email@hidden>
  • Date: Thu, 2 Apr 2009 09:52:34 -0500

On 2 Apr 2009, at 12:37 AM, Issac Trotts wrote:

I just tried renaming a pair of files from the command line:

Dataset2.h -> Dataset.h
Dataset2.m -> Dataset.m

Then I removed the old file references within Xcode, and added the new
ones. Then I updated #import "Dataset2.h" to #import "Dataset.h"
everywhere. The program linked and ran before this change, but after
the change it failed to link any functions from Dataset.m.

So I reverted the change in git, and then redid the name change inside
Xcode. This time it worked. I don't know why.

When you added the files to your project, and the sheet appeared asking what to do with them, did you tick the target(s) in which you meant them to be linked? A file's presence in a project does not guarantee that it will be used for any particular product. It has to be included in a target to do that.


	— F

--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/ >


_______________________________________________
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: Linker errors resulting from changing a filename
      • From: Issac Trotts <email@hidden>
References: 
 >Linker errors resulting from changing a filename (From: Issac Trotts <email@hidden>)

  • Prev by Date: Re: How to debug Xcode dependency-tracking?
  • Next by Date: Re: debugging symbols for universial binary library
  • Previous by thread: Linker errors resulting from changing a filename
  • Next by thread: Re: Linker errors resulting from changing a filename
  • Index(es):
    • Date
    • Thread