A Release iOS App

2017-09-20  本文已影响11人  赶时间的闹钟

1. Remove Log messages

// 1: Create a 'xxxx.pch' file 
// 2: In project build settings, enable 'pch' compile and set teh pch file path

'xxxx.pch' file:

#ifndef xxxx_PrefixHeader_pch
#define xxxx_PrefixHeader_pch

// remove logs while it is a release version
#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...){}
#endif

// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.

#endif /* xxxx_PrefixHeader_pch */ 

2. Localizable

image.png image.png image.png
上一篇 下一篇

猜你喜欢

热点阅读