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
31
votes
3 answers

How to disable no inverse relationship warning for CoreData in Xcode 4.2?

There was a MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS setting on Xcode 3 but I cannot find it in Xcode 4.2 and trying to set it as a user defined build setting have no effect. I know why I should use inverse relationship but I just don't want it for…
Bryan Chen
  • 45,816
  • 18
  • 112
  • 143
31
votes
1 answer

How do I run a C++ program in Xcode 4?

I want to write a C++ program in Xcode on my Mac. I wrote this basic one to test it. When I build, I get a "Build Successful" message. However, I cannot run it! If I hit Command+R nothing happens. When I go to Project->Run the Run option is…
user445338
31
votes
9 answers

Xcode project's "Build number"

What is a Build number and what is its use? Is it the same as version number?
Peter V
  • 2,478
  • 6
  • 36
  • 54
31
votes
10 answers

Trackpad gesture to switch to header/source

I used to be able to use three finger scroll-up to switch between source/header. Since upgrading to Lion, I it just does a regular scroll. Is there any way to get that feature back? Aka, it doesn't jump to counterpart when I scroll up / down like…
AWF4vk
  • 5,810
  • 3
  • 37
  • 70
31
votes
6 answers

How to include a bundle in main project xcode 4.1

[UPDATE 03/04/2015] The question is now 4 years old, and applies to a specific version of XCode which I have now specified in the subject. I have searched a lot for this argument, but I couldn't find a solution, I even post on stackoverflow, but I…
Leonardo
  • 9,607
  • 17
  • 49
  • 89
31
votes
3 answers

How to 'show current line' in in Xcode 4?

I know you can go to preferences and enable a column that appears on the left part of the editor, showing the line number. But I am asking is there a way of showing the line number in some kind of status bar or any other part of the Xcode UI without…
Ricardo Sanchez-Saez
  • 9,466
  • 8
  • 53
  • 92
31
votes
3 answers

Adding files to separate targets in Xcode 4

Since upgrading to xcode 4, I can't find where to specify what Target a resource belongs to. Previously, I selected the file and hit command+i, but this now seems to run the program, rather than bring up the info box for that file.
Smikey
  • 8,106
  • 3
  • 46
  • 74
30
votes
4 answers

initWithFrame : reuseIdentifier : is deprecated

In my project i've got a Deprecations warning, initWithFrame : reuseIdentifier : is deprecated I don't know what it mean, could some one tell me how to resolve this warning thanks here is the short code - (UITableViewCell *)tableView:(UITableView…
a3116b
  • 337
  • 1
  • 5
  • 13
30
votes
8 answers

How to draw a line in interface builder in Xcode 4

I'd like to draw a simple inset line in Interface Builder to separate some items in a list and make the UI a bit more tidy. I don't see any "line" or similar objects in the objects library and can't seem to find any drawing commands in Interface…
Kongress
  • 2,244
  • 3
  • 20
  • 30
30
votes
12 answers

An error occurred uploading to the iTunes Store

We Really need some help on this one: We've Struggled with all the Apple Mumbo-Jumbo for the Last two months and can't seem to get our APP on the APPStore... Right now my problem is after Validating the ARCHIVE compilation and sharing it.. in the…
Hernan Arber
  • 1,626
  • 3
  • 22
  • 35
29
votes
6 answers

Xcode4 target labelled as missing, but cannot delete it

I want to delete this red-marked target, but am unable to. The "minus" button in the dialogue remains greyed-out, it doesn't respond to backspace or delete keys and right-clicking just brings up help options. I can drag the missing-red-marked…
SubG
  • 740
  • 1
  • 7
  • 14
29
votes
4 answers

How to link a .xib file to a class file with Xcode 4

have started a universal project under the new Xcode4. My Application works on both iPhone & iPad devices but not well design for the iPad. I have 2 .xib file for the MainWindow: MainWindow.xib (iPhone device) & MainWindow-Ipad.xib (iPad device).…
user763308
  • 435
  • 2
  • 5
  • 10
28
votes
3 answers

Is there a way to compile for ARM rather than Thumb in Xcode 4?

Apple is recommending to compiling for ARM rather than thumb if there are many floating point operations going on. My whole app is almost one big floating point operation. Here's what they say in the iOS App Development Workflow Guide: iOS devices…
openfrog
  • 40,201
  • 65
  • 225
  • 373
28
votes
2 answers

Is bundle id case sensitive?

In a provisioning profile I set my app id to com.mycompany.lowercaseappname, but in Xcode 4 the bundle identifier is auto configured to use my ${PRODUCT_NAME}, which is capitalized (I want the user to see it capitalized under the app icon). Is this…
sarunw
  • 8,036
  • 11
  • 48
  • 84
28
votes
3 answers

How do you watch a variable in xcode 4?

How do you watch a variable in xcode 4? I'm not sure how to do this.
lampShade
  • 4,361
  • 8
  • 34
  • 50