2016-06-08 79 views
0

我已经加入PLCrashReporter使用PODCOCOAPOD文件未找到Xcode的单元测试仅

use_frameworks! 
pod 'PLCrashReporter' 

我已经输入法在清创头文件如果我跑了,我迅速的项目

#import <CrashReporter/CrashReporter.h> 
#import <CrashReporter/PLCrashReport.h> 

使用项目的话,我没有得到任何的问题,它按预期工作

如果我做Xcode的单元测试,我得到以下错误 (Xcode->镨oduct->测试

enter image description here

回答

2

单独添加吊舱目标TargetTests

请在以下更改POD文件

target ‘Target’ do 
platform :ios, ‘8.0’ 
use_frameworks! 
pod 'PLCrashReporter' 
end 

target 'TargetTests' do 
    platform :ios, ‘8.0’ 
    use_frameworks! 
    pod 'PLCrashReporter' 
end 

转到Build Sett英格斯 TargetTests 的,并为“其它链接器标记”为$(继承)值

做一个POD安装然后做干净生成文件夹和运行

相关问题