【问题标题】:Xcode 8.3 XCtest issue with CocoaPodsCocoaPods 的 Xcode 8.3 XCtest 问题
【发布时间】:2018-01-09 14:14:31
【问题描述】:

在引用主目标模块文件时,Swift xctest 类不会使用inherit! :search_paths 构建。 @testable import HelloWorld 发生错误,其中 HelloWorldClassA 将是未知的参考

platform :ios, '10.0'

target 'HelloWorld' do

  use_frameworks!

  # Pods for HelloWorld
  pod 'Bolts-Swift'

    target 'HelloWorldTests' do
        inherit! :search_paths

    end

end

【问题讨论】:

  • 仅供参考 Xcode 8.3.3 (8E3004b) w Cocoapods 1.2.1

标签: swift cocoapods xcode8 xctest podfile


【解决方案1】:

inherit! :search_paths 更改为inherit! :complete,它正确链接了所有主要目标类(显然)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-26
    • 1970-01-01
    • 2017-05-28
    • 1970-01-01
    相关资源
    最近更新 更多