xcode info.plist构建变量$ {PRODUCT_NAME:rfc1034identifier}似乎完全没有记录? [英] xcode info.plist build variable ${PRODUCT_NAME:rfc1034identifier} seems completely undocumented?

查看:279
本文介绍了xcode info.plist构建变量$ {PRODUCT_NAME:rfc1034identifier}似乎完全没有记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查找描述构造 $ {PRODUCT_NAME:rfc1034identifier} 建议的语法和可能性的文档。显然,这会转变为产品名称的某个版本,但描述如何的文档在哪里?我只是grep了整个/ Developer目录,没有任何用处。

I'm trying to find documentation that describe the syntax and possibilities suggested by the construction ${PRODUCT_NAME:rfc1034identifier}. Obviously this turns into some version of the product name, but where is the documentation that describes how? I just grepped the entire /Developer directory, and got nothing useful.

我不是在寻找对这个特定变量发生什么变化的狭义定义,我想知道所有这样的修饰符,如 rfc1034identifier

I'm not looking for the narrow definition of what happens to this particular variable, I want to know about all such modifiers like rfc1034identifier.

推荐答案

通过使用字符串我还挖出了以下与相关的东西:rfc1034identifier

By using strings I also dug out the following things that look like they're related to :rfc1034identifier:


  • :quote - 在空格之前添加反斜杠(和更多),用于shell脚本

  • :identifier - 用下划线替换空格,斜杠(和更多)

  • :rfc1034identifier - 用破折号替换空格,斜杠(等)

  • : dir - 不知道,在某些情况下观察到用 ./ 替换

  • :abs - 不知道

  • :quote - adds backslashes before whitespaces (and more), for use in shell scripts
  • :identifier - replaces whitespace, slashes (and more) with underscores
  • :rfc1034identifier - replaces whitespace, slashes (and more) with dashes
  • :dir - don't know, observed replace with ./ in some cases
  • :abs - don't know

确切命令:

strings /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Versions/A/DevToolsCore|grep '^:'

还有更多东西看起来像有趣的修饰符(例如,:char-range =%@ ),但我不能不能让这些工作。网上只有一个:char-range 的例子,它来自Xcode的崩溃日志。

There are more things that look like interesting modifiers (for example, :char-range=%@), but I couldn't get these to work. There's only one example of :char-range on the net, and it's from a crash log for Xcode.

有人问我们怎么知道它是修饰符规范。嗯,我们知道,因为它适用于构建设置中的多个变量。 Plist预处理器可能使用与构建系统相同的机制来解析构建变量。

Someone asked how do we know it's a modifier specification. Well, we know because it works on multiple variables in build settings. Plist preprocessor probably uses the same mechanisms to resolve build variables as does the build system.

Hack Saw,如果通过该bug报告得到响应,请不要忘记随时通知我们: - )

Hack Saw, if you get a response via that bug report, don't forget to keep us informed :-)

这篇关于xcode info.plist构建变量$ {PRODUCT_NAME:rfc1034identifier}似乎完全没有记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆