Re: FreePascal unit in Cocoa project - debugger problems
Re: FreePascal unit in Cocoa project - debugger problems
- Subject: Re: FreePascal unit in Cocoa project - debugger problems
- From: Jonas Maebe <email@hidden>
- Date: Fri, 10 Jul 2009 20:32:49 +0200
On 10 Jul 2009, at 20:06, Alexander Bokovikov wrote:
On Thu, 9 Jul 2009 at 09:33:43, Jonas Maebe wrote:
You can file a feature request at https://bugreporter.apple.com for
a way for compilers to communicate to Xcode which object files
should be linked into the final binary.
I'd like to ask you if it's possible, could you please formulate
this problem exactly, so I could post the feature request? If you
can please forward this text to my email, not to the list. Save the
same subject.
Maybe later.
Click on the target's disclosure triangle, and then on the "Compile
Sources" phase disclosure triangle.
As far as I can see any module disappears from "Compile Sources"
list automatically, when I delete it from "Other Sources" list of
the XCode project. Are there any special cases?
What may happen is that you
a) add a unit to the project (and at the same time to the target and
its "Compile Sources" phase of the target)
b) add that unit to the uses clause of your library or one of its units
c) later on, remove the unit from the uses clause of your program and
all of its units, but not from the project (e.g., because you are just
quickly testing something)
In this case, you have to manually remove it from the "Compile
Sources" phase.
Finally I have two little questions:
- How can I reproduce your actions in this test project creation?
AFAIU, I should add a new target to the usual Cocoa application,
created from standard template.
Yes.
What target type should I choose? I don't see "Pascal Static
Library" target available. Could you explain it?
I started from a regular static library target with the name "fpc" and
then modified it, deleting the existing phases and the adding two "Run
Script" phases (one with the appropriate output file), and making the
main project target dependent on this new "fpc" library target.
- I've tried to rename the XCode project. I don't see a way to do it
from XCode. Project item in the tree is not editable. Save As menu
is disabled too. Then I've renamed it manually in Finder. I've
renamed all necessary files, including header, etc. as well as
target name, Executable name, etc. in the project tree. Then I
opened Build Settings and renamed everything I've found, pointing to
"old" project name. Finally I've built the project and it was built
OK. But I've got an error, telling something like "Can't find
launchable executable at path <old project name here> when I've
tried to run it.. I beleave the executable name is stored in
$EXECUTABLE_NAME variable, used in the info.plist file, but I
couldn't find its definition. I've tried to google this issue and
have found a tip to relaunch XCode. I've followed to that tip and
have got success. The only question I have now is: what is the
correct way to rename XCode project???
Please don't use multiple punctuation marks such as "???", it's like
shouting. This first Google hit I get for "rename xcode project" is http://www.macupdate.com/info.php/id/17683
, but that utility only seems to be for Xcode 2.x.
The fourth hit is this one: http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/
. Also read the comments to that post for some extra information.
Jonas
_______________________________________________
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