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
89
votes
5 answers

Xcode 4 "Clean" vs. "Clean Build Folder"

You come at a certain point in the development of every app that what you see in the simulator does not match what you think should happen. Mostly these are human errors -- or at least they are in most of my cases ;-) -- but sometimes Xcode has just…
epologee
  • 11,229
  • 11
  • 68
  • 104
89
votes
9 answers

View array in LLDB: equivalent of GDB's '@' operator in Xcode 4.1

I would like to view an array of elements pointed to by a pointer. In GDB this can be done by treating the pointed memory as an artificial array of a given length using the operator '@' as *pointer @ length where length is the number of elements I…
midinastasurazz
  • 1,317
  • 2
  • 10
  • 12
89
votes
9 answers

How can I build for release/distribution on the Xcode 4?

Build for debug is just press on the PLAY symbol, but I don't know how to Build for distribution/release?
Anonymous
  • 911
  • 1
  • 6
  • 4
88
votes
8 answers

Why can I not switch branches?

I'm trying to switch branches in git but I'm getting this error message: error: you need to resolve your current index first I'm using git under xcode4 git status # On branch DateCode # Unmerged paths: # (use "git reset HEAD ..." to…
lampShade
  • 4,361
  • 8
  • 34
  • 50
88
votes
22 answers

Build app with Xcode 4 - it always show some error about PNG image

When I build my app with Xcode 4 it always show this error message: CopyPNGFile…
Michael Chen
  • 883
  • 1
  • 7
  • 5
88
votes
1 answer

How to select Multiple images from UIImagePickerController

In my application, I have to select more images ie; up to 3 images from library or capture of images.
Vara
  • 989
  • 1
  • 7
  • 16
85
votes
13 answers

How do I create a Delete-Line Keyboard shortcut in Xcode 8? The Xcode 3 solutions do not work anymore

In previous versions of Xcode it was possible to create a key binding to delete the current line. There were different solutions and they are described for example here: Xcode: Delete line hot-key Xcode duplicate/delete…
Klaas
  • 22,394
  • 11
  • 96
  • 107
85
votes
16 answers

Xcode 4 -reinstalls keychain certs that I delete

I am getting this error: CodeSign error: Certificate identity 'iPhone Developer: XXX' appears more than once in the keychain. The codesign tool requires there only be one. At first I though, no worries, I will just go into keychain and…
Codezy
  • 5,540
  • 7
  • 39
  • 48
84
votes
4 answers

ARC - The meaning of __unsafe_unretained?

Just want to make sure that I got it right: Do I need to __unsafe_unretain objects that I don't own? If an object is __unsafe_unretained Do I need to use assign in the @property? Does that mean that the object is not retained, and just refers to…
shannoga
  • 19,649
  • 20
  • 104
  • 169
84
votes
33 answers

Xcode 4: Creating a UIView xib, not properly connecting

I'm trying to create a nib that contains a view that will be embedded in a TableViewCell. I've created the interface and implementation files, ResultCell.h and ResultCell.m. They're stock, out-of-the-box, no code changes. I then create an empty XIB…
Tim Sullivan
  • 16,808
  • 11
  • 74
  • 120
83
votes
6 answers

remove xcode recent projects from dock menu

I would like to remove from Mac OS-X taskbar (Dock) the XCode's recent project menu items. Everywhere I am searching it says the File->Open Recent->Clear Menu it will clear, but not. It doesn't clear from Dock, it clears from inside the XCode Recent…
user529543
82
votes
3 answers

How to highlight opened file in XCode 4 on the "Project Navigator" panel?

Since a project can have hundreds of files inside dozens of directories (filters) shown on the "Project Navigator" panel, sometimes it's getting difficult to seek the file which is currently opened in the Editor (for example, when I jump from file…
Funbit
  • 1,591
  • 2
  • 14
  • 15
79
votes
3 answers

Why doesn't Xcode 4 create any products?

Regardless of build configuration, building my iPad app does not actually output a .app file. It does run in the iPad simulator and on a device, but when I hit build or build and run, the binary appears under Products in red and is not created in…
Tiki
  • 1,206
  • 1
  • 13
  • 17
79
votes
11 answers

UINavigationBar - Set title programmatically?

I have a tab bar application with a different view on each tab. Each view has a UINavigationBar with title set on Interface Builder. I want to change the title based on a clause in the ViewDidLoad method, so if x { change the title }. I have tried…
AveragePro
  • 1,081
  • 2
  • 9
  • 12
77
votes
4 answers

How to register a custom app opening URL scheme with Xcode 4?

Xcode4 is asking for a huge number of arguments just to make this simple thing possible: NSString *stringURL = @"twitterriffic://"; NSURL *url = [NSURL URLWithString:stringURL]; [[UIApplication sharedApplication] openURL:url]; What are all these…
openfrog
  • 40,201
  • 65
  • 225
  • 373