Swift 5 - Cannot load underlying module for 'MyModuleName'

After updating my Xcode to 10.2 and doing the Swift 5 migration, I got an errors in the Test Target of my dynamic framework


Cannot load underlying module for ''


any idea?


If I comment out my import in my test file


@testable import


everything compiled ok


thanks

Replies

Two things:

  • Have you tried doing a clean build? It’s possible that Xcode 10.2 is trying to use some build product created by the earlier Xcode and hence getting confused.

  • If that doesn’t work, try create a new project from one of the built-in templates and see if that has the same problem.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"