react-native-apple-llm icon indicating copy to clipboard operation
react-native-apple-llm copied to clipboard

broken since iOS 26 Beta 5 update

Open y0hnn opened this issue 1 year ago • 4 comments

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

y0hnn avatar Aug 06 '25 14:08 y0hnn

Looking into it, thanks for the link

ecoArcGaming avatar Aug 06 '25 15:08 ecoArcGaming

@deveix probably need to push a new version to npm

ecoArcGaming avatar Aug 06 '25 18:08 ecoArcGaming

Thanks for the efforts @ecoArcGaming @y0hnn Published a new version with the fix (v1.0.12).

deveix avatar Aug 07 '25 02:08 deveix

thks! all good now!

y0hnn avatar Aug 15 '25 09:08 y0hnn