Auto-Increment Build Number in Xcode 4.3
Mar 19th, 2012 by Mojtaba

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.

Code   
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"

Remember to change REPLACE WITH PROJECT FOLDER and REPLACE WITH PROJECT NAME

Apple just released the Xcode 4.2
Oct 12th, 2011 by Mojtaba

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.

Quick Tips (Converting Number To String In Objective-C)
May 14th, 2011 by Mojtaba

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!

 

Code   
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.

Here you can find some useful information about string formats.

Enjoy Coding!

Quick Tips (Uninstalling Xcode)
May 2nd, 2011 by Mojtaba

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

You can’t undo this process be careful

 

iOS 5, Mac OSX Lion, WWDC 2011
Mar 28th, 2011 by Mojtaba

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.

The Loop has chimed in with information that suggests WWDC this year will be a software-only event. No iPhone, iPad or Mac hardware will be introduced

[Via Apple Developers website]

Xcode 4.0.1 is here
Mar 26th, 2011 by Mojtaba

Apple has updated Xcode 4.0.1. It’s largely a bug fix release. Specific changes include:

  • Improved Assistant editor logic when switching among different file types
  • Fixed a bug in “Install Xcode.app” that hangs at 99% complete, never finishing
  • Fixed a bug that prevented indexing of some projects
  • Fixed a bug related to nil settings in the Core Data model editor
  • Fixed a bug that prevented automatic download of iOS documentation
  • Fixed a bug in LLVM GCC 4.2 and LLVM compiler 2.0 for iOS projects
  • Additional bug fixes and stability improvements

Xcode 4 is available via Mac AppStore & Apple’s site.

Developing iPhone App without paying apple $100, iOS 4.0.1
Aug 23rd, 2010 by Mojtaba

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.

iPhone OS 4.0 beta 2
Apr 27th, 2010 by Mojtaba

Here is a video of iPhone running OS 4.0 beta 2.

iPhone 3.1.2 Developers guide [Jailbreakers]
Feb 5th, 2010 by Mojtaba

Once again Alex posted some useful stuff about developing for a jailbroken iPhone. Below you can find it!
dev-3.1.2
Vital stats:

  • iPhone OS 3.1.2
  • Xcode version 3.2.1, 64 bit
  • Mac OSX 10.6.2 Snow Leopard

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 »

Weather Forcast – Expect Heavy sn*wfall..!!
Oct 30th, 2009 by sid

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.. :)


SIDEBAR
»
S
I
D
E
B
A
R
«
Site Policy
© Copyright 2012 cazisoft.com . All right reserved - This website is in not affiliated with Apple Inc. or Cisco · All Trademarks are owned by their respected owners.