xcode

Get a file from iPhone

I have a program which creates some files in the application's Documents directory. I need to get those files from the device for debugging. How can I do it? I am looking for a way to not need jailbreaking, partly because I have to figure out which million letter directory to attack, and partly because I will be talking to Cupertino in ...

"Not Writable! - Root.plist" greyed out when building

Hey Was having a play with settings bundles just before in xcode 3.2.3 (sdk 4.0.1), but then I deleted the settings.bundle folder and 'also moved to trash'ed. Now every time I build I have a dialogue "Save before building?" and the root.plist file there, but greyed out and unselectable. I checked the directory where it was claiming t...

app runs as debug, but crashes as release

I have a program which runs fine on the device in Debug configuration, but fails as a Release. Anyone have this experience, and how do I fix it? Thx ...

C99 Compilation Errors using XCode Bundle in Textmate

Howdy! I am trying to load my xcode project into textmate so that I can compile and run using the xcode bundle in textmate. When I compile my project in XCode it works fine, but when I load it up into textmate and I try to compile and run using the XCode bundle I get C99 errors due to my for loop syntax. Has anyone run into this situa...

Why doesn't [obj selectorNotDefined] cause a warning?

I want that something like this: [myObject selectorNotDefined]; will cause a warning. Is there an option to make this happen? To be more specific, when I add this code to my existing project: NSObject *myObject = [[NSObject alloc] init]; [myObject selectorNotDefined]; The compiler will not invoke any warning. If I create a new pr...

Why doesn't this for loop execute?

I have a picker view controller to select a chemical source and possibly a concentration. If the source doesn't have concentrations, it just presents a single picker. It gets populated by an NSDictionary with source type names as keys and a custom model object I made called Chemical that has four properties, two NSString, one float and...

did i must be include images with binary file (xcode)

hello. i finished my project in Xcode and everything in OK. when i tried to upload my app to apple store there are option :Please upload a new binary my question is : did i must be upload mu images i use with a binary file ? because when i select my binary file only itunes accept that. but when i try to upload my binary file with im...

switching between implementation and header files in vi

In Xcode when editing either an implementation or header file there is a shortcut key to quickly switch to its counterpart. Can this be done in vi? ...

How to commit this file to svn?

I'm on a Mac and would like to commit a file to svn but get an error that the parent folder is lock. Description : Directory '/Developer/Projects/myappproject/trunk/targetfolder/myapp.app/.svn' containing working copy admin area is missing Status : 155005 File : subversion/libsvn_wc/lock.c, 947 I run a cleanup from trunk: svn c...

Property changes but I can't figure out who's doing it.

I have a UIViewController (called AdjustViewController) that presents another UIViewController (called SourcePickerViewController) with a UIPickerView modally. I generate instances of the AdjustViewController and they in turn make a SourcePickerViewController. I make an NSDictionary and assign it and an integer to the AdjustViewControl...

Searching all .h and .m files in XCode

How can I search all .h and .m files in a project for a string? ...

How can i go from a mapview to a simple view

I am working on an app in which the starting point is a map and it has a button too. What i want is that if user clicks the button it will take him to another view which just have two or three buttons or other elements. Please provide me with detail answer so that i would be able to do it. Thanks in advance, i would really appreciate i...

Multiple Platform Builds in single Xcode Project

I am using Xcode Version 3.2.3 64 bit on MacOS 10.4.6 (Snow Leopard) with the iPhone SDK 4.0 I want to create a static library which uses Cocoa/Objective C++. This static library needs to be compiled for both the iPhoneOS and for MacOS as its used by both iPhone and MacOS GUI front ends. I have tried to create two targets in the same p...

Random afconvert errors in custom build rule of XCode

Hi I have an iPhone project which heavily uses sound samples and Open AL. Sound samples in it's original form are aifs. For Open AL I need cafs. So to keep things simple I've decided to move conversion procedure into custom build rule of XCode project. There is a brilliant article right about this task http://www.henryflurry.com/news/fil...

My ipad project does not run on a real ipad device

Hello I cannot figure out why it's not working. I run the project on the simulator. It works fine, I test it on the ipad, it does not run. When launch, a black screen appears and it does not even enter the delegate. Please help. Thanks ...

How to rebuild the diagram for a CoreData model

The Xcode 4 preview is still very buggy when dealing with core data models and it has corrupted the diagram representing my model. The model itself still seems fine, but does anyone know a way of getting Xcode (3.2 or 4) to re-generate the diagram layout? ...

Duplicate Symbol XCode duplicate library for same library?

Do you have any idea? Why XCode compilation give this result? ld: duplicate symbol _kJSONDeserializerErrorDomain in /Users/Shared/_BUILDS_/Debug-iphoneos/libLACDLibrary.a(CJSONDeserializer.o) and /Users/Shared/_BUILDS_/Debug-iphoneos/libLACDLibrary.a(CJSONDeserializer.o) ...

iPhone view shows wrong orientation

I'm wrestling with this problem. I need a portrait view and a landscape view for my App. Now when I create 2 buttons that show me a portrait view and a landscape view (forced by shouldAutorotateToInterfaceOrientation) they show up just fine. But when I call the views from within the result code of an imagepicker, the portraitview works j...

Indenting with white spaces, tabs, and how many spaces or the tab width

I know that this is more of a coding style, instead of a one right way of doing things. But, I'm a bit frustrated if I came across different indenting formats. But, I would like to hear the reasons by various people on these issues: Do you use spaces or tabs? Tabs with spaces? Any difference with "Tab insert space", instead of using ...

[NSManagedObject isEqualToString:]: unrecognized selector sent to instance 0x454a590'

Hello, I'm getting the above error and have no idea where its happening. Is there any way to debug it. I've put in some breaks points already buts its not abending its not abending those areas. Code below: -(void)viewDidLoad { if (managedObjectContext == nil) { managedObjectContext = [(NewWorkoutViewC...