xcode

xCode refactoring fails - "can't find @implementation for class"

Hi, I'm just starting to refactor my spaghetti code in xcode. I do the following: select my class name in the header file choose Refactor from the menu pick "Create superclass of" from the dropdown type in my superclass name hit Preview Then I get this big ugly error popup: "Can't find @implementation for class 'MyUglyClass'" ... a...

Bundle framework with application in XCode

I am an XCode novice. I am trying to follow these instructions: http://wiki.remobjects.com/wiki/Linking%5FCustom%5FFrameworks%5Ffrom%5Fyour%5FXcode%5FProjects Clearly I am missing something because while I can see that the framework I want has been copied into the app bundle, I can't reference it. When I start the application from...

Generate Method Header and Implementation in xcode

In objective-c/xcode, is there a way to write the definition of a method in the implementation and have automatically added to the header file? ...

Break on EXC_BAD_ACCESS in XCode?

I'm new to iPhone development and XCode in general and have no idea how to begin troubleshooting an EXC_BAD_ACCESS signal. How can I get XCode to break at the exact line that is causing the error? I can't seem to get XCode to stop on the line causing the problem, but I do see the following lines in my debug console: Sun Oct 25 15:...

Building physical simulation (Bullet3d) for iPhone SDK 2.2 leads to different results than in SDK 3.0

We are building a simple rigid body 3D collision application using Bullet3D on the iPhone. When testing it, everything goes fine on the simulator and on the iPhone SDK 3.0. When trying it on the iPhone SDK 2.2 some rigid bodies pass through each other... any idea why? We assume it has to do with (the not verified) fact that Xcode uses g...

Xcode: Build architecture specific per file compiler build settings

Hello, in my iPhone project I am using some inline asm, which is excluded if the target architecture is the device and not the simulator. Since some of the inline asm code is arm only and not thumb I need to specify the c flag -marm when compiling it for the iPhone, since it otherwise trys to compile the code with the thumb instruction...

Xcode and Generate Debug Symbols

Which setting in Project Settings page needs to be set in order for Xcode to generate debug symbols for a project? If I set 'Generate Profiling Code" to checked, as soon as I try to build, I get the error, cc1obj: error: unrecognised debug output level "-full" If not, the other way to do this I thought was by setting the 'OTHER...

xcode code sense color/completion not working

EDIT: This is weird... if I double-click the Recent Projects item for the project in the welcome screen, code sense and coloring works just fine but if I just click Open (bottom right in welcome screen) it doesn't. Opening from File > Recent projects does not work either and neither does double-clicking the .xcodeproj file in Finder. ...

How to copy items from Documents directory to .app directory in iPhone App?

Hi guys! I have created a script that save some files in the Documents directory of my app! Now I need to copy these files in my "application.app" directory... How I can do this?? Thanks to everyone that can help me! :) ...

Replacing Xcode's preprocessor with a custom process

I have a need to look at the files Xcode will compile before the preprocessor gets a stab at them. In short, I need to stick a preprocessor in front of the preprocessor. All the Google searching has netted me nada when it comes to details on how to run the default Xcode build process for C-based files after modifying the build rule for ...

Is it possible to consolidate framework dependencies with XCode?

For example, if I created a framework that put together Ogre3D with RakNet and OIS, and I only wanted to have to distribute my framework for recompilation, is that possible? I tried doing something like that, but I was getting linker errors. That would seem to suggest that you can't do that (and that's fine), but I want to make sure I'm...

What is so great about Visual Studio?

In my admittedly somewhat short time as programmer, I have used many development environments on many platforms. Most notably, Eclipse/Linux, XCode/OSX, CLI/editor/Linux, VisualDSP/Blackfin/Windows and MSVC/Windows. (I used each one for several months) There are neat features in pretty much all of them. But somehow, I just can't find an...

Instrument Crash when running application

I'm frustrated with this problem. It's very weird, sometime when I run my iPhone app in Instrument Tool my app is crashed. But the thing is my app still can run normally in Debug/Run mode. And even worse, this happened in an inconsistent way, It's not crashed all the time, just sometime. I'm using XCode 3.2 (Snow Leopard), iPhoneSDK 3.1...

Objective c library with c interface

Hi everyone, I have run into a problem... I'm trying to use QTKit in an application that we have at work. The only problem with that is the app is written in C++, not Obj-C. I have looked through Apple's documentation for answers, but I haven't found anything useful. Basically what I'm looking to do is write a single controller class i...

What is the maximum length of NSString? Alternative to NSString - iPhone

-(void)connectionDidFinishLoading:(NSURLConnection *)connection { NSString *theXML = [[NSString alloc] initWithBytes: [myWebData mutableBytes] length:[myWebData length] encoding:NSUTF8StringEncoding]; NSLog(@"%@",theXML); [self actualString:theXML extractMyData:@"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelop...

cannot see source code section of xcode debugger

In the XCode debugger, I can only see the disassembly code, I do not see the section for source code. I tried the "source code and disassembly" options in Debugger display. Nothing changes. Can someone please help me with this? If your suggestion is "read more documentation", please don't waste your time or mine. No one is forcing you t...

How to find if NSTimer is active or not?

I have a something like this: NSTimer* timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateCountdown) userInfo:nil ...

XIB File Not Loading Properly In Interface Builder

I was creating a new View-based Application in XCode, adding some outlet and actions, using the IBAction and IBOutlet tags, into the automatically created controller view header file. I then double clicked the 'project_name_ViewController.xib' to launch the interface builder. However the outlets and actions did not appear in interface b...

How to check if a file exists in Documents folder?

Hi guys, I have an application with In-App Purchase, that when the user buy something, download one html file into the Documents folder of my app. Now I must check if this HTML file exists, so if true, load this HTML file, else load my default html page. How I can do that? With NSFileManager i can't get outside of mainBundle.. Thanks ...

xcode clean failed

Both my iPhone projects are sometimes giving a "build failed" error with no explanation of what the error is, and then a "clean failed" when I try to do a clean. I tty emptying the xcode cache but that doesn't seen to help. What normally clears it is re-starting my Mac. However, that has just failed to work. Has anybody else experienced...