我从另一个团队得到了 Library。我正在尝试在我们的项目中使用库,但这样做时遇到错误 Could not build module 'Common Library' (name of framework)
以下是我尝试过但没有帮助的解决方案:
1. Delete Derived data content. Clean and Build.
2. Framework is added in 'Link binary with libraries' of Build phases.
3. While adding framework checkmarked : Target and Copy content to folder.
连我都试过了stackoverflow-link但没有任何突破!
唯一有效的方法是删除项目中 build settings
的 Swift compiler - code generation section
中的 Objective-C bridging header path
。
但是,此后我无法获得 Common 接口(interface)来创建实例(即 Common 不会出现在下拉列表中)
框架结构如下。
任何其他修复?
最佳答案
您可以尝试删除 DerivedData 目录。
DerivedData 在哪里?(xcode 8)
转到"file">“工作区设置”,您将看到 DerivedData 路径。
关于iOS : Could not build module <framework-name>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38717956/