Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Nov 3, 2023
1 parent 5f2d4e5 commit cdb9688
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 10 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ios-demos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: iOS Demos

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'demo/ios/EagleDemo/**'
- '.github/workflows/ios-demos.yml'
pull_request:
branches: [ main, 'v[0-9]+.[0-9]+' ]
paths:
- 'demo/ios/EagleDemo/**'
- '.github/workflows/ios-demos.yml'

defaults:
run:
working-directory: demo/ios/EagleDemo

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install Cocoapods
run: gem install cocoapods

- name: Install AppCenter CLI
run: npm install -g appcenter-cli

- name: Make build dir
run: mkdir ddp

- name: Run Cocoapods
run: pod install

- name: Build
run: xcrun xcodebuild build
-configuration Debug
-workspace EagleDemo.xcworkspace
-sdk iphoneos
-scheme EagleDemo
-derivedDataPath ddp
CODE_SIGNING_ALLOWED=NO
8 changes: 1 addition & 7 deletions binding/ios/EagleAppTest/EagleAppTest/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,4 @@

import UIKit

class ViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()
}

}
class ViewController: UIViewController { }
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class EagleAppTestUITests: BaseTest {

func testMessageStack() throws {
let enrollUrls = enrollUrls()

let eagleProfiler = try EagleProfiler(accessKey: accessKey)
for url in enrollUrls {
let pcm = try readPcmFromFile(testAudioURL: url)
Expand Down Expand Up @@ -179,7 +179,7 @@ class EagleAppTestUITests: BaseTest {

func testProcessMessageStack() throws {
let enrollUrls = enrollUrls()

let eagleProfiler = try EagleProfiler(accessKey: accessKey)
for url in enrollUrls {
let pcm = try readPcmFromFile(testAudioURL: url)
Expand Down
2 changes: 1 addition & 1 deletion binding/ios/EagleBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public class EagleBase {
var messageStackDepth: Int32 = 0
let status = pv_get_error_stack(&messageStackRef, &messageStackDepth)
if status != PV_STATUS_SUCCESS {
throw pvStatusToKoalaError(status, "Unable to get Eagle error state")
throw pvStatusToEagleError(status, "Unable to get Eagle error state")
}

var messageStack: [String] = []
Expand Down

0 comments on commit cdb9688

Please sign in to comment.