How to add .plist file to all targets in Xcode? How to add .plist file to all targets in Xcode? ios ios

How to add .plist file to all targets in Xcode?


Select the GoogleService-Info.plist in the project navigator (the file hierarchy on the left side of Xcode). Then, if it isn't open yet, open the utilities bar (click the top-right most button in Xcode). You will see a section 'Target Membership'. Check all the checkboxes to add the .plist to all targets.

In most cases it is enough to just add the file to your project.


Physically drag the GoogleService-Info.plist file from your download folder ( or wherever you saved it) to your main project directory as shown below. Once you do that, the "Targets" dialog should open automatically and you can choose all targets (...click on all the targets shown)

enter image description here


In Xcode 6 Follow the step sequence in this digram.

  1. First select your target.
  2. Select build settings tab.
  3. Search for "info.plist file"
  4. Edit the value for key "info.plist file" (Add the actual plist path in step 4)

enter image description here