xcode

Insert Subversion revision number in Xcode

Hello! I would like to insert the current Subversion revision number (as reported by svnversion) into my Xcode project. I managed to insert the revision number into the Info.plist in the $PROJECT_DIR, but this is not a good solution, since the file is versioned. I tried to insert the revision into the Info.plist in the build directory, ...

How do I automate building the source distribution for an iPhone app with Xcode?

I am looking to distribute an open source iPhone app and I have a few questions about making the source distribution: 1) How can I automate creating the source archive (or diskimage) with XCode? I want something along the lines of a build target which archives the source (cleaning targets first if necessary, but it would be nice if it d...

Connecting to the Internet in an Xcode Application

Hi, The last GUI programming I have done was with Visual Basic, which included objects like Winsock and Inet to easily connect to the internet and retrieve the source from webpages. I just got started into XCode, and was wondering if there is a similar component. I see that there is a Webkit option in the Library, but I have no idea ho...

Building Xcode Projects From the Command Line

I've been playing around with Qt for a few hours now. I found that qmake produces Xcode project files on Mac OS X instead of good ol' makefiles. I don't want to launch Xcode every time I want to build "Hello, world". How do I make qmake generate regular makefiles or, if that's something that cannot be done on the Mac, how do I compile ....

Adding a framework in Xcode

Im trying to add a third party framework in Xcode but I'm getting an error that it can't be found error: MKAbeFook/MKAbeFook.h: No Such File or Directory I've added it in the Linked Frameworks group and added it to the Target for this project. I've also added it to a new Copy Files build phase for that target. Basically I've follo...

Which iPhone "Active SDK" version should I use?

The current (as of Dec 2008) iPhone SDK allows me to pick between 3 versions when I want to build an app: 2.0, 2.1, 2.2. -- I'll ignore 2.1 below. My assumptions: 2.2 has more API functions available than 2.0, 2.2 has fixed bugs since 2.0, 2.2 is backward-compatible with 2.0 (both for building and running), If I build with SDK 2.0, my...

Launch safari from a Mac application

Hi How can I launch the Safari browser or the user's default browser pointing it to a specific address from within my Mac application? I am using Objective-C as the programming language. Thanks. ...

Do XCode projects need special settings to use pre-compiled boost libraries?

I have just installed boost for the first time on my Intel Mac, and it works fine in general, as long as I use only boost's header files. But when I try to use a lib, in my case the regex lib, my app links and launches fine, but then it soon crashes in a regex related destructor. This even happens with the simple test program that's gi...

How do I find out what exception was thrown in the Xcode debugger (for iPhone)?

I'm learning iPhone programming from Erica Sadun's The iPhone Developer's Cookbook. When I run the app I created by following the steps in the Temperature Conversion Example starting on page 81 in the simulator, it terminates due to an uncaught exception. (See http://groups.google.com/group/iphonesdk/browse_frm/thread/6f44a90fdb8da28a?...

copyplist failed with exit code 71

I have an iPhone app that's shipping (vConqr - you should go and buy it :-) ). I build the project on several different machines, including a colleague's, and it's been working fine. However, just recently, on my second dev machine my build fails every time with the error: /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/C...

Can you create per-user project settings in Xcode?

I'm collaborating on an iPhone application, with the project files (.xcodeproj directory) checked into source control. One important setting is the "Code Signing Identity", which specifies the certificates to use to sign the application in order that it can run on the iPhone. Each developer on the project has his own Code Signing Ident...

deploying resource files from xcode

How does one copy resource files (config/data/image) files to an applictions home directory on the iPhone. A related question Loading Data Files on iPhone?, received an answer "just add them to your project; Xcode will copy them to the .app bundle when it builds your application". How does one do this? (If this is a simple question, a ...

Copying frameworks into project?

When attempting to copy a framework into the Frameworks folder of my project in Xcode, I get the error Could not copy /Developer/Platforms/.../Frameworks/OpenAL.framework to /Users/.../OpenAL.framework I had accidentally copied the wrong framework with the same name into the project earlier and deleted it, but now I can't copy the ...

Xcode window positions when switching from dual to single monitor

When I'm working at home I plug my MacBook in to my 20" monitor as a second (right side) monitor. I do all my editing in Xcode on the larger monitor, and leave the menu bar, debugging and documentation on the laptop's monitor. The problem is when I disconnect from the second monitor and want to work on code in "laptop" mode. Now, whene...

XCode: Adjusting indentation of auto-generated braces?

Code auto-generated by XCode seems to have the opening brace on the same line by default: @interface Controller : NSObject { } I'd like the opening brace on a line of its own, like this: @interface Controller : NSObject { } This applies in general to any method / class auto-generated by XCode. In XCode preferences I have "Indent...

Linking a Bundle Target to a Command-Line Target in Xcode

I have a project in Xcode that contains multiple targets. One of these builds a sync schema bundle, and another one builds a Foundation command-line tool that initiates a sync session using the schema defined in the bundle. The schema bundle template creates Schema-strings.h and Schema-strings.m files, which contain constants for data c...

Xcode: iPhone app codesign error

When building a new iPhone app in Xcode, I'm getting this error: codesign error: code signing identity 'iphone developer' does not match any code-signing certificate in your keychain. once added to the keychain, touch a file or clean the project to continue. What's the fix? ...

Add image to targets folder by code

i want to add a image to the iphone application Targets-Copy Bundle Resource folder by using code,can make it?any suggestion ...

How do I make Xcode refresh its local copies of my project's image files?

I'm having some weird issues with Xcode, and this is pretty much impossible to find answers by simply googling around. I have a few icon image files (just PNGs) in my Xcode project, and when I modify some of them in Photoshop, they don't get updated when I do another build in Xcode. In order to fix this I have to re-add the file again t...

Enable anti-aliasing of code view in XCode

Is there any way to get XCode to render text in the editor with anti-aliasing enabled? I can't see anything in the preferences dialog that would do it. ...