A. Common documents in the project1. Unit tests Test 2.Frameworks (XCode6 created by Singleview Project not) relies on framework 3.Products packaged files
4. Projectname-info.plistGlobal profile so the best other plist files do not have the info Word (1) Change the project name a. Modify bundle display Name B.clean C. Simulator Delete app, regenerate (2) Bundle Identifierapp Unique identifier (3) Stroyboard entry: Main Storyboard file base name (4) app supported screen orientation
5.pch FileThe contents of the PROJECTNAME-PREFIX.PCHPCH header file can be shared by another file (1) xCode6 Create a PCH file a. Create a PCH B. Configure PCH to precompiled note the path to the PCH file to write to (2) the role of the PCH A. Store Global macros # Define
1 #define A 12#define B 2
B. Global Import #import
1 #import " myhead.h "
c. only. m files in all OC Projects Import Foundation and Uikit LibrariesPrevent other languages (such as C) from being introduced incorrectly
1 #ifdef __objc__ 2 3 #import <Foundation/Foundation.h>4#import <UIKit/UIKit.h>56 #endif
d. Debug NSLog optimizationThe system configures a debug macro during the Debug phase
1 #ifdef__objc__2 3 #import<Foundation/Foundation.h>4 #import<UIKit/UIKit.h>5 6 #ifdefDEBUG7 #defineMynslog (...) NSLog (__va_args__)8 #else9 #defineMynslog (...)Ten #endif One A #endif
Note "__va_args__" before and after the two underline configuration, using the Mynslog function to print the test information, in the app to complete release version, Mynslog will automatically expire
1 Mynslog (@ " test%d-%d", A, B);
Out
2014-12-17 13:22:33.888 datepicker[20702:1696549]
Test
1-2
[iOS base Control-6.10.4] project startup files in the project