---
title: "github.com/alisoftware/ohhttpstubs 4.0.0 Breaking Changes"
description: "What each github.com/alisoftware/ohhttpstubs release removed, renamed or changed: 7 breaking changes in 3 versions on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/alisoftware/ohhttpstubs
last_updated: 2026-12-04
---

# github.com/alisoftware/ohhttpstubs breaking changes

github.com/alisoftware/ohhttpstubs 4.0.0 is its newest release with breaking changes, 3 of them. The first: Removed OHPathHelpers.h. Every breaking API change we have recorded in github.com/alisoftware/ohhttpstubs on Swift Package Index: 7 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `9.1.0`, released December 2, 2020. [Source repository](https://github.com/AliSoftware/OHHTTPStubs)

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 3 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [4.0.0](#v-4-0-0): 4 breaking changes in 2 versions.

## github.com/alisoftware/ohhttpstubs 4.0.0 breaking changes

github.com/alisoftware/ohhttpstubs 4.0.0: 3 breaking changes.

- **Removed** `OHPathHelpers.h`  

The path utility macros were migrated to functions in OHPathHelpers.h for Swift compatibility. Code that uses the old macros must call the functions instead. [github.com](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/4.0.0)
- **Removed** `XCTestExpectation`  

The XCTestExpectation subspec, added for Xcode 5 support, is removed. Projects that depend on it must stop using it. [github.com](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/4.0.0)
- **Signature changed**  

The library is annotated with nullability attributes, so Swift code may now see optional types where it previously saw non-optional ones. Update code that relies on the old types. [github.com](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/4.0.0)

## github.com/alisoftware/ohhttpstubs 3.0.0 breaking changes

github.com/alisoftware/ohhttpstubs 3.0.0: 1 breaking change.

- **Removed**  

The deprecated methods from the old API were removed. Code that still calls them must switch to the new API before upgrading to 3.0.0. [github.com](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/3.0.0)

## github.com/alisoftware/ohhttpstubs 2.0.0 breaking changes

github.com/alisoftware/ohhttpstubs 2.0.0: 3 breaking changes.

- **Removed**  

The instance methods are removed. Call the class methods directly on the OHHTTPStubs class. [github.com](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/2.0.0)
- **Removed** `sharedInstance`  

The public sharedInstance property is gone, along with the instance methods. Call the class methods directly on OHHTTPStubs instead. [github.com](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/2.0.0)
- **Behavior changed**  

The package no longer uses Apple private APIs, so builds containing stubs are no longer rejected by the App Store. Remove OHHTTPStubs and your stubs from release binaries. [github.com](https://github.com/AliSoftware/OHHTTPStubs/releases/tag/2.0.0)

## Related packages

- [github.com/alisoftware/dip](https://since.dev/packages/swift/github.com/alisoftware/dip.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
