swift-coreml-diffusers icon indicating copy to clipboard operation
swift-coreml-diffusers copied to clipboard

Cannot find type 'NLContextualEmbedding' in scope

Open naticio opened this issue 2 years ago • 2 comments

I updated the common.xconfig file but still get this error

Cannot find type 'NLContextualEmbedding' in scope

for this line

let embeddingModel: NLContextualEmbedding

iPhone 11 Pro Max, iOS 16.4

naticio avatar Jun 15 '23 19:06 naticio

I literally JUST figured this out as your message came in. The latest code is built using Xcode 15 beta. NLContextualEmbedding is a new API requiring the the beta targets it seems. I downloaded the beta from https://developer.apple.com/xcode/ and it builds fine now.

ghost avatar Jun 15 '23 20:06 ghost

yes! sorry I figured it out as well, currently waiting for Xcode 15 to finish downloading, thanks!

naticio avatar Jun 15 '23 20:06 naticio