Skip to content

Issue: LibWhisper.swift Fails to Build Objective-C Module whisper #2757

@DeepBhupatkar

Description

@DeepBhupatkar

I'm encountering a build issue with the iOS Swift example for whisper.cpp. The project throws the following error:
Steps I followed:

  1. Cloned the whisper.cpp repository.
  2. Tried running the iOS Swift example located in examples/whisper.swiftui.

However, the build fails with the following errors:
Key Errors:
'whisper.h' file not found with
Multiple Cannot find in scope errors, such as:
Cannot find 'whisper_free' in scope
Cannot find 'whisper_full_default_params' in scope
Cannot find 'WHISPER_SAMPLING_GREEDY' in scope

Am I missing any steps? I followed all five steps from the SwiftUI project guide : https://github.com/ggerganov/whisper.cpp/tree/master/examples/whisper.swiftui, but despite trying multiple times, this issue keeps occurring. same thing happing in object-c example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions