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

Add a command to check whether a device has enabled developer mode. D… #556

Merged
merged 2 commits into from Jun 28, 2022

Conversation

ivanhernandez13
Copy link

…eveloper mode was introduced in iOS 16. When checking devices on older versions the command will print an unsupported error.

…eveloper mode was introduced in iOS 16. When checking devices on older versions the command will print an unsupported error.
src/ios-deploy/ios-deploy.m Outdated Show resolved Hide resolved
@ivanhernandez13 ivanhernandez13 merged commit aa870b5 into ios-control:master Jun 28, 2022
@@ -91,6 +91,7 @@
mach_error_t AMDeviceLookupApplications(AMDeviceRef device, CFDictionaryRef options, CFDictionaryRef *result);
int AMDeviceGetInterfaceType(AMDeviceRef device);
AMDeviceRef AMDeviceCopyPairedCompanion(AMDeviceRef device);
bool AMDeviceCopyDeveloperModeStatus(AMDeviceRef device, unsigned int *arg1);

Choose a reason for hiding this comment

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

Got some build issue for this

Undefined symbols for architecture arm64:
  "_AMDeviceCopyDeveloperModeStatus", referenced from:
      _check_developer_mode in ios-deploy.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

relates to Homebrew/homebrew-core#104730

Copy link
Author

Choose a reason for hiding this comment

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

Oops, this symbol is new so Xcode 14 is required to build it. Will revert this commit and look into gating this to only be included when building with Xcode 14.

Choose a reason for hiding this comment

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

Tested out the revert, works for me in my local. Thanks @ivanhernandez13!

ivanhernandez13 added a commit that referenced this pull request Jun 30, 2022
ivanhernandez13 added a commit to ivanhernandez13/ios-deploy that referenced this pull request Aug 11, 2022
ivanhernandez13 added a commit to ivanhernandez13/ios-deploy that referenced this pull request Aug 11, 2022
…eveloper mode was introduced in iOS 16. When checking devices on older versions the command will print an unsupported error.

Retry of ios-control#556 that guards the developer mode check by a preprocessor define  so that it is not build by default. Developer mode requires a MobileDevice method introduced with Xcode 14 so including it by default will break builds where Xcode 14 is unavailable.
ivanhernandez13 added a commit to ivanhernandez13/ios-deploy that referenced this pull request Aug 11, 2022
…eveloper mode was introduced in iOS 16. When checking devices on older versions the command will print an unsupported error.

Retry of ios-control#556 that guards the developer mode check by a preprocessor define  so that it is not build by default. Developer mode requires a MobileDevice method introduced with Xcode 14 so including it by default will break builds where Xcode 14 is unavailable.
ivanhernandez13 added a commit that referenced this pull request Aug 26, 2022
#563)

Retry of #556 that guards the developer mode check by a preprocessor define  so that it is not build by default. Developer mode requires a MobileDevice method introduced with Xcode 14 so including it by default will break builds where Xcode 14 is unavailable.
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.

None yet

3 participants