2016-06-08 80 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安裝然後做乾淨生成文件夾和運行

相關問題