Skip to content
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

fix: build error #2356

Merged
merged 2 commits into from
Mar 25, 2024
Merged

fix: build error #2356

merged 2 commits into from
Mar 25, 2024

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Mar 25, 2024

Error: lib/simulator-management.js(41,10): error TS2339: Property 'map' does not exist on type 'Promise<any>'.
Error: lib/simulator-management.js(50,63): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
npm ERR! code 1
npm ERR! path /home/runner/work/appium-xcuitest-driver/appium-xcuitest-driver
npm ERR! command failed
npm ERR! command sh -c npm run rebuild

npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-03-25T00_07_44_898Z-debug-0.log
Error: Process completed with exit code 1.

https://github.com/appium/appium-xcuitest-driver/actions/runs/8413083261/job/23034781606

@@ -36,15 +36,22 @@ async function createSim(caps) {
if (!deviceName) {
let deviceNames = 'none';
try {
deviceNames = await simctl
.getDevices(platformVersion, platform)
deviceNames = (await simctl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a nice catch, which would be hardly possible without proper typing.
I am currently working on appium-ios-simulator lib changes, so it could also be properly typed


if (!platformVersion) {
throw new Error(
`'platformVersion' is required.`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no need to split a short error message into multiple lines

@KazuCocoa KazuCocoa merged commit 5c5ebc3 into master Mar 25, 2024
12 checks passed
@KazuCocoa KazuCocoa deleted the fix-builderror branch March 25, 2024 16:26
github-actions bot pushed a commit that referenced this pull request Mar 25, 2024
## [7.5.3](v7.5.2...v7.5.3) (2024-03-25)

### Bug Fixes

* build error ([#2356](#2356)) ([5c5ebc3](5c5ebc3))
* typo by [#2351](#2351) ([63589a1](63589a1))

### Miscellaneous Chores

* include devicectl in IOSDeploy object ([#2352](#2352)) ([6c5abd1](6c5abd1))
Copy link
Contributor

🎉 This PR is included in version 7.5.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants