xcodebuild

Continuous Integration for Xcode projects?

After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed specifically for Xcode, but one guy has had success using Cruise Control combined with the xcodebuild...

Which one is better: DMG or PackageMaker

Hi Here's my requirement: 1. I want my installable to have a custom license agreement 2. run another package as part of the installation 3. let the user have an option of running the app on start-up What should I use, create a dmg or use PackageMaker available with xcode? Are there any good web pages showing how to use PackageMaker? T...

iPhone (Xcode) interface builder resources

Hi I am looking for resources (especially video) to show how to use the Xcode interface builder properly for iPhone development. For some reason it just doesn't click how everything fits together and how this should be used properly. Thanks Stephen ...

Running xcodebuild from a forked terminal

Hi everyone, I'm trying to setup an automated build server for an iPhone application. I'd like to be able to have nightly adhoc beta builds so that testers can follow the development. I've setted up xcode successfully xcode to perform adhoc builds and I can also launch the build from the command line: xcodebuild -configuration AdHo...

XCode and iPhone Compiler Warning

I am a long time Microsoft developer and I am new to iPhone development using XCode. So, I am reading a book and going through examples trying to teach myself how to write an iPhone application using Objective-C. All has been good so far, however, once in a while I run into the generic 'objc_exception_throw' message at runtime. When t...

Verifying a release builds

My projects reference static DLLs I've created. These projects are setup to make sure a corresponding build phase occurs. Meaning, if I build in simulator/debug, the static library will have an up to date simulator/debug build. I can verify my app works fine except for device/release. Is there a way to verify device/release? It's so...

Packaging a Bundle with a static library

I have a static library that includes some xibs. These will basically be the same across projects. I'd like to include the xibs as part of the library. I can include their veiwcontrollers, reference these controllers in the calling project but then there isn't a xib to load. When I right click the xib in the library project, it can't...

Setting a provisioning profile from within xcodebuild when making iPhone apps.

I'm using xcodebuild to compile my iPhone app from the command line. Is there a way to pass in some sort of option to set the provisioning profile? There seems to be not very much information about xcodebuild in general. ...

iPhone build lite and full versions - adMob problem

Hi, I'm traing to build a lite version for my app the way it is described in this post: http://stackoverflow.com/questions/549462/how-do-i-manage-building-a-lite-vs-paid-version-of-an-iphone-app After creating the two targets the full version can be built the lite version stops building with this error at the 'linking' stage: "library...

How do I include zip file in NSBundle?

I'd like to include a zip file as an attachment to in app email (OS 3.0). I've added the file to my Xcode project and get this message during building: Checking Dependencies warning: skipping file '/Users/account1/Developer/Doc4_5.zip' (unexpected file type 'archive.zip' in Frameworks & Libraries build phase) Is there something else I...

Why are static library headers not found?

I've used Clint Harris' tutorial to set up code sharing between projects, and everything works just as expected on my computer. But on my co-worker's machine, it seems the compiler doesn't find the header file from the static library project when he builds. My co-worker got my project by cloning a git repository. We've gone through all ...

When my colleague changes code and commits it to the repository I can see the code, but xCode compiles as if his contributions weren't there

Have any other iPhone developers experienced this phenomenon? I can see his contributions in xCode - I see for example my colleague has wrapped a navigation controller around one of my view controllers and added it to my tab bar. Great! That view really did call for a navigation controller and this is a welcome addition to the project...

What automated build system do Mac developers use?

Hi, my team is currently using buildbot to automate overnight and continuous-integration builds and regression tests. For builds and unit tests, the builder just invokes a script which syncs the sources from p4 and then runs xcodebuild. The regression tests are also launched by a shell script, and are themselves combinations of shell sc...

Reverting a Python/Cocoa project to use the default OSX 10.5 Python (2.5)

Hi, I have installed the latest MacPython (2.6.2) on my Leopard OS X and started an XCode PyObjC project. When I finalized the app, I built the release version and sent it to a friend of mine to try if it runs with out of the box. It did not, because it expects the latest Python, as on my computer. No matter what I tried, I could not...

Slice up image into icons at build time or runtime in xCode

I need about 100 icons inside my application. Would it be logical to have one large image file with all the icons and then somehow split it up into individual NSImage objects? Is there a way to run some code at build time to regenerate the individual icons? ...

XCode iPhone Multiple Targets - Second differently named executable is created, but the "path" of my second "executable" is wrong.

Ok, so I'm working on an alternate version of an iPhone app, and my new version builds just fine. The executable is actually created, I checked the build directories. I've tried manually changing EXECUTABLE_NAME to the correct name in my second target's info plist file, but that does not change the behavior. MyApp2.app is still create...

XCode Post Build Copy File Actions

Hello, In XCode, how can I call a 'shell script' which is a PERL script that copies the .app and .dsym files to a different directory? I want to pass the name of the project and/or the project's root directory to the script. I want to have the script called every time I build in release and distribution modes but not in debug mode. Tha...

How do I change an existing XCode target from dynamic to static?

I'm working with an existing project that produces a dynamic library (Cocoa API). I'd rather generate a static library, but if I change the [Linking|Mach-O Type] field from "Dynamic Library" to "Static Library", both the Clean Project and Build Project complain that the target has an invalid MACH_O_TYPE value of 'staticlib'. Is there ...

how to copy files to Library or Document dir in iphone build phase?

I want copy some files to Library or Document in the "Product directory" but when i add a build phase, and select "Products Directory" in destenation and input my subdir like "Library/xxx/" when I run the app in simulator, i found nothing int the destenation and if I set destenation to "Resources", it will be there. please tell me w...

Building a backwards compatible OS X app, when a new API is present?

I'm trying to upgrade an app (Clarke) to provide 10.6 compatibility. My plan is to use two different code paths depending on the version of OSX in use. On 10.5 it will use one controller, which consists of completely custom code that isn't dependent on any specific Cocoa API. On 10.6 it will use another controller, which wraps the new...