Tagged Questions
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.
1063
votes
8answers
234k 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...).
635
votes
6answers
143k 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 ...
388
votes
14answers
94k views
Git ignore file for Xcode projects
Which files should I include in .gitignore when using Git in conjunction with Xcode?
339
votes
14answers
81k 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 ...
332
votes
6answers
70k 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
15answers
164k 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, ...
274
votes
18answers
90k 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 ...
271
votes
12answers
82k 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 ...
268
votes
10answers
103k 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?
266
votes
7answers
71k 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 ...
251
votes
14answers
57k 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 ...
249
votes
16answers
43k 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.
232
votes
11answers
86k 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 ...
217
votes
4answers
35k 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, ...
205
votes
9answers
139k views
How to use/install gcc on Mac OS X 10.8 / Xcode 4.4
I have install Mountain Lion (Mac OS X 10.8) and now gcc doesn't seem to be available anymore. I've also installed Xcode 4.4 so there is no more /Developer directory.
I need gcc both for mac ports ...