• 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
cp from Xcode Shell script target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp from Xcode Shell script target


  • Subject: cp from Xcode Shell script target
  • From: JT Burgess <email@hidden>
  • Date: Thu, 4 Mar 2010 14:47:56 -0500

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

  • Follow-Ups:
    • Re: cp from Xcode Shell script target
      • From: "Paul Sanders" <email@hidden>
  • Prev by Date: Portuguese language variants
  • Next by Date: Re: Portuguese language variants
  • Previous by thread: Re: Portuguese language variants
  • Next by thread: Re: cp from Xcode Shell script target
  • Index(es):
    • Date
    • Thread