iOS : Could not build module <framework-name>

标签 ios objective-c xcode module frameworks

我从另一个团队得到了 Library。我正在尝试在我们的项目中使用库,但这样做时遇到错误 Could not build module 'Common Library' (name of framework)

Screenshot 1

以下是我尝试过但没有帮助的解决方案:

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但没有任何突破!

screenshot 2

screenshot 3

唯一有效的方法是删除项目中 build settingsSwift compiler - code generation section 中的 Objective-C bridging header path

但是,此后我无法获得 Common 接口(interface)来创建实例(即 Common 不会出现在下拉列表中)

框架结构如下。

Screenshot 6

任何其他修复?

最佳答案

您可以尝试删除 DerivedData 目录。

DerivedData 在哪里?(xcode 8)

转到"file">“工作区设置”,您将看到 DerivedData 路径。

DerivedData path in xcode 8

enter image description here enter image description here

关于iOS : Could not build module <framework-name>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38717956/

相关文章:

ios - UITableViewCell iOS 静态单元格的动画高度

ios - 如何调试从 Airwatch 获得的应用程序?

ios - 将 Xcode 调试器附加到在 iOS 模拟器中运行的 Xamarin 应用程序

ios - Sqlite.swift 创建动态复杂查询

iOS native 代码编译错误,使用未声明的标识符 'threadStateData',从宏 'CN1_THREAD_STATE_PASS_SINGLE_ARG' 扩展

ios - TableView 中嵌套的 collectionView

objective-c - 从未调用过 CoreAudio AudioQueue 回调函数,没有报错

objective-c - 从另一个数组中减去一个 NSArray 中的对象

ios - 将ARToolkit SDK集成到iOS现有应用中

objective-c - 如何存储类变量,然后在 Objective-C 中调用该类的静态方法