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
186
votes
12 answers

Xcode 4: create IPA file instead of .xcarchive

In Xcode 3.2.5 I use "Build And Archive" to create an IPA file. In Xcode 4 you can use "Product -> Archive" to archive an application in an .xcarchive bundle. How can I create an .ipa file with Xcode 4?
Manni
  • 11,108
  • 15
  • 49
  • 67
185
votes
3 answers

How to disable word-wrap in Xcode 4 editor?

I can't find how to disable word-wrap in Xcode 4 editor. How can I do it?
eonil
  • 83,476
  • 81
  • 317
  • 516
178
votes
40 answers

The identity used to sign the executable is no longer valid

I have an application that I am debugging on iPad. 2 days ago I wanted to debug a same updated application but I am having this error. The identity used to sign the executable is no longer valid. Please verify that your device’s clock is…
Hayk Melkonyan
  • 2,110
  • 4
  • 16
  • 22
170
votes
5 answers

Archiving project in Xcode incorrectly creates multi-application bundle

Archiving my project in Xcode is creating a multi-application bundle, instead of bundling my main target for release, which is what I want. Specifically, when I validate my archive in Organizer, it gives me the message: "[projectname] does not…
Jared Friedman
  • 4,379
  • 3
  • 18
  • 9
166
votes
21 answers

Missing file warnings showing up after upgrade to Xcode 4

I recently upgraded to Xcode 4 (which is a great upgrade) but now I'm getting some warnings that I did not get before. I have looked through forums and other SO posts but have not come across how to fix this. The warnings I get are project level…
Scott
  • 16,711
  • 14
  • 75
  • 120
160
votes
1 answer

Xcode 4.2 - declaration of '...' will not be visible outside of this function warning

I use Apple Reachability class from Apple Sample code Reachability in Xcode 4.2 and new Apple 3.0 compiler I get warning in this class that + (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress; declaration of 'struct…
Sergnsk
  • 3,305
  • 3
  • 23
  • 28
157
votes
5 answers

What is the way to quick-switch between tabs in Xcode 4

I have opened many tabs while working on project. (new feature in Xcode 4). But for switching from one tab to other tab, the only way I've found to do this is to use the mouse. Is there any way to switch between different tabs using keyboard…
sagarkothari
  • 24,520
  • 50
  • 165
  • 235
155
votes
22 answers

Xcode duplicate line

There is a Duplicate command in the Edit Menu (with a default shortcut of ⌘D), but it is (as Halley pointed out) meant for duplication in the Interface Builder part of Xcode. So, how do you (easily) duplicate a line in Xcode 4? Related question…
Blaz
  • 3,548
  • 5
  • 26
  • 40
144
votes
25 answers

Archives not showing up in Organizer for Xcode 4

I'm trying to create an IPA in Xcode 4, much like the person who asked this question: Xcode 4: create IPA file instead of .xcarchive So--I got my Archive completing successfully--supposedly. It dumps .xcarchive files for the project in its…
Ralph B
  • 1,703
  • 2
  • 11
  • 13
137
votes
3 answers

Difference between framework and static library in xcode4, and how to call them

I am quite new to xcode and objective-c. I want to ask a very basic question. I saw that when "linking binary to libraries" in project settings, there are differences about framework and libraries, imported from other projects in workspace. First…
Leonardo
  • 9,607
  • 17
  • 49
  • 89
130
votes
5 answers

How can I change the company name in the copyright template in Xcode 4?

Does anyone know how to change copyright in the templates for Xcode? That is, at the top of a new file it writes: // Copyright 2011 {Company Name}. All rights reserved. In previous Xcode versions you could change it by running the following…
woot586
  • 3,906
  • 10
  • 32
  • 40
128
votes
17 answers

Xcode 4 - slow performance

I have an issue with Xcode 4 really responding very slowly to user interactions, e.g. editing code, scrolling areas etc. This particularly happens with larger scale projects with many controllers/view files etc. I completely wiped the hard disk and…
Kzrbill
  • 1,449
  • 2
  • 10
  • 10
119
votes
9 answers

Renaming xcode 4 project and the actual folder

I know how to rename the project in Xcode 4, but how do you rename the source folder? The thing is that renaming the project in Xcode, does only rename within Xcode (Though it is progress compared to previous) - but why Xcode is not renaming the…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
117
votes
3 answers

Is there a way to rename an Xcode 4 scheme?

I've been looking all over Xcode for this, but I can't find any place that allows you to rename an existing scheme in Xcode 4. Is this even possible?
Karl
  • 14,434
  • 9
  • 44
  • 61
116
votes
18 answers

symbol(s) not found for architecture i386

When trying to compile with Xcode, I am getting the following error: **Ld /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator/iKosher.app/iKosher normal i386 cd…
Doz
  • 7,009
  • 12
  • 61
  • 69