'Xcode 13.3 unit tests breaking with NSPredicate
My unit tests were working fine in Xcode 13.2.
I upgraded my Xcode to 13.3 and now some of my unit tests fail. Even an empty test case is breaking. This leads me to believe something internal in 13.3 has updated something.
Note: I don't have any usage of NSPredicate in my codebase.
Crash:
Error log:
2022-03-22 10:01:59.109894-0700 xctest[68458:1354303] [general] NSPredicate: Use of NSFunctionExpression with instance of 'NSBundle' is forbidden. dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/{me}/Library/Developer/Xcode/DerivedData/{app_name}-fgvbgpssjjxufdcidapunqbvyado/Build/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOs
Solution 1:[1]
I saw this too, but adding a test host fixed it for me, even an empty one.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |

