如何将.plist文件添加到XCode中的所有目标? [英] How to add .plist file to all targets in XCode?

查看:118
本文介绍了如何将.plist文件添加到XCode中的所有目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完全是iOS的新手,但我目前正在尝试设置Google Analytics(分析)。我遵循 SDK文档,一切都很顺利,直到这一步:


将配置文件添加到您的项目中

将您刚刚下载的GoogleService-Info.plist文件拖放到您的Xcode项目的根目录中,并将其添加到所有目标。



<对于如何将其添加到所有目标,它没有说什么。一般来说,对于XCode和iOS来说,我完全失败了。任何人对我有答案?



谢谢!

解决方案

在项目导航器(Xcode左侧的文件层次结构)中选择GoogleService-Info.plist。然后,如果尚未打开,请打开工具栏(单击Xco​​de中右上角的最右侧按钮)。您将看到一个部分'目标会员'。选中所有复选框,将.plist添加到所有目标。



在大多数情况下,只需将文件添加到项目即可。

Totally new to iOS but I'm currently trying to setup Google Analytics. I have followed the SDK documentation and everything went great until this step:

Add the configuration file to your project

Drag the GoogleService-Info.plist file you just downloaded into the root of your Xcode project and add it to all targets.

It doesn't say anything on HOW to add it to all targets. Being new to XCode and iOS in general, I'm completely lost. Anyone with an answer for me?

Thanks!

解决方案

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.

这篇关于如何将.plist文件添加到XCode中的所有目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆