- List available simulators with
xcrun simctl list devices available - If one is booted already, use that. Prefer iPhone xx Pros, the latest ones
- Run the unit tests with
xcodebuild test -project YourApp.xcodeproj -scheme YourScheme -destination 'platform=iOS Simulator,name=iPhone 17 Pro'. The app is usually in the root of the directory. The simulator is the one from step 2. The scheme has to be found out
分类: 开发与工程无需 API Key
swift-unit-tests
如何运行Swift单元测试
微信扫一扫