ios - Swift Typhoon error in tests target - not subclass of Typhoon Assembly -


i trying set typhoon framework example project , works fine when run simulator giving me error when try run tests. error following:

nsinvalidargumentexception', reason: 'class 'di_example.myassembly' not sub-class of typhoonassembly'

now, read here , here caused typhoon package being linked twice because of cocoapods. podfile , doesn't seem should linked twice

platform :ios, '8.0'  target 'di_example', :exclusive => true     pod 'typhoon', '~> 2.3' end  target 'di_exampletests', :exclusive => true end  inhibit_all_warnings! 

also when change tests target applicaiton-style logic-style seems work fine (i assuming because package not imported twice). can spot problem doing?

it seems error thrown before hitting test guessing has linking 2 targets

here test (which passing if set host application none

var controller: homeviewcontroller! override func setup() {     super.setup()     let ctrlassembly = controllersassembly()     let blassembly = businesslogicassembly()     ctrlassembly.blassembly = blassembly     let factory = typhoonblockcomponentfactory(assemblies: [blassembly, ctrlassembly])     let configurer = typhoonconfigpostprocessor()     configurer.useresourcewithname("info.plist")     factory.attachpostprocessor(configurer)       controller = factory.componentforkey("homeviewcontroller") homeviewcontroller }  func testcontrollertitle() {     // arrange      // act     controller.viewdidload()      // assert     println(controller.title)     xctasserttrue(controller.title == "root view", "title set") } 

so managed resolve issue. problem because did not have dependencies on test target did not have pods-pocketforecasttests.debug.xcconfig in project configuration used same config file app target guess causes linked twice.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -