想要实现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自动添加日期