Questions tagged [xcode4.3]

Xcode is Apple's integrated development environment (IDE) for Mac OS X and iOS. Xcode 4.3 (4E109) was officially released February 16, 2012. This tag should only be used for questions about this specific version of Xcode itself, and not for general Mac or iPhone OS programming topics. Use [cocoa] for Mac programming questions, or [cocoa-touch] for iOS (formerly iPhone OS) programming questions.

Xcode is Apple's integrated development environment (IDE) for development for its Mac OS X () and iOS (/) platforms. Documentation for Xcode 4.3 can be found in Apple's Highlights Found in Xcode 4.3.

Xcode 4.3 is used to produce software applications for Mac OS X and iOS. Xcode 4.3 (4E109) was officially released February 16, 2012, and Supports OS X 10.7 Lion +.

This tag covers:

  • Project organization
  • Source code editing
  • Build system
  • Unit testing
  • Interface Builder (in Xcode 4 and later only; it is separate in 3 and earlier)

Xcode comes with Apple's Mac OS X and iOS SDKs bundled, but that does not mean questions about the use of those SDKs are questions about the IDE. Consider what changes your question would require if you were using vi to edit and make to build; if your question would remain unchanged, then it is not an Xcode question, so you should not give your question the tag. Use the (Mac) and/or (iOS) tags instead.

See for more information.

1056 questions
1393
votes
42 answers

How to create a .gitignore file

I need to add some rules to my .gitignore file. However, I can't find it in my project folder. Isn't it created automatically by Xcode? If not, what command allows me to create one?
Luca
  • 20,399
  • 18
  • 49
  • 70
347
votes
42 answers

library not found for -lPods

I got an error when archiving a project. This is my environment. Mac OS Lion Xcode 4.3.1 iOS SDK 5.1 The project deployment target is: IPHONEOS_DEPLOYMENT_TARGET 3.2 The error shows: ld: library not found for -lPods clang: error: linker command…
angelokh
  • 9,426
  • 9
  • 69
  • 139
110
votes
14 answers

Can I disable autolayout for a specific subview at runtime?

I have a view that needs to have its frame manipulated programmatically - it's a kind of document view that wraps to its content which is then scrolled and zoomed around a superview by manipulating the frame origin. Autolayout fights with this at…
terriblememory
  • 1,712
  • 3
  • 18
  • 25
79
votes
11 answers

sudo: port: command not found

I recently uninstalled Xcode 4.2 and re-installed Xcode 4.3.1. Command Line Tools are installed. I then installed MacPort using “dmg” disk images for Lion from macports.org. Since, I was getting sudo: port: command not found after every use of port,…
Ava
  • 5,783
  • 27
  • 58
  • 86
74
votes
3 answers

How to change the Class Prefix in Xcode 4?

When creating a project in Xcode 4, it asks what Class prefix to add to all new files. Is there a way to change (or remove) this, after a project is already started?
TigerCoding
  • 8,710
  • 10
  • 47
  • 72
62
votes
17 answers

Unable to get MacPort functionality after installing Xcode 4.3

I am having trouble getting MacPorts to function properly. I just installed OSX Lion 10.7.3 I downloaded and installed MacPorts first, and then after reading the requirements, I downloaded Xcode4.3 from the App Store, and then installed it. I…
Jason
  • 1,307
  • 1
  • 12
  • 11
61
votes
10 answers

Error during Xcode Component Installation

I just installed a software update that I was prompted for, presumably affecting Xcode. Now when I start Xcode, I am presented with a dialog box which states that Xcode must install the Mobile Device Framework before continuing. When I try to do…
Peter Jacobs
  • 1,657
  • 2
  • 13
  • 29
55
votes
10 answers

Code signing is required for product type 'Application' in SDK 'iOS5.1'

I am using xCode 4.3.1. After i created a project, i build it and tried to Archive. Then i got an error saying; (This is my first project in xCode 4.3.1) CodeSign error: code signing is required for product type 'Application' in SDK…
Illep
  • 16,375
  • 46
  • 171
  • 302
54
votes
20 answers

Xcode compiles my App, but can't run it in the simulator

when i compile my app, Xcode just says "Attaching to Projectname..." and gets stuck there. The debugger just prints this out: error: failed to attach to process ID 0 I tried to clean & build again and it still doesn't work out. I googled but…
larsschwegmann
  • 725
  • 1
  • 6
  • 14
47
votes
13 answers

lexical or preprocessor issue file not found occurs while archiving?

I am new to this iPhone development and i have almost completed my first application but when i try for creating an archive it gives an error lexical or preprocessed issue file not found But it runs fine in simulator and also has also tested on…
rahul raj
  • 597
  • 1
  • 4
  • 15
46
votes
5 answers

lldb fails to print variable values with "error: reference to 'id' is ambiguous"

Since I updated to xcode 4.3 and let it switch my debugger over to lldb, any request to print a member variable fails with this error message: (lldb) print request error: error: reference to 'id' is ambiguous note: candidate found by name lookup is…
JosephH
  • 37,173
  • 19
  • 130
  • 154
44
votes
4 answers

Detect Focus Change for UITextField

I'm trying to set the animation for the view to move up when keyboard is hiding and appearing for the text fields and I got it to work perfectly fine, but when the focus moves from one text field to another, it doesn't work since the keyboard was…
Dennis
  • 3,506
  • 5
  • 34
  • 42
39
votes
3 answers

How can I install themes on XCode 4.3.2?

How can I install this theme http://simplyhacking.com/spacedust-xcode-theme-for-xcode-4.html on XCode 4.3.2?
Sveta
  • 1,270
  • 3
  • 16
  • 33
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
34
votes
1 answer

"UIViewController subclass" does not appear in file template library for xcode 4.3

I am fairly new to XCODE development currently following several tutorials. Bumped into an unexpected problem - looking for help! The problem is that the "UIViewController subclass" does not appear in the file template library. My book and every…
Shin
  • 363
  • 1
  • 3
  • 7
1
2 3
70 71