erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

Xcode12: silence warning about minimum deployment #465

Closed twitterkb closed 3 years ago

twitterkb commented 4 years ago

generally speaking, it will often be the case that OCMock iOS target will only be part of a build on simulator for unit testing.

in such a case, a warning is emitted that the project settings for the minimum deployment target (8.0) are less than what Xcode12 provides (9.0 to 14.0.99) .

by establishing an iOS 14 SDK specific value, then anyone still using this project in Xcode 11 (or previously) will still be able to build against iOS 8 simulators ... but those building on Xcode 12 won't be subject to warnings.

erikdoe commented 3 years ago

That's neat. At the same time it looks like we would then have to revisit that setting every time a new SDK comes out. I guess the simpler alternative is to up the minimum version instead. Or is there a non-obvious issue with that?

erikdoe commented 3 years ago

In the meantime I have increased the minimum version, which makes this PR obsolete.