MakeAWishFoundation / SwiftyMocky

Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.04k stars 106 forks source link

Xcode 16 fixes #363

Closed mapierce closed 2 months ago

mapierce commented 2 months ago

Description

There were two issues that cropped up with use of Xcode 16:

  1. Use of .characters on String types. This is now deprecated and we should be calling the functions directly on the Strings
  2. The extensions to Optional for conformance to ExpressibleByStringLiteral etc.

For the first issue, simply removing .characters was enough.

For the second issue, I have just removed the Optional extensions. I think this is safe and will cause little inconvenience to the end user. The change they will need to make is moving from directly passing in "some string" as a parameter to type Parameter<String?> to .value("some string"). This is a direct result of SE-0364.

Related issue

mapierce commented 2 months ago

@spaluchiewicz

mapierce commented 2 months ago

LGTM

@mapierce there are few unit tests that should be aligned - could you please take a look on that?

Updated @spaluchiewicz