Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/120.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 与swift/objc项目和测试目标相关的Cocoapod问题_Ios_Swift_Cocoapods_Xctest_Cedar Bdd - Fatal编程技术网

Ios 与swift/objc项目和测试目标相关的Cocoapod问题

Ios 与swift/objc项目和测试目标相关的Cocoapod问题,ios,swift,cocoapods,xctest,cedar-bdd,Ios,Swift,Cocoapods,Xctest,Cedar Bdd,我正在处理一个主要是OBJc项目,测试是用Cedar完成的。我已经开始包括swift,我的测试目标中有cocoapod框架的问题 Cocoapods的版本是0.39.0(升级到beta版给了我更多的问题,所以现在坚持使用stable) 我的播客文件如下所示: def test_pods pod 'Cedar' pod 'PivotalCoreKit/Development' end def app_pods pod 'PivotalCoreKit' pod 'J

我正在处理一个主要是OBJc项目,测试是用Cedar完成的。我已经开始包括swift,我的测试目标中有cocoapod框架的问题

Cocoapods的版本是0.39.0(升级到beta版给了我更多的问题,所以现在坚持使用stable) 我的播客文件如下所示:

def test_pods
    pod 'Cedar'
    pod 'PivotalCoreKit/Development'
end

def app_pods
    pod 'PivotalCoreKit'
    pod 'JSONWebToken'
    pod 'RealmSwift'
    pod 'SwiftyJSON'
end


target 'App' do
    use_frameworks!
    app_pods
end

target 'AppTests' do
    use_frameworks!
    test_pods
end
我现在遇到的问题是,当构建测试时,它会给我主应用程序目标中所有pod的“找不到符号”错误

我所做的:

  • 向两个目标都添加了POD(生成错误,表示类存在两次)
  • 已尝试设置仅对应用程序目标使用框架
  • 链接,产生相同的结果,就像将它们添加到两个目标一样
我有一个完整的swift应用程序,当只将测试吊舱设置为测试目标时,它可以正常工作,所以我假设因为这是一个混合代码库,所以我看到了一些问题