It seems that Xcode does not support Auto Increment Build number by default, that’s another reason for me to HATE Xcode.
Anyway, I found that it’s possible to create a build phase script (-HOW?-) and put some script to change the build number on each build. Below you can find the script.
TARGET="$PROJECT_DIR/REPLACE WITH PROJECT FOLDER/REPLACE WITH PROJECT NAME-Info.plist" echo $TARGET if [ ! -f "$TARGET" ]; then echo "missing file $TARGET" exit 1; fi #!/bin/bash buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$TARGET") buildNumber=$(($buildNumber + 1)) /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$TARGET"
Few hours ago Apple updated Xcode to version 4.2. In new version they done several bug fixes along with adding support for iOS 5.0. If you already have the 4.1 version you could update it via Mac AppStore. The size of update will be 1.8GB!
Remember that iOS 5.0 scheduled to release on Oct 14.
In several cases, while developing an application, you have to convert a number (float, integer, double, etc) to a string. You can easily witre down the following codes and the NSString class do the rest for you!
float yournumber = 123.456; NSString* yourstring = [NSString stringWithFormat:@"%f", yournumber];
As you see the above code convert younumber to yourstring using stringWithFormat method of NSString Class.
younumber
yourstring
stringWithFormat
Here you can find some useful information about string formats.
Enjoy Coding!
If you ever want to completely remove “Xcode” from your Mac just open the Terminal and type the following command.
sudo <xcode>/Library/uninstall-devtools --mode=all
<xcode> is the directory where the tools are installed.
So for typical installations the full path is
sudo /Developer/Library/uninstall-devtools --mode=all
Today Apple set dates for WWDC 2011, 6-10 June. As expected, Apple will “unveil the future of iOS and Mac OS X” at developer conference. Apple will also host hundreds of technical sessions and offer code-level assistance from Apple engineers.
The Apple Worldwide Developers Conference (WWDC) showcases the latest innovations and the newest technologies in iOS and Mac OS X. Over 1,000 Apple engineers guide you through five exciting days of in-depth technical sessions and hands-on labs that demonstrate how to harness the incredible power of the world’s most advanced operating systems.
[Via Apple Developers website]
Apple has updated Xcode 4.0.1. It’s largely a bug fix release. Specific changes include:
Xcode 4 is available via Mac AppStore & Apple’s site.
Once again, Alex post an article for users who wants to develop app for their iPhone (iPad, etc) but they don’t want (or they can’t) pay Apple $100!
As usual, we want to be able to click “build and go” in Xcode and get the app we’re working on to load to the phone and start up. Also, we want to be able to debug from within Xcode itself.
Continue reading on alexwhittemore blog.
Here is a video of iPhone running OS 4.0 beta 2.
Once again Alex posted some useful stuff about developing for a jailbroken iPhone. Below you can find it! Vital stats:
Let’s do it.
UPDATE: Corrected a problem with the run script build phase: corrected the directory names for the new version and copied the new phase that doesn’t include “resource_rules.plist.”
The Goal: we want to be able to click “build and go” in Xcode and get the app we’re working on to load to the phone and start up. More than that, we want to be able to DEBUG on the thing!
Abstract: Our methodology is slightly different this time around. This time we’re going to tell Xcode that it doesn’t need to codesign for iPhoneOS targets, then we’re going to tell it don’t codesign for iPhoneOS targets, then we’re going to tell it, well, actually, codesign but do it using our script, not your built in method. Read the rest of this entry »
After a long wait.. finally.. iphone genius george hotz ( better known as GeoHot ) has taken up the challenge to unlock the latest baseband 05.11.07.
He calls this new unlock Blacksn0w.. as of now he is working on it and as soon as there is any update on this, we will post it here..
The wait for BlackSn0w has begun..