xcode

Openfeint caused this: ISO C++ forbids of declaration 'myClass' with no type

To cut a long story short, my project (an iPhone app) was all working fine until I started using a C++ sdk (openfeint). Everything was working fine, including the C+++ Openfeint stuff, until I switched from tesitng on the device to testing in the simulator. Now it won't compile for anything and I'm getting just under 200 errors. It's a...

How does Xcode know where to look for a framework?

Example: I import a framework like this: #import <Cocoa/Cocoa.h> Now what's that "Cocoa/Cocoa.h" path? I mean... from where does Xcode start looking? Where is this configured? And is that actually a path or something? What's "Cocoa/Cocoa.h" really? A namespace and a framework in there? Or what else? ...

What's the difference between these imports?

For example, sometimes there's an import like this: #import <Cocoa/Cocoa.h> and sometimes the import looks like this: #import "Foo.h" Now what's the difference there? The first is in < > tag things, and the second is in doublequotes. What does the first do? Is that used for pre-compiled files like frameworks which are compiled alre...

Does updated provisioning file require new build?

If I add someone to my adhoc provisioning file, can I just send them the last build and provisioning file? Or do I need to do another build with the updated provisioning file? ...

Xcode with fortran

Hi. I'm trying to compile some fortran files in Xcode, using a makefile made by me. The problem is that Xcode can't find gfortran compiler. I have it, because if I go to console and try to compile from there it works well. Do you know how to add fortran compiler to Xcode. Thanks in advance ...

Hide or remove a tab in tab based application in Xcode

Hi Guys, I am very new to iPhone and Xcode. I am trying to create a tab-based application, in that from the first page, when a button is clicked, I need to remove/hide some of the tabs added in the tab bar. Can any one help me out please. Thanks and Regards, Bala. ...

Does release code flow differently from debug?

When I run this code in device release mode, it pulls a "SIGABRT" on the "[mapView setRegion:region animated:TRUE];" line. However, I don't get the problem in either debug or simulator mode. I'm a novice in xcode. What am I doing wrong? - (void)initUI { // add a map view in available area startupPage = [[CSNet alloc] init]; positio...

Automated Interface testing on iPhone

I like using the UI Recorder in Xcode for testing a UI in the simulator. However, that I know of, UI Recorder doesn't work on the device. Is there a similar tool for automating UI testing on the device? ...

Xcode build & debug strange behaviour?

There is probably a really simple answer for this ... I have a project where I have a single active break point set in the program.m. My problem is that when I hit "build & Debug" both the editor in the main view and the editor in the debugger immediately drop into the code for one of apples .h files. I copied the code into a new projec...

Codesign only succeeds after other xcode iphone project is successfully signed

Hey guys, I have a weird issue. Codesign refuses to sign this big project I have, project A, but does signs the other, project B. However, when I have signed project B, it also can sign project A all of a sudden. I am 100% certain I didn't change anything else. The steps I took were: Try to build, sign A - fails on signing Try to build...

How to deal with mutil-cross static library in one iPhone project

Hi folks, I got a prob that, I have a base static library "Base", then other 2 libs("A" & "B") depend on it. So then I have a project "P", I add the 3 libs to "P", I get an error: ld: duplicate symbol .objc_category_name_NSObject_IMIBase in /Users/Travis/Documents/Home/IMI/IMIKit/build/Debug-iphonesimulator/libIMIUI-iphonesimulator.a(...

Copying files in Xcode

I've created some files in Xcode. Now I want to copy some of them. How should I do that? Currently, I copy them in Finder & copy those back into Xcode in order to work on them. There must be a better way. ...

Beginner: Setting up Subversion externals

I believe svn externals is what I want to use but would like some clarification on setting it up. I've never done so. My environment is: Mac 10.6.2 Xcode Cornerstone Subversion 10.6 (file based/single developer) Single repository My svn folder structure is: \projects\projectA \projects\projectB \projects\projectC \projects\projectX...

Using OCUnit in Xcode for iPhone projects?

After configuring my iPhone app for unit testing, I belatedly noticed this warning in the documentation: iPhone OS Unit Testing Support: Unit tests are not supported for iPhone applications. As some of the other Xcode documentation regarding unit testing is out of date...is this still the case? ...

NS_INLINE and Xcode debugger

Single stepping through code that uses any of the NS_INLINE functions from NSGeometry.h causes the debugger to lose sync with the current instruction pointer, making debugging the routines very difficult. I've tried #undef NS_INLINE at the top of my implementation file,#define NS_INLINE in the precompiled header, looking for pragmas, co...

how can i select something in an uiwebview with code ?

hello ! can someone tell me how i can select something in an uiwebview with code ? ...

Copy Localizable.Strings from one project to another

I need to copy the Localizable.Strings files/folders from one Xcode project to another. I'm having difficulty seeing how to do it. I'd prefer not to have to re-create and then copy the content, but at the moment I can't find another way. Importing the folders with Add Existing or Drag and Drop from two Xcode windows doesn't seem to do it...

When installing app from the Xcode for debug purpose it's run over another app in the device

Hi, When i'm installing an app from Xcode for debug purpose on the device it's run over another app that I developed in the device (that been download from the appStore). also it's happen vice versa, any ideas??? thanks. ...

Xcode cannnot find my plist file when building

I'm trying to build my app and every time I do I get this error: error: The file "Wallpapers-Info.plist" does not exist. Anyone know what causes this error? I have the wallpaper-info.plist file in my resources directory. G-Man ...

Design suggestions for an iPhone app for photo commenting.

Hi all, I am trying to create a iPhone app that allows the users to upload a image and allows other users in the same group to share their views on that image. I have successfully implemented the upload and download of the images using a .NET web service(xml parsing of the NSData obtained from NSRequest) . The next step is to create us...