Friday, March 30, 2012

error: failed to launch -- No such file or directory iOS device xcode

On Xcode, I am getting this error when launch application on Device
Xcode 4.3, Device OS 5.1
Quit the Xcode and Reopen the project again solved the issue.

if the error is error: failed to launch,..  failed to get the task for process , please  look at the selected profile is correct one

SVN commands Using with my Mac

use cd command to reach your working folder

1.  To import the source to svn at first time

     "." represent the current folder

    svn import ./ -m 'initial import' --username --password yy

2. To checkout the source from SVN to our machine

     svn checkout myprojectfolder --username --password yy

3. To commit the changes.

    svn commit -m "commentss"

4. Export the source from SVN to our machine. When we do export , the exported source will not exist the svn files.

   svn export ./ExportFolder

To Export a specific revision number (say 522):

svn export -r 522 svn:// ./522

Other Terminal commands

A. To show hidden files

     defaults write AppleShowAllFiles NO

B. To show Library folder under Home folder

    chflags nohidden ~/Library/

iOS : NSLog is not working on Simulator

Woking on Xcode 4.3.2 and iOS 5.1 , Suddenly my NSLog commands are stopped working..
And it is working with other projects.
1. Clean (Xcode menu Product - > Clean)
2. Removed all simulator applications from 5.1 folder and 5.0 folder
<Home>/Library/Application Support/iPhone Simulator/5.0/Applications, and <Home>/Library/Application Support/iPhone Simulator/5.1/Applications

If the Library folder is not visible in your <Home> folder, enter the command "chflags nohidden ~/Library/ " on Terminal(Applications->Utilities->Terminal) application
Thanks for reading.. :)

iOS : How to disable all NSLog for release

1. Rename your all NSLog to MyLog

2. Add this code to your <ProjectName>-Prefix.pch file

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#ifdef DEBUG  
#define MyLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);

#define MyLog(...)

Failed to install error message with Xcode

I installed Xcode 4.3.1 version today, 
Getting error message "Failed to install" When I try ti install an adhoc application created by new sdk.

Its fixed by selecting the adhoc profile against the 'Release'  code signing identity, Also selected 'Release' on EditScheme - Archieve.

Find out we have a 32bit or 64 bit intel based MAC

  1. Choose About This Mac from the Apple () menu in the upper left menu bar, then click More Info. 
            2. And click System Report in OverView Tab.,
            3. And Open the Hardware section see the Processor name 

  1. Compare your Processor Name to information below to determine whether your Mac has a 32-bit or 64-bit processor.

Intel Core Solo32 bit
Intel Core Duo32 bit
Intel Core 2 Duo64 bit
Intel Quad-Core Xeon64 bit
Dual-Core Intel Xeon64 bit
Quad-Core Intel Xeon64 bit
Core i364 bit
Core i564 bit
Core i764 bit
reference :