Xcode is Apple's integrated development environment (IDE). This tag should only be used for questions about Xcode itself, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, and [cocoa-touch] or [ios] for iOS programming questions.
1049
votes
7answers
228k views
How to “add existing frameworks” in Xcode 4?
I can't find the good old "Add existing frameworks" option. How do I do this?
We're talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).
607
votes
6answers
135k views
How can I disable ARC for a single file in a project?
I am using ARC successfully in my project. However, I have encountered a few files (e.g., in unit tests and mock objects) where the rules of ARC are a little more fragile right now. I recall hearing ...
376
votes
13answers
89k views
Git ignore file for Xcode projects
Which files should I include in .gitignore when using Git in conjunction with Xcode?
332
votes
14answers
77k views
Codesign error: Provisioning profile cannot be found after deleting expired profile
Tried to rebuild an app that was just working yesterday. Got a message that a profile had expired, so I removed it from the iPod and from iTunes. When I chose a new profile (one with an * in the ...
328
votes
6answers
68k views
How do I set up NSZombieEnabled in Xcode 4?
How do I set up NSZombieEnabled and CFZombieLevel for my executable in Xcode 4?
302
votes
23answers
157k views
How to change the name of an iPhone app?
I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since its nearly finished.
But I'm not sure how to do this with Xcode, ...
273
votes
18answers
89k views
“Warning: iPhone apps should include an armv6 architecture” even with build config set
It's been a while since I've had to adjust project build settings. After upgrading to a recent SDK I'm having trouble building my ad hoc distribution configuration.
Build generates this warning and ...
268
votes
12answers
80k views
How to print out the method name and line number and conditionally disable NSLog?
I'm doing a presentation on debugging in Xcode and would like to get more information on using NSLog efficiently.
In particular, I have two questions:
is there a way to easily NSLog the current ...
255
votes
10answers
99k views
How do I test if a string is empty in Objective C?
How do I test if an NSString is empty in Objective C?
255
votes
7answers
65k views
File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?
I upgraded Xcode version and when using external static libraries, I get this message:
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture ...
245
votes
16answers
41k views
What is the best way to unit test Objective-C code?
What frameworks exist to unit test Objective-C code? I would like a framework that integrates nicely with Xcode.
229
votes
14answers
55k views
Xcode strange warning: “Multiple build commands for output file”
I am getting an error like this:
[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/no.png
[WARN]Warning: Multiple build commands for ...
226
votes
11answers
83k views
Best way to define private methods for a class in Objective-C
I just started programming Objective-C and, having a background in Java, wonder how people writing Objective-C programs deal with private methods.
I understand there may be several conventions and ...
207
votes
4answers
32k views
Version vs build in XCode 4
I have an app that I developed with XCode 3 and recently started editing with XCode 4. In the target summary I have the iOS application target form with fields: identifier, version, build, devices, ...
198
votes
30answers
217k views
iPhone app signing: A valid signing identity matching this profile could not be found in your keychain
I'm pulling my hair out over this. I just downloaded the iPhone 3.0 SDK, but now I can't get my provisioning profiles to work. Here is what I have tried:
Delete all provisioning profiles
Delete ...