xcode

XCode Debugger Console doesn't display anything

Hello I'm developping iPhone applications for a while with xcode. But since this morning, my debugger console doesn't display anything anymore. I've reinstalled XCode. But nothing. Has someone had a similar problem? What can i do to repair it? Thanks for your help ...

status bar disappear when MFMailComposeViewController is loaded

Hi, When the MFMailComposeViewController modal view is loaded, the status bar disappeared. It doesn't appear again anymore if I navigate back to other view controllers. So after MFMailComposeViewController is loaded, the apps end up with no status bar. Is there any way to fix it? ...

xcode 3.2.3 missing class actions

Hi, i'm trying to connect a button to an action with xcode 3.2.3. I've done this procedure hundreds of times but now, sometime, xcode don't show class actions and i can't complete the ctrl-drag link. In this specific case, i've this data structure: @interface Parent: UIViewController{ } -(IBACTION)action1 @end @interface Child:Parent{ ...

Icon is not changed after update of an app

Hello, I have created a new version of iPhone app. I wanted to change the icon, so: I added the icons in different sized to the Resources folder of my Project in XCode: I specified the icon files in the info.plist file: in iTunes Connect I added new version of my app and replace the old icon with the new one. The new icon is...

Missing Frameworks iOS 4.0

Hello, I've just updated xcode to release 4.0. A lot of the frameworks in my App are now highlighted in red, they appear to be missing. i.e. MapKit.framework Is 4.0 not backward compatible with 3.1.3 ? Regards, Stephen ...

Xcode crashes whenever I try and Refactor

I get the following internal error message whenever I try and Refactor: File: /SourceCache/DevToolsIDE/DevToolsIDE-1708/pbxinterface/Snapshots/XCDirectorySnapshotSyncOperation.m Line: 137 Object: <XCDirectorySnapshotSyncOperation:0x201d51560> Method: _setErrorMessage: Assertion failed: nil == _errorMessage I have tried ...

display text in uiwebview in iphone

I want to display data which is text data , in the uiwebview can some one guide how to do the same. ...

How to automate XCode project alterations?

I have a tedious task that I need to repeat every time I build my iPhone project for sending to non-programmer colleagues: all libraries and headers that I reference outside the project's folder need to be copied into the project folder or a subfolder thereof, so I can zip up the source and pass it on. I'm aware that you can automate XC...

Xcode svn+ssh custom port not working?

So we used to use port 22 for our svn repository, but port 22 was recently closed by the firewall administrator, which forced us to use a different port. Anyway, it seems like Xcode doesn't play very well with custom port numbers, because as soon as you change the port number to anything, even 22, you get the following error message: ...

Programmatically determine active configuration

Is there a way to determine the active configuration (that means Debug or Release) in code? Something along the lines of #ifdef XCodeConfigurationDebug ... #endif #ifdef XCodeConfigurationRelease ... #endif I know that it's possible to do this by adding custom compiler flags. However, I'm looking for a more global s...

Sha256 in Objective-C for iPhone

Hi, when i use this code to create a sha256 of a string unsigned char hashedChars[32]; NSString *inputString; inputString = [NSString stringWithFormat:@"hello"]; NSData * inputData = [inputString dataUsingEncoding:NSUTF8StringEncoding]; CC_SHA256(inputData.bytes, inputData.length, hashedChars); it returns the hash correctly, but i nee...

XCode can't find GCC

After i updated iPhone SDK to 4.1 I can no longer compile neither for Simulator or Device. I get the following message: error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory) Solution for this? ...

Invalid Entitlements iOS SDK 4.1

Ever since upgrading to the 4.1 SDK my Entitlements are no longer valid when users try to install the Ad-Hoc builds. We originally had this issue a long time ago and and solved it by adding to the project an Entitlements.plist file with a get-task-allow = false key. I don't think I've changed anything in the project configuration excep...

Problem with app on device

When I run my app with simulator every thing is ok.also when i run it on device (ipod touch 3G) for the first time,i have no problem but if i close my app and run it again,it hangs(no button working & just i can uninstall it) and if i try to minimize it ios seems out of action(every thing is being black) how can i solve this problem ? ...

how to animate + symbol to disappear on table cell

i have an table view and + symbol is on the every cell of table view ,i should able to see disappearing + symbol by animating whenever i selected the cell ...

In xcode, can I make random() or arc4random choose from a set?

Suppose I have a list of numbers, ie. (240, 320, 640, 920) and I want to select one of these four numbers at random. Can I do this with random or arc4random? ...

create empty NSDate object

Is this ok? NSDate *myDate; Because I used something like this before: NSDate *myDate = [[NSDate alloc] init]; if (something) myDate = thisDate; else myDate = thatDate; [myFunction initWithDate:myDate]; I always got "Value stored to 'myDate' during its initialization is never read". If I do something like this if (some...

iPad problems with view rotation

Hello all, So I am presenting a full screen modal view when the user selects an item from a popover containing a table. The problem is when the modal view is displayed and the iPad is rotated, the status bar spins, but the view stays in whatever orientation it was in before. It looks very strange. Because I am presenting it from a pop...

Xcode vs. static library vs. armv6

I have a home-rolled static library to which I link my iPhone app. Works great in Debug mode for Simulator, armv7 (iPhone 4), and even in my unit test app in OS X (GHUnit). However, when I try to run debug my app on my iPhone 3G with iOS 3.0, no dice. The app dies in runtime when it tries to access my library classes. Both the app & lib...

iPad popover view rotation

Hello all, So I have a popover being presented from a barbutton. However I am having some rotation issues when a modal view is being displayed over it. The view inside the popover is not rotating properly. I have all of the delegates set to yes, so it should automatically handle this. This is only happening when that modal view is b...