5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Xcode] XcodeGenにした場合にagvtoolでバージョン管理できなくなったので対応

Last updated at Posted at 2020-07-16

XcodeGenを導入したらagvtoolでバージョンが変わらなくなった

[Xcode] agvtoolでバージョン管理 - Qiita
https://qiita.com/valmet/items/78d662ec587b349e49c1

上記の記事を参考に見返してみると

PROJECT > Build Setting > Versioning > Versioning System で Apple Generic を選択

なるほど

project.ymlで設定する

targets:
  PROJECT_NAME:
    type: application
    platform: iOS
    deploymentTarget: "11.0"
    sources:
      - path: PROJECT_NAME
    settings:
      base:
        VERSIONING_SYSTEM: Apple Generic # これを入れる!

xcconfigでplistを設定しているとなんだかうまく行かない

xcconfigファイルを使ってplistを設定しているとうまくいかないっぽい

HOGE.xcconfig
INFOPLIST_FILE: PROJECT_NAME/info.plist

targets:
  PROJECT_NAME:
    type: application
    platform: iOS
    deploymentTarget: "11.0"
    sources:
      - path: PROJECT_NAME
    settings:
      base:
        VERSIONING_SYSTEM: Apple Generic
        INFOPLIST_FILE: PROJECT_NAME/info.plist # XcodeGenで設定するとうまくいく

xcodeprojの差分を見てもよくわからない

xcodeprojの差分的には特に変化ないんですが、agvtoolでバージョン管理できるようになりました。
理由がわかるかたいたら教えて下さい...🙇‍♂️

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?