Re: Building XCode / iPhone
Steve Wetherill <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the quick response Jeffrey!
The output looks like this (@ the risk of spamming the list):
Steve-Wetherills-MacBook:JetSetCharts stevewetherill$ xcodebuild
2009-02-13 18:37:09.493 xcodebuild[37405:613] Unable to load platform at
path /Developer/Platforms/Aspen.platform
=== BUILDING NATIVE TARGET JetSetCharts OF PROJECT JetSetCharts WITH THE
DEFAULT CONFIGURATION (Release) ===
Checking Dependencies...
ProcessPCH
/var/folders/dh/dhqw+P3mGFSWe8dRQkI5vE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/JetSetCharts_Prefix-guchvltaossplbeaiamjguituewt/JetSetCharts_Prefix.pch.gch
JetSetCharts_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_0
cd
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts
setenv PATH
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/stevewetherill/Projects/android/android-sdk-mac_x86-1.0_r1/tools"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0
-x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99
-Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type
-Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=20000 -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk
-mmacosx-version-min=10.5 -gdwarf-2 -iquote
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-generated-files.hmap
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-own-target-headers.hmap
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-all-target-headers.hmap
-iquote
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-project-headers.hmap
-F/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/Release-iphonesimulator
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/Release-iphonesimulator/include
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/DerivedSources
-c
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/JetSetCharts_Prefix.pch
-o
/var/folders/dh/dhqw+P3mGFSWe8dRQkI5vE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/JetSetCharts_Prefix-guchvltaossplbeaiamjguituewt/JetSetCharts_Prefix.pch.gch
CompileC
build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/Objects-normal/i386/JSGraphView.o
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/JSGraphView.m
normal i386 objective-c com.apple.compilers.gcc.4_0
cd
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts
setenv PATH
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/stevewetherill/Projects/android/android-sdk-mac_x86-1.0_r1/tools"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0
-x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs
-fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable
-D__IPHONE_OS_VERSION_MIN_REQUIRED=20000 -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk
-mmacosx-version-min=10.5 -gdwarf-2 -iquote
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-generated-files.hmap
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-own-target-headers.hmap
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-all-target-headers.hmap
-iquote
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/JetSetCharts-project-headers.hmap
-F/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/Release-iphonesimulator
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/Release-iphonesimulator/include
-I/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/DerivedSources
-include
/var/folders/dh/dhqw+P3mGFSWe8dRQkI5vE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/JetSetCharts_Prefix-guchvltaossplbeaiamjguituewt/JetSetCharts_Prefix.pch
-c
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/JSGraphView.m
-o
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/Objects-normal/i386/JSGraphView.o
<snip>
<!-- a bunch of similar lines -->
</snip>
Libtool
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/Release-iphonesimulator/libJetSetCharts.a
normal i386
cd
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/stevewetherill/Projects/android/android-sdk-mac_x86-1.0_r1/tools"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool
-static -arch_only i386 -syslibroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk
-L/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/Release-iphonesimulator
-filelist
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/JetSetCharts.build/Release-iphonesimulator/JetSetCharts.build/Objects-normal/i386/JetSetCharts.LinkFileList
-framework CoreGraphics -framework Foundation -framework UIKit -framework
OpenGLES -framework QuartzCore -o
/Volumes/Bucket/Downloads/cruisecontrol-bin-2.8.2/projects/Components/JetSetCharts/build/Release-iphonesimulator/libJetSetCharts.a
** BUILD SUCCEEDED **
I've checked and double checked the paths I've entered into the
CruiseControl Config UI, though I am quite prepared to believe I have missed
something ...
Steve
On Fri, Feb 13, 2009 at 5:09 PM, Jeffrey Fredrick <
[email protected]> wrote:
> Hi Steve,
>
> this file is created by CruiseControl by writing the output from the
> xcodebuild command into the file. I use the output in the file to
> decide if the build passed or not. If in your case there's no file I
> expect that either the build had no output at all — and this is a bug
> that needs to be fixed — or you have something misconfigured.
>
> Can you try running the build from the command-line and seeing what
> kind of (non)output you get?
>
> Jtf
>
> --
> Free hour of CI consulting: http://the.ci-guys.com
>
>
> On Fri, Feb 13, 2009 at 4:43 PM, Steve Wetherill <[email protected]>
> wrote:
> > I'm trying to set up CruiseControl to build an iPhone project using the
> > <xcode/> built in XCode support. Obviously this is running in OSX, and
> the
> > binary version is cruisecontrol-bin-2.8.2.zip (installed from that zip
> > rather than source).
> >
> > It basically works, and I can monitor SVN, which is great. The dashboard
> is
> > working as is the java configuration util, etc.
> >
> > However, I have an issue with a dependent project, which happens to
> generate
> > a static lib. The first project is setup through XCode to have a
> dependency,
> > and it builds both OK. However, when building the static lib XCode
> project
> > as a standalone, it will always fail, and I believe this is because no
> > xcodebuild.cc.output file is being generated.
> >
> > Error log extract:
> >
> >
> > [cc]Feb-13 16:18:17 ThreadQueue - uncaught exception in Thread-1126
> > java.lang.RuntimeException: java.io.FileNotFoundException:
> > projects/Components/Charts/xcodebuild.cc.output (No such file or
> directory)
> > at
> >
> net.sourceforge.cruisecontrol.builders.XcodeBuilder$OutputFile.createReader(XcodeBuilder.java:231)
> > at
> >
> net.sourceforge.cruisecontrol.builders.XcodeBuilder$OutputFile.hasMoreLines(XcodeBuilder.java:191)
> > at
> >
> net.sourceforge.cruisecontrol.builders.XcodeBuilder.elementFromFile(XcodeBuilder.java:68)
> > at
> >
> net.sourceforge.cruisecontrol.builders.XcodeBuilder.build(XcodeBuilder.java:42)
> > at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:169)
> > at net.sourceforge.cruisecontrol.Project.build(Project.java:226)
> > at net.sourceforge.cruisecontrol.Project.execute(Project.java:147)
> > at
> >
> net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:402)
> > at
> > net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)
> > at java.lang.Thread.run(Thread.java:613)
> > Caused by: java.io.FileNotFoundException:
> > projects/Components/Charts/xcodebuild.cc.output (No such file or
> directory)
> > at java.io.FileInputStream.open(Native Method)
> > at java.io.FileInputStream.<init>(FileInputStream.java:106)
> > at java.io.FileReader.<init>(FileReader.java:55)
> > at
> >
> net.sourceforge.cruisecontrol.builders.XcodeBuilder$OutputFile.createReader(XcodeBuilder.java:222)
> >
> > I am not really sure what actually generates that file (is it XCode or
> > CruiseControl) but I am trying to figure out why it is not generated, or
> if
> > it is really needed at all. As noted, the main project does generate this
> > file and builds OK, but I can't get the dependency lib to build.
> >
> > I did search the archives but could find very little on this. Hopefully
> I've
> > given enough detail here, grateful for any pointers.
> >
> > Steve
> >
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user