In an application, I am using a Metal filter to remove the background from a playing video. Here is the filter's complete code:
The problem is that, when compiling in Xcode 12 for iOS 14, two errors pop up about this file preventing the build from compiling: "/air-lld:1:1: symbol(s) not found for target 'air64-apple-ios13.0.0'" and "air-lld command failed with exit code 1 (use -v to see invocation)". If I comment out the filter, the build is able to compile as normal. How can I use this filter in my app and have it compile as well?
Code Block Metal #include <metal_stdlib> #include <CoreImage/CoreImage.h> // includes CIKernelMetalLib.h extern "C" { namespace coreimage { float4 alphaFrame(sampler source, sampler mask) { float4 color = source.sample(source.coord()); float opacity = mask.sample(mask.coord()).r; return float4(color.rgb, opacity); } } }
The problem is that, when compiling in Xcode 12 for iOS 14, two errors pop up about this file preventing the build from compiling: "/air-lld:1:1: symbol(s) not found for target 'air64-apple-ios13.0.0'" and "air-lld command failed with exit code 1 (use -v to see invocation)". If I comment out the filter, the build is able to compile as normal. How can I use this filter in my app and have it compile as well?