How to Install PHPUnit on MAC OSX Lion
Apr 30th, 2012 by Mojtaba

First you need to install pear -HOW TO?-

Then run the following commands in Terminal.

Code   
sudo pear config-set auto_discover 1
sudo pear install pear.phpunit.de/PHPUnit
sudo pear install phpunit/PHPUnit_Selenium

The last command is to install Selenium packages for PHPUnit. You might want to add more packages. You could find them here.

 

How To Install PEAR on MAC OSX Lion
Apr 30th, 2012 by Mojtaba

Just run the following commands in Terminal.

Code   
sudo php /usr/lib/php/install-pear-nozlib.phar
sudo pear config-set php_ini /private/etc/php.ini
sudo pecl config-set php_ini /private/etc/php.ini
sudo pear upgrade-all

 

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

Human Verification Code Problem -Installous-
Jan 25th, 2012 by Mojtaba

There is a huge number of users who facing “Blue Question Mark” when trying to download an app in Installous. Unfortunately mine is working fine so it’s hard to bring a solution for it!

Randy upload the following screen shot on our Facebook Page  showing the blue question mark when he try to download an app!

Any idea about that?

Update: It seems that this is because of heavy load on download provider websites such as Mediafire.

iPhone 4S iPad 2, It’s time for Installous
Jan 20th, 2012 by Mojtaba

Read the following before doing anything

 Warning About installous


You probably now that iPhone 4S and iPad2 are jailbreakable now! Here I’m not going to teach you to how to jailbreak your iPhone or iPad, because there are several hundreds websites which has the same!!

Instead I want to tell you how you can install Installous to test drive paid apps for free before you actually buy those. creacking Apple app installation mechanism is easy, Thanks to Hackulo.us (Guys behind the Installous). Follow me

  1. I assume that your iPhone 4s (and/or iPad2) is already jailbreaked and you can run Cydia!!!
  2. Open Cydia
  3. Add the hackulo.us repo (http://cydia.hackulo.us)
  4. Go to Search, Search “installous” (without quotes)
  5. Let Cydia install that for you
  6. Reboot, Reboot,Reboot, Reboot,Reboot, Reboot DO NOT FORGET THIS STEP!!! PLEASE

That’s it!

Here is some useful links

And Also if you have problem with go ahead and read the following

How To Fix iMassage Problems
Oct 16th, 2011 by Mojtaba

If you can’t send message via iMessage try the following solution hope it will fix the problem.

  1. go to cydia and add repo url for the application SAM (“Subscriber Artificial Module”), google “Subscriber Artificial Module”; you ll find the repo URL
  2. install SAM and SAMpref
  3. Click ”Revert Lockdownd to Stock” in Settings>SAM (its unactivating your Hacktivation)
  4. Go to Settings > SAM and touch “De-Activate iPhone
  5. Connect with iTunes and activate it (ifs there a problem, google SAM homepage or tutorials for further instructions)
  6. If you already have “iPusher“ app -> delete it
  7. Navigate to Settings » SAM » Utilities » tap on Backup Activation and then tap on Restore Activation label
  8. Reboot your iPhone and then sync it with iTunes
  9. Install iPusher App
  10. Reboot your iPhone and then sync it with iTunes. Make sure your iPhone is connected to a Wifi with an active internet connection
  11. Open iPusher app and tap on Test Push Notifications button. If you see a pop-up saying Yay, push notifications work fine! then it means your Push Notifications are working          fine
  12. Deactivate iMessage (if its activated)
  13. Restart iPhone
  14. Activate it, it should work now.
Redsn0w is now support iOS 5.0
Oct 14th, 2011 by Mojtaba

Dev-Team just updated the redsn0w for iOS 5.0. Unfortunately  it does not support iPad2 (Actually does not support A5 Chip) and it’s a tethered jailbreak, means that you should use redsn0w whenever you want to restart your iDevice. I think it’s good for now.
Download Links
Supported Devices
  • iPod touch 3G
  • iPod touch 4G
  • iPad 1
  • iPhone3GS
  • iPhone4 (GSM)
  • iPhone4 (CDMA)

After jail breaking your device the next step is to install Appsync.

AppSync for iOS 5.0
Oct 4th, 2011 by Mojtaba

The process

  1. Open Cydia
  2. Add this source: http://cydia.hackulo.us
  3. install AppSync for iOS 5.0
  4. Restart iDevice
  5. Connect iDevice to your PC/Mac by USB-Cable
  6. Copy cracked ipa files into your iTunes Library (just drag and drop to the iTunes Window)
  7. Tell iTunes to install applications that you want
  8. Start Syncing iPhone!
  9. enjoy it!
iTunes Error 3002 With iOS 5.0 Beta 1
Jun 15th, 2011 by Mojtaba

Today while I try to update my iPhone (3GS) to iOS 5.0 beta 1, I get error 3002! fortunately I found that this error only happens when I try to “update” so I try “restore” mode and it works without  any problem!

Stay Tuned!

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!


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.