Re: pbxcp vanished in Xcode 4.4
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:45:46 +0200
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}
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