apollo-ios: Apollo 1.1.0 @testable import in Test Mocks compilation error

Summary

While compiling project I’ve expected issue with ApolloAPI in TestMock.swift, second line: Module 'ApolloAPI' was not compiled for testing.

Dropping to 1.0.7 erases the issue. I’ve tried on Xcode 14.2 and 14.3 - same results.

Version

1.1.0

Steps to reproduce the behavior

Upgrade Apollo from 1.0.7 to 1.1.0 and try to compile.

Logs

Module 'ApolloAPI' was not compiled for testing

Anything else?

Screenshot 2023-04-05 at 15 31 39

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

@AnthonyMDev You were right about accidentally linking ApolloTestSupport into main app target, nevertheless when I deleted it and added into UnitTest target only the issue persists. Module 'ApolloAPI' was not compiled for testing

I’ve checked on 1.1.2, still with no luck

Thanks for the info! I’ll look into how to correct this and get back to you ASAP

Thanks for quick response and sorry I forgot to mention, I use SPM, directly via packages dependencies under project settings