2

I have integrated submodule in my swift project and that submodule was earlier using Carthage. Now I moved from Carthage to Cocoapods. But now whenever I am referring ANY pod mentioned in main project or submodule, its throwing below error.

No such module 'POD_NAME'

Earlier the same error was shown for the submodule, but I added $(SRCROOT) in my Framework Search Paths and that error is replaced by the above one.

Amit Gupta
  • 192
  • 2
  • 13
  • Stumbled upon this post. Tried this too, but no avail. http://stackoverflow.com/questions/39970273/no-such-module-in-xcode – Amit Gupta Mar 06 '17 at 11:18

2 Answers2

0

If you are using cocoapods then after installing the pods build the project once and then try to import the module.

Parth Adroja
  • 13,198
  • 5
  • 37
  • 71
0

Press Command+Option+Shift+K and then Run your app

go into your build settings and defining the Framework Search Paths to a folder which contains the frameworks in question. If the frameworks are placed in your project directory, simply set the framework search path to $(SRCROOT) and set it to recursive.

or

Make sure that you tried simply skipping import of the framework as it is already added with the bridging header.

Hope this helps

Nishant Gupta
  • 457
  • 3
  • 16