Sub project problem
Sub project problem
- Subject: Sub project problem
- From: Mark Woollard <email@hidden>
- Date: Wed, 2 Dec 2009 19:53:26 +0000
I have a main project for iphone with a sub-project to build a tool used by the main project to populate core data sqlite file for bundling in the app. The tool is run by script stage during main project build and thus is a Mac OS X target. The problem is that when the sub-project rebuilds through being a dependency of the main project Xcode seems to try and build it as the main project target OS (iPhone) rather than OS X. This causes the tool to fail to build due to wrong SDK and build context for the code.
For now I've dealt with this by building the sub project directly with xcodebuild in the script step and passing xcodebuild the correct SDK etc as arguments. This builds correctly but leaves me with the problem of maintaining the dependencies to the sub-project source manually as dependencies to the script stage so that the script is run when tool source changes.
Anyone know how I can do this in a better way? I guess I could just setup dependencies for the script stage so that it always runs as one option but it'd be better if it only ran the script stage when required and managed the build of the tool as a normal sub-project dependency.
Thanks
Mark
_______________________________________________
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