Whenever I try to import Metal
in my Swift file or a playground, Xcode says "No such module 'Metal'". Is this a Beta 1 bug?
This is a platform issue, not a Swift issue. If you manually inspect the platform SDKs inside Xcode, you'll see that the Metal.framework only exists in the iOS8 SDK. That means you can only link to the framework when your code is going to run on an actual iOS device, and since playgrounds don't run on the device, there's no way to link to the framework.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With