最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[整理]xcode中的系统自带路径变量:PROJECT_DIR、SRCROOT

Xcode crifan 6730浏览 0评论

折腾iOS开发期间,遇到Xcode中的有些配置中,用到了一些变量,比如:

PROJECT_DIR、SRCROOT

想要搞懂具体含义。

 

搜:

xcode PROJECT_DIR SRCROOT

参考:

Build Setting Reference
path – Xcode — what is $(SRCROOT)? – Stack Overflow
Xcode variables – Stack Overflow
re: Any documentation on how to use Xcode’s $MACROs?
不存在PROJECT_DIR
但是存在:

SRCROOT

Description:Directory path. Identifies the directory containing the target’s source files.
Value:Path to the project file that defines the target.
Example value:/Volumes/Users/genica/MyProject
Affects:OBJROOT (Intermediate Build Files Path)SYMROOT (Build Products Path).
Alias:SOURCE_ROOT
[总结]
Xcode中的这些变量的含义,需要了解详情的话,可以去看官网:
Build Setting Reference

转载请注明:在路上 » [整理]xcode中的系统自带路径变量:PROJECT_DIR、SRCROOT

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.168 seconds, using 22.06MB memory