I just stumbled on the same problem, and your post was helpful. What I found out is by change the Product Name
to AppNameTests
, as per your example, then the product module name is reflected correctly and you don’t have to add Tests
at the end of $(PRODUCT_NAME:c99extidentifier)
. c99extidentifier
seems torefers to Product Name
.
Summary:
- select your test target in Project
- navigate to
Build Settings -> Packaging
- change the
Product Name
to your previous test target, likely appendingTests
- I believe the rename as per Apple’s renaming a project doesn’t include the updating the module in
@testable
, so I had to do this manually