Skip to content

Document build and test commands #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

twitchard
Copy link
Collaborator

These are the commands that work on my machine. No idea what works in general.

@chrismanahan
Copy link
Collaborator

trying to get these working on my machine. what're your versions of swift and Xcode?

my xcode is 16.4 and

$ swift --version
swift-driver version: 1.120.5 Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
Target: arm64-apple-macosx15.0

my errors currently

$ swift build --triple arm64-apple-ios --sdk $(xcrun --sdk iphoneos --show-sdk-path)
Building for debugging...
error: couldn't build /Users/hume/src/hume-swift-sdk/.build/arm64-apple-ios/debug/Hume.build/TTSClient.swift.o because of multiple producers: Compiling Swift Module 'Hume' (115 sources), Compiling Swift Module 'Hume' (115 sources)

$ xcodebuild test -scheme Hume-Package -destination 'platform=iOS Simulator,name=iPhone 16'
....
Testing failed:
	Filename "TTSClient.swift" used twice: '/Users/hume/src/hume-swift-sdk/Sources/Hume/API/TTS/Client/TTSClient.swift' and '/Users/hume/src/hume-swift-sdk/Sources/Hume/API/TTS/Resources/TTS/TTSClient.swift'
	Testing cancelled because the build failed.

** TEST FAILED **


The following build commands failed:
	SwiftDriver Hume normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Hume' from project 'Hume')
	Testing workspace hume-swift-sdk with scheme Hume-Package
(2 failures)

This commit introduces a new GitHub Actions workflow to build and test the Hume Swift SDK. The workflow includes steps for:
- Checking Swift code formatting
- Building the project for iOS devices
- Running tests on the iOS Simulator
- Linting the podspec

Additionally, this commit updates the `CONTRIBUTING.md` file to document these commands.
@twitchard twitchard force-pushed the twitchard/document-how-to-build-and-test branch from 2142acc to d1285c0 Compare August 21, 2025 20:08
This commit changes the iOS Simulator used for testing to "iPhone 15 Pro" and adds a step to list available simulators to help with debugging.
This commit specifies the iOS version for the simulator in the CI workflow to ensure that the correct simulator is used. This should fix the "Unable to find a device" error.
This commit updates the CI workflow to use the "iPhone 16 Pro" simulator with iOS 26.0, which is available in the GitHub Actions runner. This should fix the "Unable to find a device" error.
This commit updates the CI workflow to create and boot an iOS simulator before running tests. This ensures that a simulator is available and avoids the "Unable to find a device" error.

The `CONTRIBUTING.md` file has been updated to reflect the new testing strategy and to provide instructions on how to create a simulator locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants