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

How do you enable ARC project-wide in Xcode 4.2

I have an iOS app that I want to convert to using ARC. I would just use the migration tool, but it errors out for me consistently during the preview phase. I know I can use the -fobjc-arc compiler directive on a file-by-file basis, but I want to…
Alpinista
  • 3,751
  • 5
  • 35
  • 46
50
votes
2 answers

Xcode 4 "Transferring package" pathologically slow after deleting app

I have noticed that when performing native debugging on Xcode 4 if I have my app installed, then delete the app, then attempt to debug again from Xcode 4, the time it takes to perform the step "Transferring package" is pathologically slow. Has…
Bill
  • 517
  • 3
  • 2
50
votes
3 answers

In Xcode 4 how do I add a remote GitHub repository to an existing local project?

The Git integration in Xcode 4 is very welcome however it seems to be a bit flaky when it comes to dealing with remote repositories. For clarity I'm using OS X version 10.6.7 and Xcode 4.0.2 (4A2002a). If I create a new Xcode 4 Project and accept…
jbjon
  • 1,247
  • 1
  • 14
  • 24
50
votes
17 answers

Xcode4 Linking Problem. File was built for archive which is not the architecture being linked (arm6)

Recently, I switched to Xcode4 and when I compile my project I got following error. ld: warning: ignoring file /Users/myname/Library/Developer/Xcode/DerivedData/appname-hezrgyqimckztgbdlslkavphdclw/Build/Products/Debug-iphoneos/libTapkuLibrary.a,…
Seunghoon
  • 5,632
  • 5
  • 35
  • 41
49
votes
12 answers

Xcode 4 Tips and Tricks for Xcode 3 users

As most of you have probably seen, Xcode 4 has been released officially today. Now I know that plenty of devs out there have been using the preview versions, and it'd be great if people could post any great tips, tricks, or keyboard shortcuts…
Ben Clayton
  • 80,996
  • 26
  • 120
  • 129
47
votes
6 answers

How can I generate UML diagrams from Xcode4

I watched a video with xcode 3, that shows a button "Design" that displays a UML diagram, but I can't find how to do it with xcode 4.
user567
  • 3,712
  • 9
  • 47
  • 80
47
votes
4 answers

Objective C static class variables

I am new to Objective C and am reading a book called "Visual Quickstart Guide: Objective-C" by Steven Holzner, Peachpit Press In Chapter 6: Object Oriented Programming, there is a section called Using Class Variables where he writes: You can create…
Rakka Rage
  • 15,941
  • 8
  • 33
  • 45
47
votes
5 answers

Xcode 4: Run tests from the command line (xcodebuild)?

I've created a brand new iOS project in Xcode 4, and included unit tests. The default app has 2 targets, the main application and the unit test bundle. Using "Product > Test" (Command-U) builds the application, builds the unit test bundle, launches…
Steven Wisener
  • 471
  • 1
  • 5
  • 4
46
votes
4 answers

xcode4: Linker error: Directory not found for option

I'm getting this error for my profile build (debug build was OK). {Directory not found for option '-L../../../Mac/Profile/lib [full path of that directory] Library not found for -lMyLib} When I check the path, the directory exists and the lib file…
akbuildmaster
  • 481
  • 1
  • 4
  • 6
46
votes
6 answers

Xcode 4 plugin development

I've been looking all over the place but I can't find anything. Does anyone know how to create an Xcode 4 plugin?
rid
  • 61,078
  • 31
  • 152
  • 193
46
votes
1 answer

header search path in XCode 4

I want to add a path to the header search path. However in the build settings when I double click on the header search path.. it doesn't pop up a new window where I can type.. What am I doing wrong?
aherlambang
  • 14,290
  • 50
  • 150
  • 253
45
votes
2 answers

Is it possible to open jump bar in xcode without mouse?

Jump Bar is very nice tool for navigating inside your file. Is there any way to open it and navigate there only with keyboard?
yas375
  • 3,940
  • 1
  • 24
  • 33
45
votes
4 answers

Xcode 4 + split screen feature

Xcode 3 had a very good feature of horizontal and vertical split screen wherein you could have worked on multiple files in the same window. xCode 4 has a split screen feature in the Editor but I think there are two things lacking: Inability to…
Raj Pawan Gumdal
  • 7,390
  • 10
  • 60
  • 92
44
votes
7 answers

Xcode custom build configuration causes "library/file not found" for static libraries

I have a workspace with a project which links with the static libraries in another project (which is also in the workspace). It's a problem in Kobold2D I haven't been able to resolve, even though I understand the cause, and I suppose it's similar to…
CodeSmile
  • 64,284
  • 20
  • 132
  • 217
44
votes
1 answer

How can I fix "Freeform Size simulated metrics are not available prior to Xcode 4.2" warnings?

Since a couple of weeks, I've been using XCode 4.2 with projects created with previous XCode 3.x versions. When creating some custom iPad views, I often use the "freeform" attribute of Interface Builder to be able to have views with an arbitrary…
Mick F
  • 7,312
  • 6
  • 51
  • 98