Use different GoogleService-Info.plist for different build schemes

后端 未结 17 764
梦毁少年i
梦毁少年i 2020-12-07 07:49

I am using a build scheme for prod and one for staging (with 2 different bundle identifiers) and I am trying to use a separate GoogleService-Info.plist for each scheme. Is t

17条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 08:29

    If some of you fall into an error and Xcode complains

    "Multiple commands produce GoogleService-Info.plist"

    after applying @Knight Fighter response, you may want to:

    • Check Build Phases > Copy Bundle Resources
    • Filter for files named GoogleService-Info.plist
    • Remove any references you have to it, since it's already being copied through the script.

提交回复
热议问题