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

Xcode 4 Sort Files By Name

In Xcode 3.x I could do Edit > Sort > By Name. I cannot find this functionality in the new version of Xcode. How do I accomplish this?
ghempton
  • 7,777
  • 7
  • 48
  • 53
66
votes
3 answers

Workflow to create Xcode groups as file system folders

I like organizing my classes into groups, in the Xcode 4 project navigator pane. I also use GIT versioning via the terminal, which works better for me than the Xcode 4 integration. To me it makes the most sense when the groups I create in Xcode…
epologee
  • 11,229
  • 11
  • 68
  • 104
66
votes
2 answers

How can I use .xcconfig files in Xcode 4?

I just switched over to Xcode 4 and I'm having trouble working with .xcconfig files for build settings. My targets that already had files assigned in Xcode 3 are all set up - a column titled Config.file shows up in the Levels view of Build Settings.…
Luke
  • 7,110
  • 6
  • 45
  • 74
66
votes
8 answers

How to change output directory for a target

I am using a workspace where I have a main app project and then a static library project which is used by the main app. I want static library project to spit out libX.a into the main app project directory, because i want to push this libX.a into my…
Kuldeep Kapade
  • 1,095
  • 3
  • 12
  • 17
65
votes
4 answers

Which version of Xcode does xcodebuild use?

I have installed both Xcode 3.2 and Xcode 4.0.2 on the same machine, which uses Hudson for automated CI (continuous integration) builds. When I say that both were installed, what I mean by that is that I can use both Xcode 3 and Xcode 4…
kraftydevil
  • 5,144
  • 6
  • 43
  • 65
65
votes
8 answers

Localizing in Xcode 4 with Localizable.String

I just updated to Xcode 4. Normally when localizing apps we add "Localizable.String" file to the project, and then navigate to "Get Info" menu and click the "Make It Localized" button. However, in Xcode 4, there is no "Get Info" menu. When I try to…
jacob
  • 651
  • 1
  • 6
  • 3
64
votes
6 answers

How to make a new line in UITextView in nib/storyboard?

I am trying to make a new line in Xcode 4.2 UITextView, and when I do alt+return, it goes to the next line, but does not show up when built and ran.
t3hcakeman
  • 2,289
  • 4
  • 25
  • 27
63
votes
10 answers

AVAudioPlayer not playing any sound

I'm working on an iOS application that needs to play some sounds using the AVFoundation framework. The workspace structure in Xcode 4 contains two projects: Workspace The application itself (main project) A utility library After building the…
msoler
  • 2,930
  • 2
  • 18
  • 30
63
votes
7 answers

Adding Unit Tests to an already existing project?

When you create an XCode 4 project, it asks you if you want to include unit testing. But how do you add it to a project that's been created without them? I started a project with Unit Tests to try to figure it out, and it looks like the only…
Randall
  • 2,083
  • 2
  • 18
  • 20
63
votes
8 answers

How to bookmark code in XCode 4?

I couldn't find a way to put a bookmark inside the code in XCode 4. I know about the #pragma mark thing but it's not what I'm looking for. What I need is something that I can put and remove with a mouse click and navigate amongst with next and…
aslı
  • 8,740
  • 10
  • 59
  • 80
63
votes
6 answers

How Can One Transfer Xcode 4 Code Snippets from One Machine to Another

I've got some user code snippets in my Xcode 4 which I would like to copy to another machine and share with other developers. Is there a way to do so?
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
63
votes
3 answers

"Run > Stop on Objective-C exception" in Xcode 4?

Maybe somebody knows where is the "Run > Stop on Objective-C exception" menu in Xcode 4? I've used it sometimes in Xcode 3, but it disappeared in the new IDE.
ddnv
  • 2,104
  • 2
  • 16
  • 16
62
votes
1 answer

Xcode 4 disable snapshots creation on refactoring

I turned on Xcode4's snapshot on replace feature. I want to turn it off. How do I do that?
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
61
votes
8 answers

How to convert .xcarchive to .ipa for client to submit app to app store using Application Loader

We have created the .xcarchive file code signing with our client's certificate & distribution provisioning profile, but we need to send the .ipa file to our client so that they can upload the app to the App store using Application Loader. The only…
aobs
  • 1,063
  • 1
  • 11
  • 23
61
votes
10 answers

Error during Xcode Component Installation

I just installed a software update that I was prompted for, presumably affecting Xcode. Now when I start Xcode, I am presented with a dialog box which states that Xcode must install the Mobile Device Framework before continuing. When I try to do…
Peter Jacobs
  • 1,657
  • 2
  • 13
  • 29