xcode

What do the different symbols in the API section of the XCode Documentation mean?

Hi. Looking at the API section on the left side of the XCode Documentation, I've always wondered what the symbols mean? For instance, there's a "K" in a green square, a "T" in an orange square, an "M" in a blue square, etc. Is there a key for these? Thanks! Rashiki ...

Finding memory leaks while running iPhone unit tests.

I know how to do Unit Test on iPhone - the logic tests which run during build phase of the "iPhone Unit Test Bundle". I know how to detect memory leaks using instruments - in XCode, Menu->Run->run with perf tools->Leaks. How do I do both? I want to run the unit tests and detect memory leaks in them. If I try to simply select unit-test ...

Signer not valid error

I've created an ad hoc build of my app and would like another person to install it. I have their device ID (two actually) in the provisioning profile. My certificate is the same for ad hoc and app store provisioning. The certificate is valid in keychain. I've selected the ad hoc profile in Xcode for this build, which is linked to the...

C++ Duplicate Symbol error when defining static class variable in XCode

I have a static class member incremented in the constructor. As per the rules, it is declared in the class and defined outside. This should be totally legal. Any ideas why I'm getting a duplicate symbol error? class Player { private: static int numPlayers; public: Player() { numPlayers++; } }; int Player::numPlayers =...

detecting heartbeat peakpower using iphone sdk?

Hello all, i want to detect heart rate using iphone sdk does someone knows any method for calculating heartbeat rate? ...

Error while executing symbolicatecrash command "Can't exec "/usr/bin/xcode-select": No such file or directory at /usr/bin/symbolicatecrash"

Hi all, My application get crash in apple's testing phase. I have crash log. When I am execute symbolicatecrash command, I get an error Can't exec "/usr/bin/xcode-select": No such file or directory at /usr/bin/symbolicatecrash or some how command get executed then it shows same crash file. My .app & .dSYM files are in same directory....

How to convert a NSString to UTF-8 format string in iphone sdk?

I have localization in my app(english,spanish,italian).The client sent me strings files but some characters are strange how do i correct them? i have figured out that the client used Mac OS Roman encoding how do i convert this to utf-8. for example Nürnberg is converted into N√ºrnberg when client send me now i want to reconvert it. ...

XCode Project Details?

At the top of all the files in a project, it has that comment block with the programmer information and whatnot. How do you change that? I remember setting it once. Somewhere. ...

svn host listed as offline even though I can checkout?

Hi, In Xcode Preferences>SCM I'm getting a "Host Offline" and in the project window I'm getting a SCM offline icon even though I can both list, check, and import to the subversion repository. Did I miss a setting? Thanks, Hua-Ying ...

iPhone app was working, suddenly starts crashing on startup, reinstall fixes, but why?

Here's the situation: -Had a development build of the app we just submitted on my phone, working fine for days (and previous builds worked fine for weeks). -Yesterday, I touched the app icon, the app launches then crashes out (I wasn't connected to my computer at the time, but if I had to guess, it was around or before when applicationD...

SVN+SSH Connection Giving Error 210002, Network Connection Closed Unexpectedly.

OK, I'm having a problem settings up SVN+SSH. I have SVN running on a Linux server and trying to connect from a Mac laptop running Snow Leopard. XCode tries to connect, but gives the message "Error 210002, network connection closed unexpectedly." Nothing online seems to explain. I connect using xcode with HTTP and it works correctly ...

Is it normal for memory warnings to disappear?

Hi, I've had lots of problems getting a simple UIImagePicker working (see my other posts), and I've been getting memory warning notifications after taking a picture and before I even get a chance to dismiss the UIImagePicker Now, however... I've loaded up my app in Xcode today and all is working fine. Can't get the memory warning at al...

Xcode save code folding?

I know it's not directly related to programming, but what better place then stackoverflow right? So code folding is an awesome feature which I love, but does anyone know if there is a way to get Xcode to remember where you have certain sections collapsed whenever you open a file? BTW, I'm coding ruby on rails using git version control...

Provisioning failure in Application Testing Setup

I'm trying to setup application tests to run on my development device but following the steps outlined in Apple's "Development Guide: Unit Testing Applications" (listed here) doesn't seem to be enough. ( After I set the Base SDK to iPhone Device 3.0 and active target to MyAppTesting (Steps 9 & 10 under Application Testing), trying to B...

Linking in Xcode

How do I make Xcode link object files properly? The file containing "main" and all the dependencies compile properly (and I can easily link them in the command line to generate the executable). However, Xcode seems to refuse to do it, resulting in ld errors of "symbol not found". This is what my current setup looks like. All the depend...

Errors when building iPhone app in Xcode

Hi I get this error (and 27 others) when trying to build my application. I'm not sure what has changed to cause this, but i have no clue what the error actually means? This is an example of where i am calling appDelegate = (iTourAppDelegate *)[[UIApplication sharedApplication] delegate]; ".objc_class_name_UIApplication", referenced ...

Padlock icon with iPhone frameworks in Xcode

I'm getting a lot of linker errors (and missing architectures in i386), and I've noticed that my frameworks have got little white padlock items next to them... what does this mean? How can i solve the missing architecture error for UIKit and Foundation? ...

How do I deal with typing nested message calls in ObjC source from only the keyboard?

I think over the last year and a half, while experimenting with Cocoa and Cocoa Touch development, I've been struggling with getting Xcode to support a kind of key macro to handle this specific coding scenario... I frequently find myself not knowing ahead of time how many message dispatches to chain together while typing a new line of c...

xcode update from 3.1.2 to 3.1.4

Hi, does updating xcode from 3.1.2 to 3.1.4 for iPhone development really required approximately 3GB of free space? Here are the steps that I took: 1. download this file iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg 2. uncheck 3.0 SDK and 2.2 SDK (the first checkbox for interface builder, quartz etc can't be unchecked right?) ...

How to repro user's experience?

I've provided a couple of users with an ad hoc copy of my app. They sync fine but the app crashes just after loading. I've tried everything I can think of to repro it and everything always goes just fine for me. I've removed all profiles from my phone and removed them from the library\mobiledevices folder. No matter what I do, the ap...