xcode

Memory Leak in Dismissing Modal View Controller

In controller named controller1, I am pushing a modal view controller AddConversationViewController *addController = [[AddConversationViewController alloc] initWithNibName:@"AddConversationViewController" bundle:nil]; //addController.delegate = self; UINavigationController *navigationController = [[UINavigationController al...

Upgrading to Xcode 3.2.3 and iPhone SDK 4

Now that this is out of beta I would like to upgrade. I currently have Xcode 3.2.2 installed along the w/ iPhone 3.0 SDKs (3.0, 3.1, 3.1.2, 3.1.3, 3.2). If I install Xcode 3.2.3 and iPhone SDK 4 will I still be able to build against the 3.0 SDKs by simply selecting it from the active SDK list? Thanks! ...

Corelocation Problem

I am developing an application which computes the distance travelled by the user.I am using CLLocationManager class to do so.But i am getting the cached data initially and also the distance variable is increasing at a sudden rate.please help me out ...i have used the follwoing code.... Note:distance is a static var. here - (void)vie...

What does this LLVM 1.5 warning mean? "protocol qualifiers without 'id' is archaic"

I've just tried compiling an iOS project using the the LLVM 1.5 compiler (included in XCode 3.2.3), and I got a lot of new warnings, including several like this: protocol qualifiers without 'id' is archaic For instance, this happens on lines like this: - (id)initWithContext:(NSManagedObjectContext *)context coordinator:(NSP...

[XCode 3.2.3] iPhone simulator doesn't see my NSString category

Hi, I've an application with the following category for NSString: @interface NSDate(ISO8601Parsing) //This method is the one that does all the work. All the others are convenience methods. + (NSDate *)dateWithString:(NSString *)str strictly:(BOOL)strict getRange:(out NSRange *)outRange; + (NSDate *)dateWithString:(NSString *)str st...

OAuth Echo TwitPic — Working with a Twitter client on the iPhone

Hey everyone, I've been trying to get Twitpic to work successfully in uploading a picture through my iPhone app. This has worked fine in the past however now they've changed all their auth code. This is what I've got, and for some reason is just giving me a failure: oAuth = [[OAuth alloc] initWithConsumerKey:twitter_consumer_key andCon...

Warning: The Copy Bundle Resources build phase contains this target's Info.plist file

I've separated a project into two builds and given each of them a plist file. Everything works fine, but I keep getting this build warning: Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'MyApp-Info.plist' I get this when I try to build MyApp. Building for the second target gives the same error (w...

Weird iOS4 XCode framework error

Hey guys, I'm converting a OS3 application to the new iOS4 release. What I did was download the new XCode and the new SDK, and just opened the application. I clicked on the "Build & Run" and I'm getting an error that looks like this for every the Foundation, CoreGraphics and CoreLocation frameworks- warning: in /Developer/Platforms/iPh...

Xcode and/or the iPhone simulator is getting my targets confused

I have an Xcode project with four targets. Two of them are called "Unit Converter" and "Math Reference." I can reproducibly do the following: Clean all targets in Xcode. Reset my simulator. Set the Xcode project to the "Math Reference" target. Build and Debug. RESULT: Math reference program launches in the simulator. When I suspend...

xcode different linker/cflags for device vs simulator on same target?

anyone know if its possible to set cflags/linker flags different for simulator vs device on the same build target in xcode. ...

Show project path in Xcode windows

Is there any way to set a preference in Xcode to show the project's full path in the title bar, or status bar? I work on multiple copies of the same project at the same time, and it's really annoying to try to remember which window is which. Currently I have to check the properties of a file in the project to figure out which one I'm w...

Automatically capture the video with iPHone OS 3.x

Hi, I have just view the iPhone application Touch Cam (http://itunes.apple.com/us/app/touch-cam-video-recording/id337848815?mt=8) which provides the capturing video automatically. There is no api provided for this in iPHone OS 3.x. Is there any hidden API (Undocumented ) is available for this. or how can we start the capturing of vide...

Check if iPhone 4 or not

Hi, I would like to check if the user is using an iPhone 4 or not. How can I do that ? Thanks ! Sebastian ...

Whitespace escape when substituting one bash variable into another variable

I'm having trouble preserving whitespace in a bash script: CURRENT_YEAR=$(date "+%Y") MESSAGE=$(eval echo "$(/usr/libexec/PlistBuddy -c "Print NSHumanReadableCopyright" Info.plist)") /usr/libexec/PlistBuddy -c "Set NSHumanReadableCopyright $MESSAGE" ${CONFIGURATION_BUILD_DIR}/${INFOPLIST_PATH} The relevant section Info.plist: <NSHum...

Syntax error before '^' token

I just upgraded core-plot to the latest version in an application that was already running successful plots. I followed the fairly simple instructions to the letter, however I'm getting 20 syntax errors in UIView.h. It seems that I'm not alone, but nobody has of yet posted a solution to the issue. An example: This code from UIView.h +...

...

    Compiling for iOS 3.1.3, using xcode 3.2.3 (and iOS 4 that came with it)

    I've downloaded the final version (and never installed any beta versions before) of xcode 3.2.3 with sdk 4, and now I can't seem to find a way to compile my app for a 3.1.3 iOS. Does anybody know how can I do that ? ...

    Install AdHoc profil + app on iPhone error (other devices work)

    Hy. I've got an iPhone app (Base SDK 3.1) and the fitting AdHoc profile. I was able to install the profile and the app on multiple devices, but on one device I can't get it installed. When I look at the device with xCode's organizer or the iPhone Config utility, no provisioning profiles are installed. I checked the UDID from the devic...

    Performances obtained when compiling with the LLVM 1.5 compiler in SDK 4 ?

    The question is strictly related to the compilers available in the SDK 4. Are you experiencing improved performances when compiling your applications using the LLVM 1.5 compiler or the LLVM GCC 4.2 compiler (uses GCC as a front-end) with respect to the traditional GCC 4.2 compiler? ...

    Using bengottlieb / Twitter-OAuth-iPhone, running on iPhone device

    Got the source ["bengottlieb / Twitter-OAuth-iPhone"][1] I added the existing folder "Twitter+OAuth" to my project. Fixed Target to include libxml2.dylib and libOAuth.a Fixed Header & Library Search Paths, just like DEMO project did. Building itself is fine. Only showing warnings about MGTwitterEngine's parsing issues. However, when I ...