typealiased / mockingbird

A Swifty mocking framework for Swift and Objective-C.

Home Page:https://mockingbirdswift.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not generating any mocks results

Boowman opened this issue · comments

Overview

I tried it in a brand-new project and it works just fine, I then tried to add it to my current project, and whenever I try to run it I am getting the following errors, the first one comes from the generated file itself @testable import Mockingbird

Screenshot 2024-02-02 at 15 47 23

The generated file is being created but when calling mock(...) it doesn't get populated anymore. The file only contains the includes and nothing else.

Example

import Mockingbird

var testing = mock(TestingProtocol.self)

As I said, it works in a new project but not in this one, not sure if maybe it's some settings that I need to change.

Environment

  • Mockingbird CLI version (0.20.0)
  • Xcode and Swift version (15.2 & 5.9.2)
  • Package manager (SPM package)
  • Unit testing framework (XCTest)