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

【未解决】Xcode中Archive的name自动添加日期

Xcode crifan 2652浏览 0评论

想要实现Xcode中,Archive打包出来的名字:

是自动加上日期的:

变成:

简道_20160416

xcode archive target name auto add date

bash – Automatically Add Date/Time and Build Number to Info.plist Xcode – Stack Overflow

好像是可以通过,在archive之前,添加脚本,定义日期变量

然后放到archive name中

Xcode Auto-increment Build & Version Numbers

“These need to be pre-build actions, otherwise Xcode will only copy the updated plist every other build.

To do this:

  • Edit Scheme
  • Expand "Build" section by clicking disclosure triangle
  • Select "Pre-actions"
  • Add "New Run-Script Action"
  • Select "Provide build settings from $YOUR_PROJECT"
  • Add an increment script”

Auto-Increment Build Numbers for Multiple Xcode Target Apps

但是后来没时间继续折腾了。放弃。

转载请注明:在路上 » 【未解决】Xcode中Archive的name自动添加日期

发表我的评论
取消评论

表情

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.172 seconds, using 22.16MB memory