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
Solved:
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 ./ https://xxx.mygooglecode.com/svn/trunk/ -m 'initial import' --username xx@gmail.com --password yy

2. To checkout the source from SVN to our machine

     svn checkout https://xxx.mygooglecode.com/svn/trunk/ myprojectfolder --username xx@gmail.com --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 https://xxx.my.com:8080/svn/sampleproject/trunk ./ExportFolder

To Export a specific revision number (say 522):

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

Other Terminal commands

A. To show hidden files

     defaults write com.apple.Finder 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.
Solved:
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__);

#else  
#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 

    4. 
  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 : http://support.apple.com/kb/ht3696