WeTransfer / Mocker

Mock Alamofire and URLSession requests without touching your code implementation
MIT License
1.12k stars 96 forks source link

Conflict with other framework #62

Closed Maverick1000 closed 4 years ago

Maverick1000 commented 4 years ago

With your framework and Cuckoo framework it has the "public protocol Mock: HasMockManager, HasSuperclass { ... " where you have "public struct Mock: Equatable { ... "

When using those framework in a xcTestCase under xCode during the build I will get compile error about "Mock(url: apiEndpoint, contentType: .json, statusCode: 200, data: [.get: MockedData.exampleJSON.dataRepresentation])" as not init function.

As for a short term fix, I was able to modify your "public struct Mock: Equatable { ... " to "public struct HttpMock: Equatable { .. " an update any files that had Mock to HttpMock.

If you find anything different please replay with your finding.

github-actions[bot] commented 4 years ago

This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.