从静态库构建 Cocoa Touch 动态框架不产生二进制文件

Building Cocoa Touch dynamic framework from static library produces no binary

我正在尝试使用此处描述的方法 2 从 headers 和静态库将 GoogleMobileAds 构建为动态框架:https://pewpewthespells.com/blog/convert_static_to_dynamic.html

我已经建立了一个项目,它构建成功,但是生成的框架不包含二进制文件,只包含 headers。对我做错了什么有什么想法吗?

示例项目:https://github.com/HiveHicks/GoogleMobileAds-Dynamic-Wrapper

P.S。使用 XCode 8.1

构建

示例没有将二进制文件复制到 Bundle 资源:

这样做可以解决问题:

如果项目中没有 .m 文件,

XCode 不会生成框架二进制文件。我添加了一个虚拟的 .m 文件,现在可以了。