lundi 20 avril 2020

How can I make unit test targets work with mixed project using Objective-C and cocoapod libraries that are made in swift?

My project is written mostly in objective-C and I'm currently getting module not found error for all pod libraries that are written in swift, cocoapods it's supposed to configure the header search paths and I've tried several methods but none have worked, I've tried changing the structure of the Podfile to internal target or abstract target and the result is the same, cleaning derived data folder, and endless build cleans. Is there a way to make this work? I'm in MacOS Cataline, using Xcode 11.3, and I've tried with test target for swift and test target for objective c files, both fail, I've also tried building in legacy mode, so I'm currently out of options

Btw, the error is scanning the modules implemented in the main target, not the ones that are being tested, I mean, the error is in the main target module files, no in the test files

Aucun commentaire:

Enregistrer un commentaire