AliSoftware / Dip

Simple Swift Dependency container. Use protocols to resolve your dependencies and avoid singletons / sharedInstances!
MIT License
978 stars 75 forks source link

Crash Release Configuration: Swift 4.1, XCode 9.3 #188

Closed v-silin closed 6 years ago

v-silin commented 6 years ago

Hi. Hope you are doing well.

I have the following issue with latest stable XCode version(Xcode 9.3, Swift 4.1): Fatal error: 'try!' expression unexpectedly raised an error: No definition registered for type: MyBestProtocol, arguments: (), tag: nil. Check the tag, type you try to resolve, number, order and types of runtime arguments passed to resolve() and match them with registered factories for type MyBestProtocol.: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-902.0.48/src/swift/stdlib/public/core/ErrorType.swift, line 184

I can debug App without any issue. This happens only for App release configuration: both debugging Release and TestFlight.

I tried latest develop branch with no success.

Do you have any ideas what went wrong?

I am working on example App now, so I can provide more details soon.

Lower iOS: 10.0 Swift: 4.1 XCode: 9.3

Best regards, Vasili Silin.

v-silin commented 6 years ago

XCode speed optimization issue. Dip works great.

Closed.