如何像以前那样使用lipo`合并框架,以合并iphoneos和iphonesimulator的构建]

问题描述 投票:1回答:1
按照标题,有没有办法将iphonesimulatoriphoneos构建合并,以便以后可以分发并用于两者?

我尝试过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.'

哪个带给我我的问题-在这里我有什么选择? 

任何建议都值得赞赏!

按照标题,有没有办法将iphonesimulator与iphoneos构建合并,因此以后可以分发并用于两者?我尝试过lipo,抱怨如下:致命错误:...

ios metal xcodebuild
1个回答
0
投票
金属是它自己的编译格式,它不像CPU代码。没有用于金属的模拟器,因此该问题没有道理。您不应在金属编译代码上使用lipo。
© www.soinside.com 2019 - 2024. All rights reserved.