進行中

Python debug script for iPhone

This project has a budget of $10 only.

Write a Python script that will add debug infomation to iPhone source code and then remove the debug info later. It takes a directory name (iPhone project source code) and ON or OFF as a two paramaters. Should be able to be run from OS X command line.

1. Command line

- parm 1 = directory name.

- parm 2 = ON or OFF.

2. Script opens all .m files in the directory and subdirectories

3. For each method a line is added after the method declaration with a NSLog statement with the source file name, the method name and START

eg: for method

4. A line is added finally before the closing brace with STOP.

Running with ON adds the statements.

Running with OFF removes the statements from all .m files.

For example:

Original code:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

// Return YES for supported orientations

return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);

}

After script is run with OFF.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

NSLog(@"LostoClockController shouldAutorotateToInterfaceOrientation START");

// Return YES for supported orientations

return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);

NSLog(@"LostoClockController shouldAutorotateToInterfaceOrientation END");

}

スキル: Python

さらに表示: python end, write a python script, python, python script, python project , python c++, python c, iphone project, debug, bool, write script file, remove script, iphone info, python script write, code project python, iphone example, write python script, python remove file, script iphone, Method Statement

採用者について:
( 11件のレビュー ) Geneve, Switzerland

プロジェクトID: #1481976

1人のフリーランサーが、このジョブに平均$30で入札しています

Blender3D

I can do this project within a few hours. Check your PMB for a few more details.

$30 USD 0日以内
(20件のレビュー)
5.4