Custom Target in Xcode?
Custom Target in Xcode?
- Subject: Custom Target in Xcode?
- From: Roland King <email@hidden>
- Date: Mon, 01 Oct 2012 18:44:29 +0800
Is there a way to make a simple custom target in Xcode? In my case the HTML for the webpage for my iOS app uses the same png files the app does, so what I wanted to do was put the HTML into the project and have a custom target which just copies the selected html files to one directory, and the image files I need to another one. Not a very interesting target but it does keep everything about the project in one place. I hoped to just 'archive' that target and have a directory tree I can plop straight on my server.
I don't want to do this as part of the app build because I don't want the html in the app.
I tried adding a static library target then removing the source files and the compilation phase and adding my two copy phases .. that fails because the library target does eventually try to do something with libMyTargetName.a and that of course doesn't exist, so it fails. I'm not smart enough to figure out whether it's possible to twiddle the settings so that the build doesn't think it's a library build any more and just runs the copy phases.
I tried an external build target which starts with nothing, but you can't add copy phases to that.
A google search turned up nothing, which means I may end up going back to a library target, then just ignoring the library afterwards, but that's a bit daft. is there a better way to do this?
_______________________________________________
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