Re: How to copy one project product to another project Resources on build (relative path)
Re: How to copy one project product to another project Resources on build (relative path)
- Subject: Re: How to copy one project product to another project Resources on build (relative path)
- From: Steve Mills <email@hidden>
- Date: Mon, 02 Mar 2015 08:16:41 -0600
On Mar 2, 2015, at 07:02:47, Juanjo Conti <email@hidden> wrote:
>
> I did what you said and then went to A target and add an item (B product)
> to Copy Bundle Resources. In the xml file I still see the absolute path.
> What am I missing?
Ah. It can't be relative to the project, because the file you're adding is in its own project's build products folder. I'd suggest one of two solutions.
1) Put both projects into a single workspace. That makes cross-project links much easier.
2) Have the project that builds the bundle copy the final result to a known folder that is relative to project B, e.g.:
~/Projects/MyLibs/MyBundleThatIUseInOtherProjects.bundle
~/Projects/MyApp/MyApp.xcodeproj
That way the bundle can easily be added as a relative path. And when you sync your source on another machine (you didn't mention if you're using an SCM or not, but it would be silly not to) and build the bundle, it will go to a known relative folder.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden