Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Nov 28, 2024
1 parent 7c84c80 commit fb0ed81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ios-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: XCode Build
run: xcrun xcodebuild build-for-testing
-configuration Debug
-project  KoalaAppTest.xcodeproj
-project KoalaAppTest.xcodeproj
-sdk iphoneos
-scheme PerformanceTest
-derivedDataPath ddp
Expand Down
8 changes: 8 additions & 0 deletions binding/ios/Koala.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ import PvKoala
/// iOS binding for Koala Noise Suppression Engine. Provides a Swift interface to the Koala library.
public class Koala {

#if SWIFT_PACKAGE

static let resourceBundle = Bundle.module

#else

static let resourceBundle: Bundle = {
let myBundle = Bundle(for: Koala.self)

Expand All @@ -31,6 +37,8 @@ public class Koala {
return resourceBundle
}()

#endif

private var handle: OpaquePointer?

/// The number of audio samples per frame.
Expand Down
8 changes: 1 addition & 7 deletions demo/ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ Signup or Login to [Picovoice Console](https://console.picovoice.ai/) to get you

## Running the Demo

Copy your `AccessKey` into the `ACCESS_KEY` variable inside [`ViewModel.swift`](./KoalaDemo/KoalaDemo/ViewModel.swift).

Before building the demo app, run the following from `KoalaDemo` directory to install the Koala CocoaPod:

```ruby
pod install
```
Copy your `AccessKey` into the `${YOUR_ACCESS_KEY_HERE}` variable inside [`ViewModel.swift`](./KoalaDemo/KoalaDemo/ViewModel.swift).

Open [KoalaDemo.xcodeproj](./KoalaDemo/KoalaDemo.xcodeproj) and run the demo.

0 comments on commit fb0ed81

Please sign in to comment.