美文网首页
ios开发新增Configuration环境

ios开发新增Configuration环境

作者: 喜剧收尾_XWX | 来源:发表于2020-07-13 10:46 被阅读0次
  1. 新增环境


    1
  2. 自定义字段


    2g
  3. 在info.plist配置配置customkey


    3
NSString *customKey = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CodePushDeploymentKey"];

4.配置PReprocessor Macros

4
#if DEBUG
  NSString *state =  @"1";
  #elif RELEASE
  NSString *state =  @"2";
  #elif DEBUGTEST
  NSString *state =  @"3";
  #else
  NSString *state =  @"4";
  #endif
  

5.记得要pod install下

相关文章

网友评论

      本文标题:ios开发新增Configuration环境

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