美文网首页
A Release iOS App

A Release iOS App

作者: 赶时间的闹钟 | 来源:发表于2017-09-20 18:05 被阅读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

  • Set project localizations
image.png
  • Localization strings
    File -> new file -> (iOS->Resource)String File
    select the string file and see the right view
image.png
  • Localization App Name
    create a strings file and name 'InfoPlist.strings'
    and copy this to the file CFBundleName = "Test";

  • Localization storyboard

image.png
  • Notice
    • The 'Base' is the default language (also call main language in itunes)
    • To make a localization name, you must create a 'strings' file named 'InfoPlist.strings'
    • The localization is the end of development but not the localization strings

相关文章

网友评论

      本文标题:A Release iOS App

      本文链接:https://www.haomeiwen.com/subject/zbposxtx.html