Swift Project: “Missing Required Modules” when import a modular framework

你。 提交于 2019-11-30 09:38:41

Solution

iOS framework exists as a folder, create a module.modulemap to find out library or header file.

  1. Setup module.modulemap path

    In project/target/Build Settings/Swift Compile - Search Path/Import Path = “${SRCROOT}”

  2. Add below to module.modulemap

Remarks

You don't have to add module.modulemap to the sample project if the framework is archived on the same development environment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!