• 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
Re: pbxcp vanished in Xcode 4.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pbxcp vanished in Xcode 4.4


  • Subject: Re: pbxcp vanished in Xcode 4.4
  • From: Jonas Maebe <email@hidden>
  • Date: Fri, 27 Jul 2012 00:59:31 +0200

On 27 Jul 2012, at 00:45, Jonas Maebe wrote:

>
> On 26 Jul 2012, at 18:51, Mel Walker wrote:
>
>> I'm copying frameworks, but only under certain build conditions.
>>
>> I use:
>> path/to/pbxcp  -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks "${PROJECT_DIR}/myframeworks/Foo.framework" ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}
>>
>> I figure I'd have replace it with a cp command, followed by a find command to remove the excluded files, but I don't know what to do about the -resolve-src-symlinks argument.
>
> I'm not sure what -resolve-src-symlinks means (even after looking at the help of pbxcp). If it means "resolve any symlink to its target, but do not recursively resolve the target in case it's also a symlink", then something like this should work (untested):
>
> tar -c -C "${PROJECT_DIR}/myframeworks" --exclude .DS_Store --exclude CVS --exclude .svn --exclude .git -H `find Foo.framework` | tar -x -C ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}


Sorry, the find command won't be executed in the correct directory like that, so it should rather be:

/usr/bin/tar -c -C "${PROJECT_DIR}/myframeworks" --exclude .DS_Store --exclude CVS --exclude .svn --exclude .git -H `cd "${PROJECT_DIR}/myframeworks" && find Foo.framework` | /usr/bin/tar -x -C ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}

This one is somewhat tested, hence the /usr/bin/tar (I have fink installed, and fink's GNU tar uses the -H option for a different purpose compared to Mac OS X' BSD tar).


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

References: 
 >pbxcp vanished in Xcode 4.4 (From: Mel Walker <email@hidden>)
 >Re: pbxcp vanished in Xcode 4.4 (From: Alexander von Below <email@hidden>)
 >Re: pbxcp vanished in Xcode 4.4 (From: Mel Walker <email@hidden>)
 >Re: pbxcp vanished in Xcode 4.4 (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Re: repositories
  • Next by Date: Re: Revoking GateKeeper exceptions
  • Previous by thread: Re: pbxcp vanished in Xcode 4.4
  • Next by thread: Re: pbxcp vanished in Xcode 4.4
  • Index(es):
    • Date
    • Thread