简体   繁体   English

向Google应用添加节奏

[英]Adding flurry to iOS app

  1. In the finder, drag FlurryAnalytics/ into project's file folder. 在查找器中,将FlurryAnalytics /拖到项目的文件夹中。 (NOTE: If you are upgrading the Flurry iOS SDK, be sure to remove any existing Flurry library folders from your project's file folder before proceeding.) (注意:如果要升级Flurry iOS SDK,请确保在执行操作之前从项目的文件文件夹中删除所有现有的Flurry库文件夹。)
  2. Now add it to your project: File > Add Files to “Your Project” ... > FlurryAnalytics 现在将其添加到您的项目中:文件>将文件添加到“您的项目” ...> FlurryAnalytics
    • Destination: select Copy items into destination group's folder (if needed)  目标:选择将项目复制到目标组的文件夹中(如果需要)

    • Folders: Choose 'Create groups for any added folders' 文件夹:选择“为任何添加的文件夹创建组”

- Add to targets: select all targets that the lib will be used for -添加到目标:选择该库将用于的所有目标

  1. In your Application Delegate: 在您的应用程序委托中:
    • Import FlurryAnalytics and inside "applicationDidFinishLaunching:" add: [FlurryAnalytics startSession:@"YOUR_API_KEY"]; 导入FlurryAnalytics并在“ applicationDidFinishLaunching:”内部添加:[FlurryAnalytics startSession:@“ YOUR_API_KEY”];

What exactly do you have to do for the bolded step above? 您对于上述粗体步骤究竟需要做什么? I'm using xcode 4.3.3 Where do you do that step? 我正在使用xcode 4.3.3,您在哪里执行该步骤?

Thanks! 谢谢!

That means drag the FlurryAnalytics library into Xcode project view on the left, and when it comes up asking if you want to copy it or reference it, you should... 这意味着将FlurryAnalytics库拖到左侧的Xcode项目视图中,并在出现时询问是否要复制或引用它,应该...

  1. Copy it 复制它

  2. Make sure all build targets have a check mark next to their name. 确保所有构建目标的名称旁边都有一个复选标记。

Edit: Here is a technical, no-fun definition of build targets http://developer.apple.com/library/mac/#featuredarticles/XcodeConcepts/Concept-Targets.html . 编辑:这是构建目标的技术性无趣定义, 网址为http://developer.apple.com/library/mac/#featuredarticles/XcodeConcepts/Concept-Targets.html Sometimes it is useful to create multiple targets. 有时创建多个目标很有用。 If you don't know what they are, you likely only have one target and don't have to worry about it. 如果您不知道它们是什么,那么您可能只有一个目标,而不必担心。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM