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.
1014
votes
7answers
217k 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...).
549
votes
5answers
119k 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 ...
351
votes
14answers
83k views
Git ignore file for Xcode projects
Which files should I include in .gitignore when using Git in conjunction with Xcode?
313
votes
5answers
63k views
How do I set up NSZombieEnabled in Xcode 4?
How do I set up NSZombieEnabled and CFZombieLevel for my executable in Xcode 4?
311
votes
13answers
72k 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 ...
268
votes
23answers
146k 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, ...
265
votes
18answers
87k 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 ...
254
votes
12answers
77k 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 ...
241
votes
10answers
92k 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?
238
votes
15answers
39k 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.
236
votes
6answers
56k 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 ...
207
votes
11answers
78k 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 ...
202
votes
14answers
50k 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 ...
187
votes
32answers
207k 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 ...
185
votes
4answers
28k 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, ...