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
Conversation
…eveloper mode was introduced in iOS 16. When checking devices on older versions the command will print an unsupported error.
…tements to NSLogOut statements.
@@ -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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
This reverts commit aa870b5.
This reverts commit aa870b5.
…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.
…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.
…eveloper mode was introduced in iOS 16. When checking devices on older versions the command will print an unsupported error.