yageek
yageek

Reputation: 4455

Xcode 6 Beta 4 - Import swift class in the Test Target

I have downloaded Xcode6B4 and I encounter a problem that never happened on the beta 3. I defined several swift files with some extensions on basic swift types. When I want to call a method defined in theses files from the test target, the compiler does not find the definition of the method. Is that related to new keywords defining the access levels ?

Upvotes: 3

Views: 789

Answers (1)

Sulthan
Sulthan

Reputation: 130132

By the release notes, all methods and properties are internal by default. The test target is a different module so anything you want to call from the test target must be declared as public.

Upvotes: 4

Related Questions