xcode

Putting my iPhone app on my phone to test?

Hi All, How do I take my working iPhone app and put it on my phone to test with? I dont seem to see how and my googleing doesn't turn up what I think I am looking for... I am a registered developer and have paid my $99 already. Would anyone know? ...

What does the error File type mismatch (~) mean?

After upgrading to a newer version of Xcode, when I build my project I get and error: File type mismatch (~), OutputModelPrefs.nib. I have tried Googling and the Apple Developer Forum but I can't find out exactly what the problem is. Can anyone shed any light on what the problem might be? ...

Trouble decoding with NSKeyedUnarchiver

Hi, I am writing an app targeted at iOS 4.0 on XCode 3.2.3 where I store some data when the app closes using NSCoder protocol. Saving seems to work fine, the problem is retrieving the data from the saved files. My save method looks like this: -(void)saveMusicalWorksToMemory{ // create the save paths NSArray *paths = NSSearchPat...

Getters / Setters / Assigning one object to another

I have a class called Chair. I have a view controller that contains an object of type Chair. At some point, I am trying to assign my viewcontrollers instance to another instance of a Chair object as such: [viewcontroller setChair: thisChair]; My setter looks as such: - (void) setChair:(Chair *)thisEntryChair; { myVCChair = ...

How to get iOS 4 work with Mac OS X 10.5.8

I am not able to test my apps on my iPhone 3GS that runs iOS 4 with Xcode 3.1.4. I can't install Xcode 3.2 because it appears it needs Mac OS X 10.6 and above. What are my options here then, because I don't want to pay for OS X 10.6. Is it possible to just have an upgrade? If this is totally binding, is it possible to downgrade my...

fopen and open produce files with different file permissions

These two code snippets produce files with different file-permissions. Example 1 creates the expected default file-permissions but Example 2 does not. What's the explanation for this? OS: Mac OS X version: 10.6.4 Xcode version: 3.2.2, 64 bit // Example 1 FILE *fh1 = fopen("Test1.txt", "w+x"); if (fh1) { fwrite("TEST1", 1, 5, fh...

How can I show the keyboard when I start editing my email text field?

I want to show the keyboard when I start editing a text field.,i am having an email field in my view so that i want to show up key board when i begin editing it... ...

XCode fails to deploy iPhone app to iPhone 3GS

Hey everybody. So I built my iPhone app and it runs fine in the simulator so I wanted to deploy it to my iPhone for one last testing round before I go into open beta testing wiht my distribution profile. I did this numerous times already and it has never been a problem. However since the last test run I upgraded both my iPhone (iOS 4) a...

Frameworks are 'red' in Xcode

Hi everybody, I downloaded a project developed by Apple employees ( who taught course at Stanford on iPhone application development). Strangely , the frameworks are red. I tried to locate coreGraphics.framework and UIKit.framework to add them again but i couldnt find them either. Taimur ...

Is there any hook to access the names of the functions being called at runtime in Xcode?

Is there any hook to access the names of the functions being called at runtime in Xcode? I'm just trying to log the names of all the functions that are called during the lifetime of the process. I have the necessary symbols for the application. I can do it easily in Visual Studio using _penter() and _pexit() functions. But can't find a...

How do you test iphone push notification feedback service

Hi guys, I need a way to test Push notification feedback service. I can send the notifications fine. I installed the app using XCode to my dev IPod, sent push notifications just fine, the app received them ok. I uninstalled the app, sent a few push notifications. Then tried the feedback service, but no luck. I do not receive any byte...

Using 3rd Party SDK and Finder doesn't finish compressing the app file. Any idea what's wrong?

I found this 3rd party SDK and I used it in my project. Everything compiles, works great and builds with no warnings... Before I was getting a warning saying that the CodeResources file needs to be a symbolic link...it's gone now but I think that it still has something to do with this problem... As soon as I try to compress the app fil...

Why does this template have an error in Xcode but not Visual Studio?

I am getting an error in Xcode when using templates in C++. Can someone tell me what is wrong? The first version reports an error in Xcode, but not in Visual Studio. // Version 1: Error in Xcode, but not Visual Studio template<typename LengthT, typename VertexT> int MyGraphAlgorithm(...arguments omitted...) { using namespace boost; ...

Problem with dealloc method - 'xmlEntity' is not an Objective-C class name or alias

I am in the process of cleaning my code and testing for bugs, when I came across this build error: ['xmlEntity' is not an Objective-C class name or alias]. Here is a shorten version of my class .h file. @interface PMXMLParser : NSXMLParser { NSMutableDictionary *xmlEntity; NSMutableDictionary *collectionDict; } @p...

Xcode Renaming a Project - Malloc Error

Hi! I have an Xcode project for iPad which works (and compiles) flawlessly. I have been requested by my client to rename the project. Within Xcode, I selected Project > Rename and proceeded to recompile the project. Compilation goes through without errors, but when I try to test it on devices, the application fails to launch and dies w...

Dereference of null pointer, but I am not using pointers

Hello, I did the "Build and analyze" in xCode and get "Dereference of null pointer" when setting a normal int to 0 in my init-method. I noted in my code below for which row I get the message. I'm developing for iPhone. Bric.m #import "Bric.h" @implementation Bric - (id)initWithImage:(UIImage *)img:(NSString*)clr{ if (self = [su...

Receiver in expresseion is a garbage value

Hello, I am developing an iPhone app and are using xCode to do "Build and analyze". I get the message "Receiver in expresseion is a garbage value" pointing to the line of the return-row in my bode below: -(UIColor*)getLevelColor{ UIColor* tempCol; if (level==4) { tempCol= [[UIColor alloc] initWithRed:0.39f green:0.82f blue:0.32f ...

Problem to localize images for iPhone in xcode 3.2.3

Hi all Friday afternoon and all but hope that different timezones will help me with this... I have four files that I have localized in my project. Localizable.strings InfoPlist.strings AppData.plist AppImage.png For these files I have a .lproj folder for spa (Spanish) and por (Portuguese). It works fine with the strings in the a...

Renaming project gives med code signing error

Hello, I just renamed my project and also in the project.pbxproj renamed my product to the new name. Now I am getting codesigning error when trying to debug on the phone. How come and how do I fix this? I have defined the profile to the same as on my phone for "debug"-ing. It works well on the simulator. It didn't work before chang...

XCode view c++ class member in debugger?

Hello, I just can't see c++ class member value while I moved mouse on it. For locally variables it works fine, and off course I can see class member values in Debugger (separated window) but it's not so comfortable. This problem wasn't in xcode 3.0 version... (only >3.0) P.S. I am sure that I am on Debug not Release project. ...