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
3
votes
1 answer

Lock file in Xcode 4

I've got a simple question. In Xcode 3 I was able to lock a file by clicking on the little lock icon at the top of each file. I'm missing this function in Xcode 4. I think I'm just blind. Can you help me?
Sandro Meier
  • 3,071
  • 2
  • 32
  • 47
3
votes
2 answers

How do I get the resources folder back in Xcode 4?

The question says it all: where is the group and where is the "physical" folder?
Johannes Fahrenkrug
  • 42,912
  • 19
  • 126
  • 165
3
votes
2 answers

Cocoa Key Equivalent in Menu is not working

I have created a NSStatusItem and I have assigned two key equivalents within interface builder (Xcode 4.0). These are for the preference menu cmd-, and the quit option cmd-q. Both of these will work when the Menu is highlighted/open but will not…
k.c
  • 35
  • 3
3
votes
4 answers

NSLocalizedString - Format not a string literal and no format arguments (xcode)

I get the "format not a string..." message when doing the following: NSString* string1 = [[NSString alloc] initWithFormat:NSLocalizedString(@"Update Now", @"Update Now Item")]; NSString* string2 = [[NSString alloc]…
Siberian
  • 33
  • 1
  • 3
3
votes
2 answers

what approach for adding custom methods to Core Data managed objects in separate files?

what approach for adding custom methods to Core Data managed objects in separate files? In particular the requirements would be I guess: don't want to touch the XCode4 generated classes (i.e. so can regenerator them anytime and not have to redo…
Greg
  • 34,042
  • 79
  • 253
  • 454
3
votes
2 answers

Carriage return ("\r") in C/Objective-C in gdb output not working

I want output to the command line (so far, in the gdb command line within XCode) to overwrite the same line. The code I'm using to print the output right now takes some things from an Objective-C method and eventually does this: unsigned char…
Stephen Searles
  • 971
  • 6
  • 18
3
votes
3 answers

Can't archive anymore, yet "build for archive" still works (Xcode 4)

Xcode is behaving rather strange right now: If I try to "Build for Archive" my app, the build process finishes without any errors or warnings. If I attempt to "Archive" though, it will throw a huge load of build errors at me. The errors (and the…
Toastor
  • 8,980
  • 4
  • 50
  • 82
3
votes
1 answer

xcode 4 build settings descriptions

In Xcode 3, when you click on a build setting, a small description appears at the bottom window briefly describing what the setting does. How do I view the equivalent in Xcode 4 without having to google each setting whenever I need to change it?
strider2k
  • 55
  • 1
  • 6
3
votes
1 answer

doesNotRecognizeSelector exception while running ibtool on a xib resource files

Anyone knows why I get this crash from the ibtool? ibtool --generate-strings-file "my.strings" "myViewController.xib" Result: 2011-04-18 17:49:41.848 ibtoold[32147:107] -[NSCFString count]: unrecognized selector sent to instance 0x20055f7e0
sorin
  • 161,544
  • 178
  • 535
  • 806
3
votes
2 answers

Simplest way to separate reusable code in XCode 4 for iOS? (library, project, etc)

I'd like to separate reusable code in Xcode 4 as a separate project/library/something else. The reusable code in this case is a game engine, and the main project is a game itself. Idea is to make the game engine code easy to use in the future…
Rudi
  • 2,450
  • 5
  • 26
  • 37
3
votes
3 answers

Error: No executable file specified

Suddenly my program runs and compiles without error but will not open the executable. I get error dialog: Error Starting Executable... No executable file specified. Use the file or exec-file command I think this may have started when I created a…
Gnarlodious
  • 304
  • 2
  • 4
  • 16
3
votes
2 answers

XCode4 not showing available options under Build Settings properties

For some reason, after some days working with XCode4, it simply stopped showing the available value options for any properties under the 'Build Settings' configuration. Let me show you: As you can see, I'm not able to select the provisioning…
Claudio Martins
  • 617
  • 1
  • 6
  • 12
3
votes
1 answer

Converting iPhone XIB to iPad version with Xcode 4

With Xcode 3 in Interface Builder you were able to upscale an iPhone XIB file to an iPad version. However in XCode 4 I cannot find a way to do this. I would really prefer not to have to create the XIB again from scratch. Is there a way to do this…
michaellindahl
  • 2,012
  • 5
  • 36
  • 64
3
votes
4 answers

xcode4 documentation for iOS 4.3 Library

I installed xcode4 and in Organizer - Documentation I can see iOS 4.3 Library, Mac OS X 10.6 Library and Xcode 4.0 Developer Library. However, when I'm offline, I cannot access the iOS library documentation, I'm getting Error Loading URL You are not…
andrei
  • 31
  • 1
  • 2
3
votes
2 answers

Xcode 4. Adding tableView to tab bar application

Ive created a new tab bar application in xcode 4 and it has generated a mainwindow.xib, firstView.xib, secondView.xib and viewController classes for each xib. I would like to add a tableView to the firstView.xib, so i have added a…
user346443
  • 4,672
  • 15
  • 57
  • 80