xcodebuild

Code sign error with Xcode 3.2

I had a fully working build environment before upgrading to iPhone OS 3.1 and Xcode 3.2. Now when I try to do a build, i get the following: Code Sign error: Provisioning profile 'FooApp test' specifies the Application Identifier 'no.fooapp.iphoneapp' which doesn't match the current setting 'TGECMYZ3VK.no.fooapp.iphoneapp' The problem i...

Objective-C syntax checker

Is there an Objective-C syntax checker? I have tried gcc -fsyntax-only but it is not really 'syntax only'. It still produces errors if run on an individual implementation file which has references to external frameworks. I am looking for something that can perform a syntax check on individual header or implementation files without att...

Getting Xcode to register build setting or xib changes

I'm losing more time on Xcode issues than on learning the SDK. When I change build settings, or even when I rewrite the Xib file, Xcode often doesn't correctly register the changes until I quit and restart it. Sometimes, I even have to do a clean all. Is there a script or command one can do from within Xcode which kicks it awake and m...

Problem with linking in XCode when compiling for iPhone

Hi somehow I managed to screw up my XCode project settings when compiling for the iPhone. It fails when linking saying that ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/AddressBook.framework/AddressBook, file is not of required architecture ... (same for ...

Why getting differences between using XCode and xcodebuild?

Can anyone explain why I get different results when compiling the same XCode 4.x project using the GUI and xcodebuild command-line? XCode GUI Perform a clean Build "Release" target Build successfully xcodebuild Perform a clean Run "xcodebuild -configuration Release" Results in the following errors: /Developer/usr/bin/gcc-4.0 -x o...

iPhone: Using static library in an application crashes the device but not the iphone simulator

I have a library I made, and now I want to utilize it in an application. I've believe I've properly linked to the library. Here are all the things I've done: Set the header search path Set other linker flags to "-ObjC" Added the static library xcode project Made sure the lib.a was listed as a framework target Added the library as a dir...

Objective-c and Xcode

HI every one I have a Question Regarding Importings Like i did application name as XX.h now i want to import the XX.h file into another APplication called as yy.m ... Is it possible to import the xx.h file into yy.m file if so please let me know the Process??? ...

No iPhoneOS target in xcode

I am a member of the iPhone developer program. I've created my development certificate and provisioning profile. I've installed both. However, when I create an empty new xcode project the Target Destination only lists 'Simulator - 3.1.2 | Debug'. For 'Active Architecture', only i386 is listed. However, in the project settings, Architect...

Problem installing ad hoc-provisioned app built with SDK 3.1.2 on device running iPhone OS 3.0

I'm trying to install an ad hoc-provisioned iPhone app compiled under the 3.1.2 SDK on a device running iPhone OS 3.0 via iTunes. I'm getting a message "The application was not installed because it requires a newer version of iPhone OS." The build settings for the project are "iPhone Device 3.0 (Base SDK)" and "Distribution." The app suc...

Best way to install a custom cocoa framework

I have a custom framework that, following the advice in Apple's Framework Programming Guide >> Installing your framework I install in /Library/Frameworks. I do this by adding a Run Script build phase with the following script: cp -R build/Debug/MyFramework.framework /Library/Frameworks In my projects I then link against /Library/Fram...

How to have Xcode always copy files (even if they have not been detected as modified) when building?

I am developing an application which uses .js files stored in the Resources/javascript folder of my application bundle. In my Xcode 2.5 project I have created a folder reference (not a group) to my javascript folder, which automatically added the folder to the Copy Bundle Resources build phase. The problem I have is when I modify my .js...

technical way of managing files - grouping files in xcode

I am in iPhone development since last 3 months. Usually, While inserting a view Controller, I just right click on Classes & add new group. & Within that group I just add my new view controller's .h, .m & .xib file. Before my question, let's see what I have done in my project. My questions are something like this Is it in proper w...

FileMaker Plugin Issue

I am compiling a plugin for FileMaker using Xcode. I get no errors or warnings, and my 'target' is my FM/Extensions folder. Everything works well on my computer. It installs and then when I open FileMaker/Preferences/Plugin it is listed like it should be. Problem: I copied the project to another computer and I get the same results exce...

How to temporarily disable a Run Script phase in Xcode

I have a Run Script phase configured for my project's target. It is run on every build. Is it possible to temporarily disable this script without removing it from the target? ...

iPhone App Product Name

Hi all, I am having problem with the XCode->Project->Edit Active Target "projectname" setting I am trying to set the "Product Name" as "My App" , but while running the app in the device. I am getting an error as Illegal Character present in Product Name. I even tried with - and _ (My-App , My_App) but none of these works. However it ...

Most efficient way to do 22 different builds

I'm getting close to finishing my first relatively simple Xcode project (a custom installer) and I need to do 22 builds. Yes that wasn't a typo! What's different on each build is the PRODUCT_NAME, a source file in the bundle Resources folder and a variable that says whether the software is a trial version or not. From what I've read so...

Can't build a new project with xcode on my MacPro

Hi every1! I've installed on my MacPro (intel) Xcode 3.2.1 (iPhone SDK 3.1.2) and Snow Leopard I made a new project (called Untitled) for iPhone OS, when I try to build, it returns an error: *file not found: */Users/user/Documents/Untitled/build/Untitled.build/Debug-iphonesimulator/Untitled.build/Objects-normal/i386/main.o */Users/us...

xcode conditional compilation

Hi all, I have following issue: I have an iPhone application which can be compiled using various color styles. So the goal is to have several build configurations with defined style, for instance COLOR_STYLE_BLACK. Style definition files should be placed under some subfolder in source tree, like, for example Classes/styles/black. Then, ...

Automate the XCode build settings

I've developed a static library that I'd like to share between XCode projects. I did some reading to learn exactly how to include this library as a binary dependency so that it runs on both the device and the simulator and that lead to a couple of manual steps which I'd now like to automate. Overall I'd like to be able to release new ver...

Vim: good way to setup makeprg=xcodebuild ?

What is the best way to set makeprg=xcodebuild in vim? I'm using filetype line in files to indicate that the file is objective-c (as opposed to matlab or cpp) by setting up the first line of my file to: /* vim: set filetype=objc : */ and having this in vimrc: set modelines=1 I would probably want to use :mak to run this command in...