Xcode 10 Build Phase Shell Script

后端 未结 4 1190
甜味超标
甜味超标 2021-02-10 02:54

In our project we derive our release version from git tag etc then write it to the built folder\'s Info.plist with a shell script like:

GIT_RELEASE_VERSION=$(some

4条回答
  •  攒了一身酷
    2021-02-10 03:24

    Same issue here... one work-around is to clean and then perform full-build.

    The new build system in Xcode 10 runs the Process Info.plist step differently in full and incremental builds:

    • Full-build: after processing assets, before linking storyboards (link step)
    • Incremental: after embedding frameworks, before signing.

    The actual problem is the script that runs as a build step & updates the processed Info.plist file needs to always run after the the file is processed but before signing.

提交回复
热议问题