Questions tagged [xcode4.2]

the Oct. 12, 2011 release of Apple's integrated development environment (IDE) for Mac OS X and iOS. USAGE NOTE: Use this tag only for questions that are specific to this version of Xcode, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, and [cocoa-touch] or [ios] for iOS programming questions.

Xcode 4.2, Apple's integrated development environment (IDE) for Mac OS X and iOS, was released October 12, 2011.

Use this tag for questions that are specific to Xcode 4.2, and not for general programming questions. Use the or tags for macOS programming questions; use the or tags for iOS (formerly iPhone OS) programming questions; for questions about the Objective-C language and its features, use the tag; also, avoid adding the Xcode tag if your question would stay the same if you would use any other editor for writing your program code.

New Features:

  • support for Mac OS X 10.7 Lion and iOS SDK 5.0
  • Apple LLVM compiler 3.0 with Automatic Reference Counting (ARC)
  • LLVM compiler support for C++’0x features using the new LLVM libc++ standard library
  • Storyboarding support to design multi-view workflows for iOS
  • OpenGL ES graphical debugger
  • Location Simulation

Note:

Xcode 4.2 is the last version to support Mac OS X 10.6 (Snow Leopard), but is only available to registered developers; without an account, 3.2.6 is the latest download that appears for Snow Leopard.

Source: Release notes for Xcode 4.2

See for more information.

1965 questions
268
votes
15 answers

Can't install Ruby under Lion with RVM – GCC issues

Most questions regarding this problem are due to missing Xcode; I have Xcode 4.2 installed. Install attempt: rvm install 1.9.3 Installing Ruby from source to: /Users/jamie/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your…
Jamie Schembri
  • 6,047
  • 4
  • 25
  • 37
213
votes
18 answers

Custom Cell Row Height setting in storyboard is not responding

I am trying to adjust the cell height for one of the cells on my table view. I am adjusting the size from the "row height" setting inside the "size inspector" of the cell in question. When I run the app on my iPhone the cell has the default size set…
zirinisp
  • 9,971
  • 5
  • 32
  • 38
205
votes
8 answers

Why is @autoreleasepool still needed with ARC?

For the most part with ARC (Automatic Reference Counting), we don't need to think about memory management at all with Objective-C objects. It is not permitted to create NSAutoreleasePools anymore, however there is a new syntax: @autoreleasepool { …
mk12
  • 25,873
  • 32
  • 98
  • 137
139
votes
15 answers

Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard?

I still have Snow Leopard. I have Xcode 4.2 for iOS development. This morning I upgraded my iPhone and iPad to iOS 5.1. But Xcode 4.2 is not detecting my device for testing. I could not find the iOS 5.1 SDK image on Apple's developer site, for…
jpsasi
  • 1,905
  • 2
  • 18
  • 29
135
votes
5 answers

Some questions about Automatic Reference Counting in iOS5 SDK

I'm currently developing an app for iPad. The development started for iOS 4.2 and is now continuing (and I think will be completed) for iOS 4.3. I just read about ARC in iOS 5, and basically I understood that we will never need to release and retain…
Luke47
  • 1,583
  • 3
  • 11
  • 14
79
votes
6 answers

Xcode 4.2 how include one project into another one?

I keep searching, but cannot find a clear and simple explanation on how to include one XCode project, along with all of it's sub-classes into another project. I routinely see stuff like that in sample projects that I download off the web, but do not…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
78
votes
9 answers

Using Multiple Storyboards in iOS

My objective is to create a tabbed application, then the view for each of the tabs are constructed in separate storyboards. My mainstoryboard is a tab view. Then I create a secondary storyboard (storyboard#2) with 2 View Controllers. The first view…
74
votes
3 answers

How to change the Class Prefix in Xcode 4?

When creating a project in Xcode 4, it asks what Class prefix to add to all new files. Is there a way to change (or remove) this, after a project is already started?
TigerCoding
  • 8,710
  • 10
  • 47
  • 72
73
votes
4 answers

Disable warnings in Xcode from frameworks

I have imported the three20 project into my project, and when I upgraded to Xcode 4.2 with iOS 5, a bunch of warnings appeared in the project. I don't care about them, but they make a lot of noise, and it's easy to miss any real warnings in my…
Micah Hainline
  • 14,367
  • 9
  • 52
  • 85
66
votes
1 answer

XCode Storyboard merging

Is there a way to merge XCode 4.2 Storyboard files? I'm working with another developer on an iPhone project and all my attempts at merging changes into a storyboard file have met with failure and after which Xcode is no longer able to load the…
sipsorcery
  • 30,273
  • 24
  • 104
  • 155
60
votes
1 answer

How is view initialized when loaded via a storyboard?

When view is loaded manually, developer remains in control when it comes to initializations, we choose what initializer to call, what variables to set etc. When view is loaded from the storyboard segue ... what happens to that initializer? Where…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
57
votes
3 answers

Xcode-Increment build number only during ARCHIVE?

I have found a few other posts that show how to add a script to increment the build number with a script: Better way of incrementing build number? Xcode project's "Build number" Can Xcode insert the version number into a library's filename when…
jsherk
  • 6,128
  • 8
  • 51
  • 83
56
votes
5 answers

Unable to change the Price tier in the In app Purchase

I'm unable to change the price of an in-app purchase. I added initially for testing purposes, but now that I'm submitting the app, I'd like to change it. Unfortunately, it doesn't seem to accept the change. It is showing me the same price tier not…
Purva
  • 1,291
  • 2
  • 15
  • 30
56
votes
3 answers

How to hide Textbox Keyboard when "Done / Return" Button is pressed Xcode 4.2

I created a Text Field in Interface Builder. I set it's "Return Key" to Done. This is a one line only input (so it wont need multiple lines). How do I hide the virtual keyboard when the user taps the done button?
Talon
  • 4,937
  • 10
  • 43
  • 57
55
votes
2 answers

ios5 ARC what is the compiler flag to exclude a file from ARC?

Can anyone help me remember what was the flag to tell the XCode to not use ARC for some file? I had several files in my project marked as such... Until I added another file and decided to convert that one to ARC. Sounds easy, right? I expected that…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
2 3
99 100