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.
xcode4.3
1,054
questions
1403
votes
42
answers
1.9m
views
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?
348
votes
42
answers
191k
views
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 ...
110
votes
14
answers
89k
views
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 ...
79
votes
11
answers
216k
views
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: ...
74
votes
3
answers
22k
views
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?
62
votes
17
answers
58k
views
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 ...
61
votes
10
answers
32k
views
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 ...
55
votes
10
answers
110k
views
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 ...
54
votes
20
answers
27k
views
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 ...
47
votes
13
answers
118k
views
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 ...
46
votes
5
answers
19k
views
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 ...
44
votes
4
answers
71k
views
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 ...
40
votes
3
answers
28k
views
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?
34
votes
1
answer
46k
views
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 ...
34
votes
1
answer
23k
views
"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 ...
30
votes
2
answers
12k
views
How can I fix NSInvalidUnarchiveOperationException
* Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '* -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (NSLayoutConstraint)'
I have a ...
30
votes
5
answers
23k
views
Xcode 4.3 - error: no identities were available
Please, help me.
I would like to put an App in the IOS App Store but always receive this error message (Xcode4.3)
"No identities are available for signing"
Connect to IOS Center, Xcode can obtain ...
29
votes
3
answers
4k
views
iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device
When I compile my app in Xcode 4.3.1 with iOS 5.1, I notice there is a strange behavior with background textures only on actual device. There is a 1px gap in between texture tiles shown in screenshot ...
26
votes
6
answers
27k
views
Can't drag outlets from Storyboard to Assistant editor in XCode
I used to be able to do this in XCode, and now suddenly I can't in a new project I've opened that was sent over by a friend.
Is there a particular setting I have to change to start this again?
I.e. ...
25
votes
7
answers
92k
views
iOS: Keep application running in background
How do I keep my application running in the background?
Would I have to jailbreak my iPhone to do this? I just need this app to check something from the internet every set interval and notify when ...
25
votes
14
answers
18k
views
Code Sign error: Certificate identity 'iPhone Developer: My Name (xxx)' appears more than once in the keychain
I m stuck with this error:
Code Sign error: Certificate identity 'iPhone Developer: My Name (xxx)' appears more than once in the keychain. The codesign tool requires there only be one.
I try to ...
25
votes
3
answers
21k
views
EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
I really can't figure out why I have this bug.
First of all the debugger stop at machine code
The thread also shows nothing. The program stop at no code actually
So it has something to do with ...
24
votes
3
answers
38k
views
Get UIWebView content's Height
I have a uiwebview that loads data using the loadHtmlString function.The thing is i am loading the data from an sqlite database, each time i load a different string with different length and naturally ...
24
votes
1
answer
13k
views
Normal casting vs bridge casting in Objective - C
What is the different between,
(CFDataRef) data
&
(__bridge CFDataRef) data
Xcode asked me to change it to bridge. Is that because of ARC?
23
votes
6
answers
12k
views
Xcode 4.3 : missing icons for iOS apps in Organizer's archives
Since upgrading to Xcode 4.3.x, my archives of iOS app in Organizer don't have an icon. (I have icons on my Mac OS X apps though)
One app in particular is an iPad app for which i provided 2 icons (...
22
votes
2
answers
7k
views
Where did Instruments go in Xcode 4.3?
I have just updated from 4.2 to Xcode 4.3 and "Instruments" is no longer there.
I tried to run it from Launchpad but was informed that this is not possible because Instruments is in the trash bin.
...
21
votes
4
answers
4k
views
lldb strange error
I am using xCode 4.3.1 and as soon I want to use lldb, I hardly get any debug information but get the following result instead, po-ing on a simple NSMutableDictionary property:
(lldb) po ...
20
votes
5
answers
13k
views
Git ignore file for Xcode 4 projects
Which files are better to ignore in git for an Xcode 4(.3.2)? This older question addresses the same issue but I find my structure to be different so I assume it's about an older version of Xcode.
18
votes
4
answers
18k
views
Uninstalling Xcode 4.3
I have Xcode 4.3 installed on Mac OS Lion, but I can't find a way to uninstall it. Any ideas?
I have no
/Xcode4/Library/uninstall-devtools (can't find an Xcode4 folder) or
/Developer/Library/...
18
votes
3
answers
16k
views
How add Framework to project on Xcode 4.3.2 [duplicate]
How i can add a framework to XCode 4.3.2 project ?
Because a SDK directories inside a XCode.app and i can't add a framework by "Add files to ..."
Updated:
For this action you can do a this steps:
...
17
votes
3
answers
28k
views
How to solve CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]?
I have an error where it crash the application when it is starting up.
This is the error that i got:
*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position ...
16
votes
1
answer
3k
views
After Upgrading from Xcode 4.2 to Xcode 4.3, instruments command line fails
After upgrading from Xcode 4.2 to Xcode 4.3, the instruments command line tool fails with the following error:
Error: No developer directory found at /Developer. Run
/usr/bin/xcode-select to ...
16
votes
2
answers
53k
views
How to create Navigation bar with back button on it?
I am very new to iOS App Development.
In my app I am trying to navigate from second view to first view using navigation bar back button, but while drag and drop the navigation bar in the view I am ...
16
votes
4
answers
7k
views
Attributes Inspector: how to use "Stretching"
What are the numbers in the Stretching box in the View sub-box Interface Builder's Attributes Inspector?
(as a side question - I suppose a respectable company such as Apple would have actually ...
14
votes
7
answers
14k
views
iPhone app not starting on simulator, no errors
I'm having a problem where my (simple) iOS app builds fine, says running but on the simulator I just get a blank screen. In xCode, it still says "Running XXXX on iPhone 5.0 Simulator" but also give a "...
14
votes
13
answers
7k
views
XCode 4.3 organizer crash
I've installed the XCode 4.3. I've seen that in preferences general tab, there is the "iOS device discovery" tab. Maybe it was there before too, but I just noticed now.
So I've checked it, after this ...
13
votes
4
answers
3k
views
how to know which xib file uses the image?
While running my project, I've got this error message.
Could not load the "bs_back_light.png" image referenced from a nib in the bundle with identifier "com.xxxxxxx.new"
I don't use the image file ...
12
votes
3
answers
9k
views
Split UIImage in half?
How would I go about splitting a UIImage In half(down the middle) so it would make two images?
12
votes
7
answers
5k
views
Show a preloaded search results?
I have a non-tableview view with a searchbar in it, and while it works perfectly, the search display controller hides the table view and overlays a dark dimmed view when an empty string is in the ...
12
votes
5
answers
27k
views
Good iPad SplitViewController tutorial? [closed]
I'm new to iOS development and am trying to learn how to use the iPad's splitViewController.
I've seen a couple of tutorials online but they all start with the master-detail template.
Can someone ...
12
votes
2
answers
17k
views
Xcode 4.3.2 bypass code signing
I'm using Xcode 4.3.2 to compile Cydia Applications.
4.1 has a simple way to allow un-signed Applications to build (plist edit), however, in 4.3.2, it does not share the same simplicity of editing a ...
11
votes
6
answers
10k
views
XCode 4.3.1 iPad simulator
Does anybody know why home button is missing for iPad simulator only?
11
votes
3
answers
7k
views
Putting existing project under source control in Xcode 4.3.2
I was looking for a way to put my existing project under source control, and I looked at this question, but it looks like that solution only worked with Xcode 4.0 because I can't find a way to do what ...
11
votes
1
answer
23k
views
Where is "Developer" folder?
I want to learn how to develop for iOS devices, but I don't have a Mac, so I virtualise OS X with VMWare.
I'm just beginning in Objective-C, so I just made a simple view with a button. I built my ...
11
votes
6
answers
10k
views
Xcode 4.3.2 and 100% CPU constantly in the idle time
My Xcode started to behave very heavily from yesterday when working on medium size project (around 200 source files). Project compiles correctly and runs in both simulator and device. I do not use any ...
10
votes
7
answers
14k
views
"The application does not have a valid signature" Xcode 4.3
I'm getting the weirdest error today.
"The application does not have a valid signature"
I get this error when I try to run the application from Xcode 4.3 on my device. Also when I archive it ...
10
votes
2
answers
6k
views
XCode 4.3 fonts and colors export
I have created a fonts and colors theme for code editing in XCode 4.3 on my laptop that I am particularly happy with, and I would like to export this and then re-import it onto my desktop.
Since ...
10
votes
3
answers
9k
views
Xcode 4.3 and iPhone Simulator 4.2
Is there a way to install iPhone Simulator 4.2 in Xcode 4.3 for Lion?
I only can find how to install it in Xcode 4.2, but not Xcode 4.3 for Lion.
10
votes
2
answers
6k
views
Accessing property in the prepareForSegue of a UIViewController
I am relatively new to Objective-C and I am coming from a Java background, thus I find the notion of pointers and not-that-well explained compilation errors quite daunting.
I have a class that ...
10
votes
3
answers
13k
views
There is no IOS certificate with ID xxxxxxxxxx on this team
In Xcode:
Organizer > Devices
then on the left
Library > Provisioning Profiles
Click Refresh in the bottom right - this runs fine
Click Renew on a provision that is soon to expire. I end up ...