nalexn / clean-architecture-swiftui

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnitTests compile error

markych96 opened this issue · comments

can't run unit tests:

'init()' is unavailable in SystemEventsHandlerTests.swift:167:9

clean-architecture-swiftui/UnitTests/System/SystemEventsHandlerTests.swift:167:9: 'init()' is unavailable

/UIKit.UIOpenURLContext:6:12: 'init()' has been explicitly marked unavailable here

found some workaround about that issue, ant don't know how implement this, may be this useful

https://developer.apple.com/forums/thread/29851

@markych96 thanks for reporting this! Haven't used Obj-C for 5+ years, but had to appeal to it to work around the issue. The fix is pushed.