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
3
votes
1 answer

Is this kind of notation legal in Objective - C

CLLocationCoordinate2D coord = {latitude: 61.2180556, longitude: -149.9002778}; MKCoordinateSpan span = {latitudeDelta: 0.2, longitudeDelta: 0.2}; MKCoordinateRegion region = {coord, span}; What is this? Curly brackets? Also shouldn't that be…
user4951
  • 32,206
  • 53
  • 172
  • 282
3
votes
1 answer

Internal compiler error: Bus error with LLVM GCC 4.2 compiler

When I am trying to test my application on device with default compiler setting, LLVM GCC 4.2, its giving me "Internal compiler error: Bus error", but it is working OK with GCC 4.2 and LLVM compiler 2.0. What can be the possible reason/reasons for…
itsaboutcode
  • 24,525
  • 45
  • 110
  • 156
3
votes
3 answers

How to recreate a deleted target?

I have deleted my application target and now all my Build option are gone. I cannot run my project because I am missing a target. How can I regenerate it?
Bosoud
  • 158
  • 4
  • 24
3
votes
1 answer

OpenGL ES 2.0 specifying normals for vertex shader

I am not able to get the right shading on all the faces of the cube I drew. I get a smooth transition from one of the face to another face which does not show the edge properly. One a different face (where I get the desired edge), I get the shading…
3
votes
3 answers

JavaDoc-like documentation for Objective-C in Xcode?

Possible Duplicate: How to do the documentation in objective C? Is it possible to write class/method documentation in Objective-C in a way that Xcode 4 displays them in the quick help, and/or generates a doc document from it in the style of…
fzwo
  • 9,842
  • 3
  • 37
  • 57
3
votes
2 answers

Shell Script Invocation Error with Xcode4 when trying to run a shell script as a build step

Here is what I get when I try to build my Xcode…
sorin
  • 161,544
  • 178
  • 535
  • 806
3
votes
2 answers

Is it possible to install Xcode 3 after we have installed Xcode 4?

I have Xcode 4 on my Mac. Is it possible to install Xcode 3 say in directory other than /Developer? Please let me know.
meetpd
  • 9,150
  • 21
  • 71
  • 119
3
votes
5 answers

Where are my targets in Xcode 4?

In Xcode 3, I had a list of targets in the left column. They're not there anymore. There's a list in the Scheme pull-down, but I can't find them anywhere else. Have they changed name to "Schemes"?
nevan king
  • 112,709
  • 45
  • 203
  • 241
3
votes
1 answer

Added Mac target to iOS project in Xcode, now 'Error Starting Executable File'

I've decided to make a Mac OSX port of my iOS app, so based on a number of suggestions I've received I've simply added a new Cocoa target to my iOS project, and set up a series of 'libraries' (which encapsulate the core business logic of my app)…
Jason
  • 14,517
  • 25
  • 92
  • 153
3
votes
1 answer

How to open a new window in a Cocoa application on launch

I have created a cocoa application (not document based) and have the default MyAppDelegate class and the MainMenu nib file. I have also created a new nib which contains a window called Splash and a window controller class (NSWindowController) called…
Cragly
  • 3,554
  • 9
  • 45
  • 59
3
votes
1 answer

iPhone App Update: Ignore backwards compatibility for iOS 3.X (iOS Deployment Target set to 4.0)

Possible Duplicate: Supporting older iOS Versions I plan to drop support for iOS3.X in my next app update (change iOS Deployment Target from 3.0 to 4.0) I was still targeting iOS 3.0, but can't test anymore my XCode project with older SDK (I…
Samuel
  • 5,439
  • 6
  • 31
  • 43
3
votes
0 answers

Playing music from iPod library with no delay

I am trying to play audio files from the iPod library without any delay from calling 'play' to when the actual music starts. I tried using the MPMusicPlayerController, but sometimes there is a delay, even a couple of seconds. I also tried calling…
Gili
  • 203
  • 1
  • 3
  • 6
3
votes
1 answer

Making Xcode 4 obey .gitignore

I've cloned a git hub repository successfully. The folder structure of that repository is as following: root-repository-folder->iOS So I've moved my Xcode 4 project folder into the above folder so the folder structure looks like this then:…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
3
votes
1 answer

How should I add items to a list in Core Data now that xcode 4 changed the generated code?

I have a core data model with a parent item and child items under it. In Xcode 3, when I generated the NSManagedObjects for this, I had methods called addChildsObject object method on Parent, but this has gone away in Xcode 4 (see Xcode4: Different…
Micah Hainline
  • 14,367
  • 9
  • 52
  • 85
3
votes
1 answer

MacRuby HotCocoa $ macrake // error

Even though I can compile and run a simple hotcocoa code by doing , it won't rake auto-generated hotcocoa code. I'm running Mac OS X Lion and XCode for Lion (I'm not even using XCode for hotcocoa, though.) Any solution for this? $ hotcocoa test $ cd…
user292071
  • 81
  • 1
  • 1
  • 3