react-native-apple-llm
react-native-apple-llm copied to clipboard
broken since iOS 26 Beta 5 update
Since iOS 26 Beta 5 update, the build is failing :
33 | }
34 |
> 35 | func call(arguments: GeneratedContent) async throws -> ToolOutput {
| ^ cannot find type 'ToolOutput' in scope
36 | guard let module = module else {
37 | throw NSError(domain: "BridgeToolError", code: 1, userInfo: [NSLocalizedDescriptionKey: "Module reference lost"])
38 | }
❌ (/app/node_modules/react-native-apple-llm/ios/AppleLLMModule.swift:13:7)
11 |
12 | @available(iOS 26, *)
> 13 | class BridgeTool: Tool, @unchecked Sendable {
| ^ type 'BridgeTool' does not conform to protocol 'Tool'
14 |
15 | typealias Arguments = GeneratedContent
16 |
Seems Foundation Framework changed. If this can help, there is a thead on developer forum : https://developer.apple.com/forums/thread/795839
Looking into it, thanks for the link
@deveix probably need to push a new version to npm
Thanks for the efforts @ecoArcGaming @y0hnn Published a new version with the fix (v1.0.12).
thks! all good now!