“the outputpath property is not set for this project” error

Usually this happens when the OutputPath property of the project file is blank. Project files are just MSBuild files. To edit in Visual Studio: Right click on the project, pick “Unload project” then right click on the unloaded project and select “Edit …”. Look for the Release-Versionincrement property group. It should look something like <PropertyGroup … Read more

Xcode: TEST vs DEBUG preprocessor macros

Preprocessor macros will not work, you need to check the environment at runtime. Objective-c static BOOL isRunningTests(void) { NSDictionary* environment = [[NSProcessInfo processInfo] environment]; return (environment[@”XCTestConfigurationFilePath”] != nil); } Swift var unitTesting : Bool { return ProcessInfo.processInfo.environment[“XCTestConfigurationFilePath”] != nil } (Updated for Xcode 11)