Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
cp from Xcode Shell script target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp from Xcode Shell script target



Hi all,

I have an xcode project with a single target that runs a shell script
- which actually just calls an external script (called macBuild.sh).

./macBuild.sh .. ../Release

The arguments are just the root directory for the project and an
output directory for the build products.

In macBuild.sh I have a number of commands which copy files into the
final product (Product.app)

The line that I'm having problems with is as follows:

cp -r $RUNTIME_DIR/XUL.framework $INST_APP_PATH/Contents/Frameworks/

When I run that from bash in Terminal, it works with no issues. When i
simply do the copy/paste from Finder it works with no issues.
However, when I run it from the Xcode build target, it looks like it
works, but my app won't start properly, and gives an error when i
double click it:

"You can't open the application because it is not supported on this
architecture."

It appears that xcode is using a different version of cp than Terminal
is. When I try to use -d to maintain the symlinks, it gives me the
error:

usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pvX] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pvX] source_file ...
target_directory


Any ideas on how I should copy this directory properly?

Thanks,
J.T.
 _______________________________________________
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



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.