Re: Using CC for Mac Xcode builds - "xcodebuild.cc.output" in wrong location?

Jeffrey Fredrick <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi Ashley,

it was a bug and I've checked in a fix.  I recommend you pull the
latest source from here:

http://cruisecontrol.sourceforge.net/svn.html

and then run the release.sh that's in the cruisecontrol directory.

If that *doesn't* fix the problem for some reason, please let us know!

Jtf

-- 
 Free hour of CI consulting: http://the.ci-guys.com


On Sat, Mar 14, 2009 at 11:21 AM, Ashley Hogg <[email protected]> wrote:
> Hello,
>
> Just signed up for the list as I couldn't find too much on this
> subject via Google etc - I'm hoping there will be people on this list
> using CC for Mac Xcode builds! This is also the first time I've used
> CC for myself (we use it at work but I am not involved in managing it)
> so I hope I haven't made any stupid mistakes in setting things up.
>
> So I have downloaded the 2.8.2 binary zip, and am running it on an
> iMac with OSX 10.5.6 - the dashboard etc all seems fine, and the test
> 'connectfour' project also functions okay.
>
> After this initial test, I added one of my iPhone Xcode projects to
> the config.xml file, and that also works fine. I then added 2 of my
> other Xcode projects, and this is where I noticed I was having a
> problem.
>
> The Xcodebuild output is written to a file "xcodebuild.cc.output", and
> this is checked after the build to see if there was any failure. With
> a single project in the config.xml file, this is fine - this output
> file appears to be written into the working folder I have defined via
> <xcode directory="project">.
>
> However, when I add other projects, the output file always gets
> written to the folder of the FIRST project built when CC is initiated.
> I can see that Xcode actually builds the projects correctly, it's just
> that the cc.output file always gets written into the folder of that
> first project that was built. This means that after Xcode has done its
> job, CC fails to find the cc.output file and so doesn't think the
> build has passed. The dashboard view shows the projects as never
> having built.
>
> I have included the contents of my config.xml below, as it is quite
> compact and perhaps someone can see something completely obvious that
> I have configured wrongly. Absolutely any pointers or hints will be
> much appreciated!
>
> Kind Regards,
> Ashley
>
>
>
> ===== Contents of config.xml =====
>
>
> <cruisecontrol>
>
>     <project name="iPhoneProject1SimulatorOS2.1Debug">
>
>         <listeners>
>             <currentbuildstatuslistener file="logs/${project.name}/
> status.txt"/>
>         </listeners>
>
>         <schedule interval="300">
>                 <xcode directory="projects/Project1/iPhone">
>                     <arg value="-target"/>
>                     <arg value="iPhoneProject1"/>
>                     <arg value="-configuration"/>
>                     <arg value="Debug"/>
>                     <arg value="-sdk"/>
>                     <arg value="iphonesimulator2.1"/>
>                     <arg value="clean"/>
>                     <arg value="build"/>
>                 </xcode>
>         </schedule>
>
>         <publishers>
>             <artifactspublisher dest="artifacts/${project.name}"
> file="projects/Project1/iPhone/xcodebuild.cc.output"/>
>         </publishers>
>
>     </project>
>
>     <project name="iPhoneProject2SimulatorOS2.1Debug">
>
>         <listeners>
>             <currentbuildstatuslistener file="logs/${project.name}/
> status.txt"/>
>         </listeners>
>
>         <schedule interval="300">
>                 <xcode directory="projects/Project2/iPhone">
>                     <arg value="-target"/>
>                     <arg value="iPhoneProject2"/>
>                     <arg value="-configuration"/>
>                     <arg value="Debug"/>
>                     <arg value="-sdk"/>
>                     <arg value="iphonesimulator2.1"/>
>                     <arg value="clean"/>
>                     <arg value="build"/>
>                 </xcode>
>         </schedule>
>
>         <publishers>
>             <artifactspublisher dest="artifacts/${project.name}"
> file="projects/Project2/iPhone/xcodebuild.cc.output"/>
>         </publishers>
>
>     </project>
>
>     <project name="iPhoneProject3SimulatorOS2.1Debug">
>
>         <listeners>
>             <currentbuildstatuslistener file="logs/${project.name}/
> status.txt"/>
>         </listeners>
>
>         <schedule interval="300">
>                 <xcode directory="projects/Project3/iPhone">
>                     <arg value="-target"/>
>                     <arg value="iPhoneProject3"/>
>                     <arg value="-configuration"/>
>                     <arg value="Debug"/>
>                     <arg value="-sdk"/>
>                     <arg value="iphonesimulator2.1"/>
>                     <arg value="clean"/>
>                     <arg value="build"/>
>                 </xcode>
>         </schedule>
>
>         <publishers>
>             <artifactspublisher dest="artifacts/${project.name}"
> file="projects/Project3/iPhone/xcodebuild.cc.output"/>
>         </publishers>
>
>     </project>
>
> </cruisecontrol>
>

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.