validateNewTexture:89: failed assertion `BytesPerRow of a buffer-backed texture with pixelFormat

Xcode升级之后(Version 13.1)编译的ipa运行时提示

validateNewTexture:89: failed assertion `BytesPerRow of a buffer-backed texture with pixelFormat(MTLPixelFormatBGRA8Unorm) must be aligned to 64 bytes, found bytesPerRow(5344)'

解决方案:

Product->Scheme->Edit Scheme->Diagnostics->取消API Validation

参考资料:https://stackoverflow.com/questions/58043738/validatenewtexture89-failed-assertion-bytesperrow-of-a-buffer-backed-texture/58051893

猜你喜欢

转载自blog.csdn.net/auccy/article/details/121148873