Adding a prefix header to an iOS project

The iOS SDK API for New Relic Mobile requires modification of your project‘s prefix header. If your project does not have one, follow these steps to add it.
From your Xcode menu, select File > New > File...
From iOS template options, select Other > PCH file.
Name the file <target_name>-Prefix.pch, and then select Create.
From your target’s Build settings, select All, and then add the following to the Prefix Header field:
$(SRCROOT)/<target_name>-Prefix.pch

时间: 2024-08-08 09:40:20

Adding a prefix header to an iOS project的相关文章

iOS添加Prefix Header

1. 添加Prefix Header 注: Xcode 6苹果默认去掉prefix Header, 用以提高原文件的复用性, 便于迁移. 并且可以一定程度上减少Build Time. 解决办法: (1). 在工程中添加一个pch文件, 命名 XXX-Prefix.pch. (2). 设置Build Setting 为'Prefix Header' 添加路径 $(SRCROOT)/桌面文件夹/PrefixHeader.pch Precompile Prefix Header 设置为YES后, pc

iOS 编程之使用Precompile Prefix Header

一:为什么Xcode6没有自动创建Precompile Prefix Header 我们在写项目的时候,大部分宏定义,头文件导入都在Precompile Prefix Header文件里面.在Xcode 4, 5的模板工程中可以看到Precompile Prefix Header,但是在Xcode 6被阉割掉了,原因可以参考下面的链接: http://stackoverflow.com/questions/24158648/why-isnt-projectname-prefix-pch-crea

iOS-----解决Prefix Header出错的问题

我们在使用 Prefix Header 预编译文件时有时会遇到如下的报错 clang: error: no such file or directory: '/Users/linus/Dropbox/Apps/My App/Projekt/My App/SlideMenu/SlideMenu-Prefix.pch' clang: error: no input files Command /Applications/Xcode.app/Contents/Developer/Toolchains/

Prefix.pch文件-判断iOS系统版本

ItcastWeibo-Prefix.pch ////  Prefix header////  The contents of this file are implicitly included at the beginning of every source file.// #import <Availability.h> #ifndef __IPHONE_5_0#warning "This project uses features only available in iOS S

如何在Xcode6中添加pch(Precompile Prefix Header)文件?

1.新建一个pch文件 command + N , 选择 iOS -> Other -> PCHFile 2.将building setting中的precompile header选项的路径添加“$(SRCROOT)/项目名称/pch文件名”(例如:$(SRCROOT)/RMWeibo/PrefixHeader.pch) 编译一下,检查路径是否正确 3. 将Precompile Prefix Header为YES,预编译后的pch文件会被缓存起来,可以提高编译速度 参考来源:http://b

Xcode-Precompile Prefix Header

Xcode Precompile Prefix Header浅析 http://www.cocoachina.com/ios/20140916/9635.html Xcode6与Xcode5之间的细节差别(Precompile Prefix Header) http://blog.csdn.net/tmweipan/article/details/39761843 Xcode6为什么干掉pch(Precompile Prefix Header)&如何添加pch文件 http://blog.csd

iOS项目添加.pch文件 / How to add a .pch file to an iOS project

1.Create a .pch file. 2.Write your macro, headfiles or something. Here is my prefixHeader.pch 3.Choose the Project and select "Build Settings" >>> find with keywords "prefix" >>>make the "Precompile Prefix Header

No plugin found for prefix &#39;jetty&#39; in the current project and in the plugin groups 【转】

在maven进行jetty的调试中出现错误: [plain] view plaincopyprint? [ERROR] No plugin found for prefix 'jetty' in the current project and in the plu gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo sitories [local (C:\Documents and Se

No plugin found for prefix &#39;jetty&#39; in the current project and in the plugin groups搭建mvan时配置jetty

在maven进行jetty的调试中出现错误: [plain] view plaincopyprint? [ERROR] No plugin found for prefix 'jetty' in the current project and in the plu gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo sitories [local (C:\Documents and Se