Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkdir in PhaseScriptExecution



On Oct 28, 2005, at 2:37 PM, Sam Deane wrote:

I'm trying to create a Custom Build Rule Script. When the script is executed, the results window shows that it's trying to create a directory, but not specifying a location, and thus reporting an error:

PhaseScriptExecution /Development/projects/org/opendylan/hello/ build/hello.build/Debug/ShellToolTarget.build/Script-b6332b9e.sh
mkdir
cd /Development/projects/org/opendylan/hello
setenv ACTION build
...lots more setenvs go here
setenv YACCFLAGS
/bin/sh -c "echo \"building ${INPUT_FILE_NAME}\""


Note the mkdir on its own at the top. Does anyone have any idea why this is happening?

In the Output Files for your Shell Script Target, do you have any files listed without any directories in front of them, e.g.


Output Files
MyFile1.txt
MyFile2.txt
MyFile3.txt

If so, add the appropriate directory in front, e.g. $(SRCROOT)/ MyFile1.txt. Check the Build Settings Release Notes for more predefined directories. Xcode automatically tries to create directories for your output files, so if you don't specify a valid directory for your output files, it freaks out.

-Prachi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >mkdir in PhaseScriptExecution (From: Sam Deane <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.