Skip to content

Commit

Permalink
Merge pull request doronz88#800 from doronz88/bugfix/remoteserver-add…
Browse files Browse the repository at this point in the history
…-nsvalue

remote_server: add `NSValue` decoding support
  • Loading branch information
doronz88 authored Jan 24, 2024
2 parents abcb264 + 23ad893 commit 9227411
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pymobiledevice3/services/remote_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ def decode_archive(archive_obj: archiver.ArchivedObject):
return NSURL(archive_obj.decode('NS.base'), archive_obj.decode('NS.relative'))


class NSValue:
@staticmethod
def decode_archive(archive_obj: archiver.ArchivedObject):
return archive_obj.decode('NS.rectval')


class NSMutableData:
@staticmethod
def decode_archive(archive_obj: archiver.ArchivedObject):
return archive_obj.decode('NS.data')


class XCTestConfiguration:
_default = {
# 'testBundleURL': UID(3),
Expand Down Expand Up @@ -221,9 +233,10 @@ def decode_archive(archive_obj: archiver.ArchivedObject):
'NSError': NSError,
'NSUUID': NSUUID,
'NSURL': NSURL,
'NSValue': NSValue,
'NSMutableData': NSMutableData,
'XCTestConfiguration': XCTestConfiguration})


archiver.Archive.inline_types = list(set(archiver.Archive.inline_types + [bytes]))


Expand Down

0 comments on commit 9227411

Please sign in to comment.