Tests with generic classes fail since 2.2

Since upgrading to Swift2.2 , my tests EXC_BAD_ACCESS (code=2, address=0xb6bc48) with EXC_BAD_ACCESS (code=2, address=0xb6bc48) in a line that looks like this:

 let myLet = MyGenericClass<MyType>(some: 0, parameters: 1) 

In the debug navigator, I see that it stops at

 0 swift_initClassMetadata_UniversalStrategy ...snip... 6 type metadata accessor for MyGenericClass<MyType> 7 MyClassTests.theTestIAmExecuting() -> () ...snip... 

Maybe something needs to be done so that I import the classes using @testable import MyApp instead of adding all the tested classes to the test object.

Does anyone have the same problem? Has anyone got a way to solve this?

UPDATE

It also crashes when starting my project now

+2
xcode swift
source share
1 answer

I am struggling with a similar problem, see https://bugs.swift.org/browse/SR-815 (crash only for iOS7) and vote for this error if it is the same problem

+3
source share

All Articles