ios - 如何合并 `iphoneos` 和 `iphonesimulator` 的构建,就像我们过去对使用 `lipo` 的框架所做的那样
问题描述
根据标题,有没有办法iphonesimulator
与iphoneos
构建合并,以便以后可以分发和使用?
我尝试过lipo
以下投诉:
fatal error: lipo: can't figure out the architecture type of: *.metallib
另外,我已经尝试过-destination generic/platform=iOS
它看起来只为 iPhone 构建,因此在针对模拟器运行时输出以下内容:
Failed to created pipeline state, error Error Domain=CompilerError Code=1 "Target OS is incompatible: library was not compiled for the simulator" UserInfo={NSLocalizedDescription=Target OS is incompatible: library was not compiled for the simulator} -[MTLDebugRenderCommandEncoder setRenderPipelineState:]:1294: failed assertion `renderPipelineState must not be nil.'
这让我想到了我的问题——我的选择是什么?
任何建议表示赞赏!
解决方案
Metal 是它自己的编译格式,它不像 CPU 代码。没有金属模拟器,所以这个问题没有意义。您不应该在 Metal 编译的代码上使用 lipo。
推荐阅读
- javascript - 从构造函数将对象添加到数组
- java - 我想以新的意图显示图像,图像位于 drawables 文件夹中,通过单击 ImageView
- vba - VBA设置直方图中的箱数
- php - 如何根据数量和预定义的报价添加增量报价
- java - Java Spring - Thymeleaf 将空对象返回给控制器
- django - 如何使用 Nginx 和 django 提供媒体文件?
- ios - 通过 Cocoapods 分发 Swift 项目时使用“内部”不起作用
- c# - 如何在添加到字典之前检查密钥是否存在
- java - org.eclipse.ui.genericeditor.contentAssistProcessors 扩展点是否支持使用带有通用编辑器的 TemplateCompletionProcessor
- scala - Scala多维数组等效于np.ndarray.shape?