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
1471
votes
10 answers

How can I "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,697
  • 6
  • 31
  • 33
471
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
  • 20,110
  • 21
  • 77
  • 129
460
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
  • 46,743
  • 31
  • 106
  • 145
365
votes
14 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
  • 8,095
  • 5
  • 36
  • 53
363
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,027
  • 6
  • 37
  • 65
336
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,800
  • 4
  • 33
  • 32
283
votes
14 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
  • 63,052
  • 100
  • 273
  • 488
261
votes
15 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
  • 62,602
  • 20
  • 102
  • 156
241
votes
69 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
239
votes
19 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
  • 41,587
  • 63
  • 251
  • 412
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
  • 4,772
  • 14
  • 52
  • 86
217
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,219
  • 4
  • 23
  • 18
206
votes
54 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
  • 7,028
  • 15
  • 63
  • 95
193
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
  • 23,366
  • 38
  • 119
  • 196
187
votes
8 answers

Xcode 4, Core Data Model Version - Set Current Version

I'm confused about how to perform the following function in Xcode 4 to set the model to use after creating a versioned model. Design > Data Model > Set Current Version
Nate Potter
  • 3,222
  • 2
  • 22
  • 24
1
2 3
99 100