lisonfan
V2EX  ›  Xcode

xcconfig 问题请教

  •  
  •   lisonfan · Jun 20, 2018 · 2907 views
    This topic created in 2907 days ago, the information mentioned may be changed or developed.

    自定义 xcconfig 文件用来管理 APP 版本号

    在 TARGETS 里的 Build 使用 ${BUILD_VERSION} 来代替数字

    第一次运行 APP 能正常读取数字,然后修改 xcconfig 里 BUILD_VERSION 的值再次运行,结果通过 NSLog(@"%@",[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]); 打印出来的值还是修改之前的值

    请问一下这是什么问题? Google 了一上午没找到答案

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1061 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:11 · PVG 07:11 · LAX 16:11 · JFK 19:11
    ♥ Do have faith in what you're doing.