Cannot initialize kernel with given library data.

Error

2021-02-19 10:12:59.279429+0900 **** [58937:5072989] [api] +[CIKernel kernelWithFunctionName:fromMetalLibraryData:options:error:] Cannot initialize kernel with given library data.

Fatal error: ‘try!’ expression unexpectedly raised an error: Error Domain=CIKernel Code=6 “(null)” UserInfo={CINonLocalizedDescriptionKey=Cannot initialize kernel with given library data.}: file ****/MyFilter.swift, line 11

2021-02-19 10:12:59.280439+0900 ****[58937:5072989] Fatal error: ‘try!’ expression unexpectedly raised an error: Error Domain=CIKernel Code=6 “(null)” UserInfo={CINonLocalizedDescriptionKey=Cannot initialize kernel with given library data.}: file ****/MyFilter.swift, line 11

Cause

The Metal Compiler and Linker flags have not been set.

Solution

Add the following -fcikernel flags to the Build Settings.

投稿者: admin

Free Software Engineer

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です