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

Keyboard shortcut to find the currently selected text in Xcode 4

In Visual Studio—my main squeeze for many years—I can press Ctrl+F to immediately search for the identifier or string that my text caret is touching, or else the currently selected text if I have a selection. I can press Ctrl+Shift+F to search the…
OldPeculier
  • 11,049
  • 13
  • 50
  • 76
41
votes
2 answers

Is filemerge still available after Xcode 4.3 installation?

Where can I find filemerge after Xcode is upgraded to 4.3?
ohho
  • 50,879
  • 75
  • 256
  • 383
41
votes
6 answers

Static libraries in Xcode 4

(My question has been asked here before but with no working answers that I can see. E.g. Xcode4 Workspace with Static library project & application project) I'm trying to use a library provided by a 3rd party. They provide the XCode project which…
TomSwift
  • 39,369
  • 12
  • 121
  • 149
41
votes
4 answers

Is it possible to suppress Xcode 4 static analyzer warnings?

The Xcode 4 static analyzer reports in my code some false positives. Is there any way to suppress them?
DreamOfMirrors
  • 2,147
  • 1
  • 21
  • 34
41
votes
13 answers

Build fails with validation failed in Localizable.strings

I made Localizable.string files and compiled my project (my source code uses NSLocalizedString macro function) but my project doesn't compile because of the Localizable.string file. If I comment all the lines in the Localizable.string file, my…
MonsterK
  • 565
  • 1
  • 6
  • 12
41
votes
8 answers

Upgrading to xcode 4 error No architectures to compile for

I am getting an error after upgrading to xcode 4, for all of the library projects that my application depends on. [BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6).
James
  • 1,553
  • 2
  • 11
  • 13
41
votes
6 answers

Xcode - SenTestingKit not found

I have an issue that popped up when I upgraded my version of xcode. I use unit tests, and I now when I try to import SenTestingKit (#import ), I get this error: SenTestingKit/SenTestingKit.h: No such file or…
Sam Valens
  • 431
  • 1
  • 4
  • 4
40
votes
7 answers

Generate xcarchive into a specific folder from the command line

For the purposes of CI, I need to be able to generate an XCARCHIVE and an IPA file in our nightly build. The IPA is for our testers, to be signed with our ad-hoc keys, and the XCARCHIVE is to send to the client so that they can import it into Xcode…
Chris
  • 39,719
  • 45
  • 189
  • 235
40
votes
5 answers

.app file appears in red (missing) in new projects with Xcode 4

Every time I create an Xcode 4 project (iPhone app, cocoa library...) the .app file or the .a file under Products group appears in red (is missing). Even if I build the project the file stills in red. All my settings are default.
Miguel Beltran
  • 2,132
  • 1
  • 23
  • 36
39
votes
3 answers

How to show Xcode debugger in a window separate from Xcode?

I was watching a video lecture from iTunes U., where instructor showed how one can take a debugger section of the Xcode and was able to pull that window away from the main. Unfortunately, video showed instructions on how to do it in Xcode3. How…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
39
votes
3 answers

Copying keys and certificates to another one Mac for iPhone development

We bought a new Mac and would like to migrate the certificates and private keys from the old machine to the new machine. The old machine contains keys and certificates for six iPhone apps. We followed the instructions outlined in this SO post, which…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
38
votes
4 answers

Can Xcode Use "Folder References" for Code?

Like many people, I would love to have Xcode use a folder structure that mirrors the folder-structure on disk. However, I cannot get the code in "folder references" (the cyan folders) to show up in my project targets under "Compile Sources." Is…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
38
votes
10 answers

Xcode 4 build succeeds, command line build fails?

I have a project in Xcode 4 (the latest non-beta version) that builds fine when built in Xcode itself. Specifically, the Ld command correctly uses the derived data directory (where build products, including a dependent static library, are…
James J
  • 6,428
  • 6
  • 35
  • 45
38
votes
2 answers

How to add base SDK for 10.5 in xCode 4

I've installed xCode 4 last night and tried to compile a software which should support 10.5 and above OSs. It gave the error message "Base SDK missing". I found that 10.5 base SDK is no longer in the menu. Is there any way to get that base SDK? Is…
Raiyan Kabir
  • 1,016
  • 2
  • 11
  • 23
38
votes
6 answers

How does one compile single file Xcode 4?

While I used to compile a single source file with Cmd+K in prior versions of Xcode, how does one do the same in Xcode 4? (Note that this is different than preprocessing or showing the disassembly of the file.) If compiling from a command line is…
sergey
  • 579
  • 1
  • 5
  • 9