Re: Linker errors resulting from changing a filename
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