Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何合并“iphoneos”和“iphonesimulator”的构建,就像我们以前对使用“lipo”的框架所做的那样`_Ios_Metal_Xcodebuild - Fatal编程技术网

Ios 如何合并“iphoneos”和“iphonesimulator”的构建,就像我们以前对使用“lipo”的框架所做的那样`

Ios 如何合并“iphoneos”和“iphonesimulator”的构建,就像我们以前对使用“lipo”的框架所做的那样`,ios,metal,xcodebuild,Ios,Metal,Xcodebuild,根据标题,是否有办法将iphonesimulator与iphoneosbuild合并,以便以后可以分发并用于两者 我试过lipo,投诉如下: fatal error: lipo: can't figure out the architecture type of: *.metallib Failed to created pipeline state, error Error Domain=CompilerError Code=1 "Target OS is incompatible: lib

根据标题,是否有办法将
iphonesimulator
iphoneos
build合并,以便以后可以分发并用于两者

我试过lipo,投诉如下:

fatal error: lipo: can't figure out the architecture type of: *.metallib
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.'
此外,我还尝试了
-destination generic/platform=iOS
,它看起来只为iPhone构建,因此在针对模拟器输出运行时,会出现以下情况:

fatal error: lipo: can't figure out the architecture type of: *.metallib
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.'
这就引出了我的问题——我的选择是什么


任何建议都将不胜感激

金属是它自己的编译格式,它不像CPU代码。没有金属模拟器,所以这个问题没有意义。您不应该在Metal编译代码上使用lipo。

Metal是它自己的编译格式,它不像CPU代码。没有金属模拟器,所以这个问题没有意义。您不应该在金属编译代码上使用lipo