Skip to content

fix: change screen id as long for Xcode 13.3#573

Merged
KazuCocoa merged 4 commits intomasterfrom
update-long
Mar 20, 2022
Merged

fix: change screen id as long for Xcode 13.3#573
KazuCocoa merged 4 commits intomasterfrom
update-long

Conversation

@KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Mar 19, 2022

For appium/appium#16604.

not fully checked, but it seems they changed screenID as long long instead of unsigned int.
I haven't fully checked with the relevant code yet. Probably we need to update screenID related code as well.

With Xcode 13.0 x iOS 13.4 also had no issue as long. I'll test more variations, then probably we can only use "long" since it is bigger than int.

  • ok
    • Xcode 13.0
      • iOS 15.4, 12.5.5, 13 (simulators, real devices)
      • tvOS 15.4 (simulators)
    • Xcode 13.3
      • iOS 15.4, 12.5.5, 13 (simulators, real devices)
      • tvOS 15.4, 14 (simulators)

I cleaned my local xcodebuild cache every time, but potentially cache remained as my mistake

@KazuCocoa KazuCocoa changed the title feat: update screen id as long for Xcode 13.3 feat: change screen id as long for Xcode 13.3 Mar 19, 2022
@mykola-mokhnach mykola-mokhnach changed the title feat: change screen id as long for Xcode 13.3 fix: change screen id as long for Xcode 13.3 Mar 19, 2022
{
_Bool _isMainScreen;
int _displayID;
long long _displayID;
Copy link
Member Author

Choose a reason for hiding this comment

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

This change occurred since Xcode 10.2, so this change must be safe

- (double)scale;
- (id)initWithDisplayID:(int)arg1 isMainScreen:(_Bool)arg2;

- (id)initWithDisplayID:(long long)arg1 isMainScreen:(_Bool)arg2 device:(id)arg3 screenDataSource:(id)arg4;
Copy link
Member Author

Choose a reason for hiding this comment

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

this change is also since xcode 10.2

@KazuCocoa KazuCocoa marked this pull request as ready for review March 19, 2022 16:56
@KazuCocoa
Copy link
Member Author

I've updated relevant types.
I'll test later

Copy link

@mykola-mokhnach mykola-mokhnach left a comment

Choose a reason for hiding this comment

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

Thanks @KazuCocoa

@KazuCocoa KazuCocoa merged commit 004c766 into master Mar 20, 2022
@KazuCocoa KazuCocoa deleted the update-long branch March 20, 2022 01:54
github-actions bot pushed a commit that referenced this pull request Mar 20, 2022
## [4.1.6](v4.1.5...v4.1.6) (2022-03-20)

### Bug Fixes

* change screen id as long for Xcode 13.3 ([#573](#573)) ([004c766](004c766))
@github-actions
Copy link

🎉 This PR is included in version 4.1.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

KazuCocoa added a commit that referenced this pull request Mar 20, 2022
* feat: update screen id as long since Xcode 13.3

* update long long

* convert unsigned int to long long in displayId stuff
manabuaota added a commit to manabuaota/airtest-netease that referenced this pull request Feb 14, 2026
## [4.1.6](appium/WebDriverAgent@v4.1.5...v4.1.6) (2022-03-20)

### Bug Fixes

* change screen id as long for Xcode 13.3 ([#573](appium/WebDriverAgent#573)) ([004c766](appium/WebDriverAgent@004c766))
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