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
37
votes
2 answers

How do I set up a C++ project in Xcode 4?

This probably has a really obvious answer, but I can't seem to find it. I am trying to use Xcode 4 to program with C++, and I want to create a project, build, and run it through Xcode 4 like I do for other languages. My problem is that I can't…
mrswmmr
  • 2,081
  • 5
  • 21
  • 23
37
votes
2 answers

How can I build a specific architecture using xcodebuild?

I have legacy code that relies on pointers being 32-bit and want to use xCodeBuild to build that code from command line. This doesn't work for some reason. Here's the command I use: xcodebuild -configuration Debug -arch i386 -workspace…
pqnet
  • 6,070
  • 1
  • 30
  • 51
37
votes
2 answers

Test phase is grayed out in XCode 4

I've been using GHUnit in my project because the built in unit testing was so terrible in XCode 3. However, now that they've been fixed in XCode 4, I want to switch back to the official testing framework. I added a new "Cocoa Touch Unit Testing…
Karl
  • 14,434
  • 9
  • 44
  • 61
37
votes
4 answers

How to point Xcode to an old SDK so it can be used as a "Base SDK"?

My Mac's Setup: Volume A: OS X 10.8 Xcode 4.5 or later - 10.6 SDK IS NOT available as Base SDK Volume B: OS X 10.7 Xcode 4.3.3 - 10.6 SDK IS available as Base SDK Volume C: OS X 10.6 Xcode 4.2 - 10.6 SDK IS available as Base SDK On Volume A, I have…
Todd Ditchendorf
  • 11,217
  • 14
  • 69
  • 123
36
votes
10 answers

Error: "No identities are available for signing" Xcode 4.3.1

I upgraded my OSX from Snow Leopard to Lion and I downloaded Xcode 4.3.1 Now when I try to validate and publish my app I get the first screenshot. If I click on Download Identifier button I get the second screenshot. Any suggest?
Dany
  • 2,290
  • 8
  • 35
  • 56
36
votes
11 answers

What do the "M" and "A" icons in the Project Navigator of Xcode 4 mean when I create a new project?

Xcode 4 is showing me grey "M" and "A" icons next to my files in the project navigator. I believe they're related to source control. The point is this: All my old Xcode 3 projects opened and edited in Xcode 4 don't show these icons! My new project…
Proud Member
  • 40,078
  • 47
  • 146
  • 231
36
votes
4 answers

What is Referencing outlet collection in Xcode4 Interface Builder?

Here, I have pointed to the Referencing Outlet Collection. I am not able to figure out its usage in XCode4. I am asking for the `new feature of REFERENCING OUTLET COLLECTION in InterfaceBuilder of XCode4".
sagarkothari
  • 24,520
  • 50
  • 165
  • 235
36
votes
3 answers

Undo "New group from selection" project xcode 4

I accidentally added my project to a group, and now I can't remove it from it in xcode 4, any ideas? If I drag it out, it asks me to create a workspace... EDIT: I reported this to apple in the bug reporter, I'll keep you guys updated
allaire
  • 5,995
  • 3
  • 41
  • 56
36
votes
13 answers

Xcode 4 - Debug Area no longer shows my console output (NSLog)

My NSLog messages no longer show up in my Debug Area. Anyone have an idea how the could have happened? I can hit command-7 to bring of a list of logs in the left pane, select the latest one and view it in my editor window, but it is extremely…
user317033
36
votes
4 answers

What's the correct way to configure Xcode 4 workspaces to build dependencies when needed?

My case is simple, a workspace with two sibling projects: one main (iOS) app and a project that builds several static library targets used by the app. Here's how I have configured the build: pointed a 'user header search path' in the main app's…
Cris
  • 1,939
  • 3
  • 23
  • 37
36
votes
12 answers

Unable to build using Xcode 4 - The selected run destination is not valid for this action

So I'm horribly confused by this error, other threads on Stack Overflow mention I should set the SDK, but I see no option to do this. I'm trying to build:http://wafflesoftware.net/shortcut/ And I get no options, and I can only choose My Mac 64-bit,…
Geesu
  • 5,928
  • 11
  • 43
  • 72
36
votes
4 answers

Bundle creator OS Type code ??? in Xcode 4

I just realized that Bundle Creator OS Type code in my iOS app's Info.plist value is ????? in Xcode 4. What is the value supposed to be?
moon
  • 1,392
  • 3
  • 15
  • 29
35
votes
7 answers

Cannot zoom in and out of nib in the new Interface Builder

Have I missed something obvious or is it not possible to zoom freely in and out of an open nib file, within the integrated Interface Builder of Xcode 4?
Luke
  • 11,426
  • 43
  • 60
  • 69
35
votes
2 answers

How delete Documentation "iOs 4.2 Library" in XCode 4

HI. My XCode 4.0.1 have a lot of documentation downloaded. I have iOS 4.2 Library iOS 4.3 Library Mac OS X 10.6 Core Library Mac OS X Legacy Library (uninstalled) Xcode 4.0 Developer Library I want to uninstall 4.2 Library because it is old. But…
Rodrigo
  • 11,909
  • 23
  • 68
  • 101
34
votes
1 answer

How to run / install xcodebuild?

If I try to run xcodebuild from the command line, I receive the message: error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory) But, xcrun appears to work. Does this mean xcodebuild is not installed? I installed the command…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190