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
2 answers

How to change a file path in xcode 4?

I have a project where a couple of files are in red, In XCode 3 I used to click the file Get Info and change the Path, but I have no idea how to do it in the new XCode 4.
Ricardo Sanchez
  • 4,935
  • 11
  • 56
  • 86
3
votes
2 answers

Creating a random fact app

I am helping my friend to develop a random fact app for iPhone which will be specific to certain areas of study. My question is what is the best way to have say 100 or so facts and randomly generate them. I have a working prototype at the moment,…
DKatri
  • 31
  • 2
3
votes
1 answer

Iphone: Zombie Trace Template Not Available in Xcode 4.0 For iOS Device?

How do enable Zombie trace template in XCode 4.0 for an iOS device. When I run it using simulator the Zombie option is displayed but with device it is not.. There is no way to enable it? FYI, I have set the option NSZombieEnabled. Any help is…
Tushar Vengurlekar
  • 7,649
  • 8
  • 33
  • 48
3
votes
1 answer

iOS universal app localization xcode 4. bug?

well, i've just faced with localization problem on my projet and decided to make an experiment to reveal the problem: experiment: create universal iOS application; change the text on main windows from "My Universal iPhone (iPad) App" to "Hello"…
peetonn
  • 2,942
  • 4
  • 32
  • 49
3
votes
1 answer

Making a lite Version in Xcode 4

I am trying to make a lite version to my iPhone App. I followed this tutorial to the dot and copied the target. Everything there went great but when I enter -DLITE_VERSIONinto the LLVM GCC 4.2 - Language setting in the build tab, the define does not…
Yo_Its_Az
  • 2,043
  • 2
  • 18
  • 25
3
votes
1 answer

Code size in Xcode 4

How do I find out the size of each binary module is in Xcode 4? Xcode3 had this info in the main screen, but it seems to be hidden somewhere in XCode4. I'm interested in comparing the effects of different techniques on code size and execution…
mackworth
  • 5,873
  • 2
  • 29
  • 49
3
votes
1 answer

illegal text reloc to non_lazy_ptr error while building in xcode 4 with libav* libraries

I'm trying to build a simple application that uses ffmpeg's libav* libraries in xcode 4 and getting the following error: ld: illegal text reloc to non_lazy_ptr from /ffmpeg/temp/ffmpeg-0.8/builduni/lib/libavcodec.a(ac3.o) in…
Oleg
  • 243
  • 1
  • 4
  • 10
3
votes
1 answer

How to config xCode 4 to compile objective-c++ without adding a '.mm' file

I am trying to describe my problem clearly for you, so it might be a little long, and I really appreciate that if you can read it and provide some suggestion. Thanks. I have a library project, let's call it MyCppLib, which contains some legacy c++…
Tony
  • 1,581
  • 11
  • 24
3
votes
0 answers

Refresh a label in a status item menu

I have a timer that counts down the seconds until an event, their is a label that I put in a status item item that displays that time. It's supposed to change each second. I first did all this in a normal window to make sure it all worked and it…
Elbimio
  • 1,041
  • 2
  • 10
  • 25
3
votes
1 answer

Xcode 4 -- set the path for a group?

If I have a group of files in an Xcode 4 project, can I set a path that corresponds to the group? Things that would be nice: 1) Move all files in the group to the directory at said path 2) Files that are added to the group automatically go to…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
3
votes
1 answer

How to specify arm6 when debugging in iphone4 device with Xcode 4?

Our product uses OpenCV as a library which is only support arm6. In Xcode 3.2, we can specify the active architecture to armv6 so that we can debug & test on iphone4 (which is actually armv7 cpu). Today I upgraded my xcode to 4.0.2, and I found…
tangqiaoboy
  • 1,476
  • 1
  • 15
  • 32
3
votes
1 answer

Why do I have to Delete the DerivedData project folder every time I Run on an iPad

I have an iPad application that reads a whole bunch of pList and .csv files. For some reason, when I build and run the app (Using the Simulator or an iPad) changes made to the csv and plist files are not reflected in the application unless I delete…
Charles
  • 31
  • 1
3
votes
4 answers

Setting up Bullet Physics for iOS in XCode 4

So, I have downloaded the latest Bullet Physics package (2.78) and I have read the "Getting Started" documentation, which even includes an article on setting up a project in XCode from scratch (but not targeted at iOS nor XCode 4, which is what I'm…
Claudia
  • 726
  • 1
  • 6
  • 20
3
votes
1 answer

Font anti-aliasing for labels in Xcode 4

I am editing a xib file in Xcode4 Interface Builder, buttons look OK, but labels are missing anti-aliasing. When I create a new file and add labels, they do look fine. Any ideas? Here is a screenshot (can't post images yet, sorry)…
shpoont
  • 605
  • 6
  • 9
3
votes
2 answers

Run repeating timer when applicationDidEnterBackground

My goal is to run a repeating timer every five seconds if and only if the application is running in the background. I've tried a couple of ideas, but they don't seem to work. Idea 1: Doesn't run even once. -…
drfranks3
  • 667
  • 8
  • 21