Skip to content

Commit

Permalink
remote_server: add NSValue decoding support
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jan 24, 2024
1 parent abcb264 commit 23ad893
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 23ad893

Please sign in to comment.