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.

5441 questions
1447
votes
11 answers

How to "add existing frameworks" in Xcode 4?

I can't find the good old "Add existing frameworks" option. How do I do this? We're talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).
Ariel Malka
  • 15,839
  • 6
  • 29
  • 30
466
votes
4 answers

Xcode 4 - "Archive" is greyed out?

I would like to archive my application, but the Archive option is greyed out. What could cause this?
Nippysaurus
  • 19,402
  • 18
  • 71
  • 124
457
votes
7 answers

How do I set up NSZombieEnabled in Xcode 4?

How do I set up NSZombieEnabled and CFZombieLevel for my executable in Xcode 4?
Chetan
  • 41,886
  • 27
  • 101
  • 142
364
votes
25 answers

Exception thrown in NSOrderedSet generated accessors

On my Lion app, I have this data model: The relationship subitems inside Item is ordered. Xcode 4.1 (build 4B110) has created for me the file Item.h, Item.m, SubItem.h and SubItem.h. Here is the content (autogenerated) of Item.h: #import…
Dev
  • 7,041
  • 6
  • 33
  • 63
335
votes
11 answers

Renaming projects in Xcode 4

I must be missing something obvious, but I can't figure out how to rename my project in Xcode 4. If I remember correctly Xcode 3 had a dedicated menu item for this but there's no such entry in Xcode 4.
Ori
  • 12,680
  • 4
  • 30
  • 32
320
votes
12 answers

Can't ignore UserInterfaceState.xcuserstate

I'm using Git for Xcode 4 project version control. I've explicitly added ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate to .gitignore, but Git it won't ignore it. Any ideas why this is…
GarlicFries
  • 7,375
  • 4
  • 33
  • 52
270
votes
13 answers

Xcode: failed to get the task for process

I've run in release mode my app on a iPhone with Xcode 4. Everything worked great until when I switch to the simulator and I switched back to the iPhone. After switching back, the app is launched on the iPhone, but the home screen is displayed…
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
250
votes
12 answers

How to Empty Caches and Clean All Targets Xcode 4 and later

Jonathan suggest here: Xcode Includes .xib files that have been deleted! that cleaning all targets and empty the caches will fix the problem with Xcode including deleted .xib files but I cannot find a way to empty the cache in Xcode 4. How to do…
Tieme
  • 53,990
  • 18
  • 90
  • 147
239
votes
68 answers

Apple Mach-O Linker Error when compiling for device

I've just upgraded to xcode 4.0 and I can no longer deploy to iPhone, I get a Apple Mach-O Linker Error, it still works for the simulator though. Ld…
CodeVomit
  • 749
  • 2
  • 7
  • 10
235
votes
20 answers

Xcode iOS project only shows "My Mac 64-bit" but not simulator or device

This just started happening that my iOS project is only showing "My Mac 64-bit" rather than the Simulator or my iPhone to build to. I have no idea why this is happening. I do not think that I have changed anything. I have my project set to iOS 5…
Nic Hubbard
  • 39,231
  • 60
  • 236
  • 403
222
votes
25 answers

Xcode 4 says "finished running " on the targeted device -- Nothing happens

The app neither installs nor runs on my device. All provisioning profiles are up to date. I've already tried deleting and re-installing them. The status bar shows that Xcode is building my project, then it says running my project on , then it says…
D-Nice
  • 5,168
  • 12
  • 46
  • 81
218
votes
11 answers

Xcode 4 - build output directory

I have problems with setting up/locating my output files in Xcode4 (beta 5). They are placed somewhere in ~/Library/Developer/ugly_path/.... I can't even select "show in finder" on my products. It is the same for a simple C project, Foundation tool…
kubbing
  • 7,039
  • 4
  • 21
  • 18
206
votes
57 answers

Xcode 4 hangs at "Attaching to (app name)"

I just upgraded to Xcode 4 and for some reason my app won't run in the simulator or iOS device. It was working perfectly in Xcode 3, but all of a sudden now when I press run the program stops at "Attaching to...". There doesn't seem to be any other…
Rob
  • 6,575
  • 13
  • 56
  • 89
191
votes
3 answers

Table Header Views in StoryBoards

Is there a way to insert a Table Header View (tableHeaderView) in StoryBoard (like we used to do in Interface Builder)?
Tyler DeWitt
  • 22,191
  • 36
  • 108
  • 189
185
votes
12 answers

Xcode 4: create IPA file instead of .xcarchive

In Xcode 3.2.5 I use "Build And Archive" to create an IPA file. In Xcode 4 you can use "Product -> Archive" to archive an application in an .xcarchive bundle. How can I create an .ipa file with Xcode 4?
Manni
  • 10,948
  • 15
  • 46
  • 67
1
2 3
99 100