Questions tagged [xcode4]

Xcode 4, released in June 2011, is Apple's integrated development environment (IDE) for Mac OS X and iOS. This tag should only be used for questions about this specific version of Xcode, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, or [cocoa-touch] for iOS (formerly iPhone OS) programming questions.

Xcode 4 is the successor to Xcode 3, the main development tool for developing software under Mac OS X, targeting Mac OS and iOS. It was introduced to the developer community at Apple WWDC 2010, and the final release was published in March 2011. It was replaced by Xcode 5 in September 2013.

References

See for more information.

5408 questions
113
votes
10 answers

Change templates in Xcode

How would I change the initial templates created by Xcode when creating a new Cocoa Class. I am referring to the comments and class name created when using Xcode's new class wizard.
Misha M
  • 10,979
  • 17
  • 53
  • 65
110
votes
14 answers

Can I disable autolayout for a specific subview at runtime?

I have a view that needs to have its frame manipulated programmatically - it's a kind of document view that wraps to its content which is then scrolled and zoomed around a superview by manipulating the frame origin. Autolayout fights with this at…
terriblememory
  • 1,712
  • 3
  • 18
  • 25
109
votes
23 answers

Hidden Features of Xcode 4

Now that Xcode 4 is officially released it's time for a follow up to my previous question: Hidden Features of Xcode So what are they? What are those hidden little Xcode 4 hints & tips that you can't live without? Please limit your tips to those that…
schwa
  • 11,962
  • 14
  • 43
  • 54
104
votes
4 answers

Xcode 4 and Core Data: How to enable SQL Debugging

I'm working on a universal iOS app and I'd like to see the raw SQL in the logs when I'm debugging. There is some info in this blog post about how to enable raw SQL logging for iOS Core Data development. The given example is for Xcode 3 and it's just…
oalders
  • 5,239
  • 2
  • 23
  • 34
103
votes
15 answers

Codesign error: Certificate identity appearing twice

CodeSign error: Certificate identity 'iPhone Developer: XXXX (12345678)' appears more than once in the keychain. The codesign tool requires there only be one. So I go to my keychain and delete it. But I get this error every time I restart Xcode 4…
Mugunth
  • 14,461
  • 15
  • 66
  • 94
101
votes
7 answers

How to fully remove Xcode 4

I want to remove all existing SDK versions as well as Xcode 4. Xcode 4 Guide says to do this: sudo /Xcode4/Library/uninstall-devtools --mode=all But I don't have Xcode4 at this location and the only place I see it is under…
Jonas Anderson
  • 1,987
  • 4
  • 24
  • 28
99
votes
8 answers

Xcode 4: How do you view the console?

I can't seem to find a way to have the console run (to show NSLog comments) in XCode 4. The normal method for the previous version of XCode does not work. Does anyone have an idea of how to accomplish this?
Joe
  • 2,187
  • 3
  • 15
  • 11
98
votes
1 answer

Where does Xcode 4 store Scheme Data?

I'm just starting to use Xcode 4, and I'm trying to find the file in a project where it stores all of a project's Schemes. I figured they would be stored in a file in the xcodeproj directory somewhere, but for the life of me I can't find which…
Cory Imdieke
  • 14,140
  • 8
  • 36
  • 46
96
votes
14 answers

Compile, Build or Archive problems with Xcode 4 (and dependencies)

This question has evolved over the past several weeks to cover more general issues with xcode4 (and upgrading projects form older xcodes). However many of the issues can be solved by following the same set of instructions. If you have any of the…
Richard Stelling
  • 25,607
  • 27
  • 108
  • 188
94
votes
3 answers

How can I safely delete in my ~/Library/Developer/Xcode/DerivedData directory?

I'd like to remove old (replaceable?) data and DerivedData contents seem a likely candidate. Since it's name DerivedData, I assume that it's info that, if missing, would be generated during a build phase and if present, is used during that same…
soob
  • 1,085
  • 1
  • 7
  • 9
94
votes
8 answers

How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?

Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became impossible. While it is possible to develop applications with Xcode4 that can also run on 10.5 and maybe even on 10.4 systems (by selecting SDK 10.6, but…
Mecki
  • 125,244
  • 33
  • 244
  • 253
92
votes
18 answers

Xcode 4 can't locate public header files from static library dependency

Alternate titles to aid search Xcode can't find header Missing .h in Xcode Xcode .h file not found lexical or preprocessor issue file not found I'm working on an iOS application project which came from Xcode 3. I have now moved to Xcode 4 my…
Richard Stelling
  • 25,607
  • 27
  • 108
  • 188
92
votes
12 answers

How can I make the tabs work normally on Xcode 4?

Xcode finally added tabs but the problem is that they behave very strange. For example they will keep a tab open only if it was opened to a new tab. If you open a file just by clicking in the project tree, Xcode will close your tab as soon as you…
sorin
  • 161,544
  • 178
  • 535
  • 806
91
votes
44 answers

Xcode 4: Build Failed, No Issues

The app works fine in the simulator, builds and runs. When I attach my device (iPhone 3GS running iOS 4.3) and target the iPhone, the result is "Build failed" with "No issues". Looking at the build results window, everything is green, has a…
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
90
votes
7 answers

How to disable indexing in Xcode 4?

Not a long time ago I updated Xcode to version 4. This new version spent a lot of time on indexing the project (it's quite large). That's why I would like to disable indexing. Searching through Xcode help and internet gave no results.
FarMiaplacidus
  • 901
  • 1
  • 7
  • 3