0

Swift xctest class would not build using inherit! :search_paths when referencing main target module files. Error occurred @testable import HelloWorld where HelloWorldClassA would be unknown ref

platform :ios, '10.0'

target 'HelloWorld' do

  use_frameworks!

  # Pods for HelloWorld
  pod 'Bolts-Swift'

    target 'HelloWorldTests' do
        inherit! :search_paths

    end

end
mutable2112
  • 439
  • 4
  • 15

1 Answers1

0

Changed inherit! :search_paths to inherit! :complete which correctly links all main target classes (apparently).

mutable2112
  • 439
  • 4
  • 15