Fixes deprecated plistlib API
Support for the old API was removed in Python 3.9 by bigfootjon. This new API has been available since 3.4. Issue: https://bugs.python.org/issue36409
This commit is contained in:
parent
b7e312255d
commit
530974e08c
1 changed files with 4 additions and 2 deletions
|
@ -207,7 +207,8 @@ class TargetIos(Target):
|
||||||
plist_rfn = join(self.app_project_dir, plist_fn)
|
plist_rfn = join(self.app_project_dir, plist_fn)
|
||||||
version = self.buildozer.get_version()
|
version = self.buildozer.get_version()
|
||||||
self.buildozer.info('Update Plist {}'.format(plist_fn))
|
self.buildozer.info('Update Plist {}'.format(plist_fn))
|
||||||
plist = plistlib.readPlist(plist_rfn)
|
with open(plist_rfn, 'rb') as f:
|
||||||
|
plist = plistlib.load(f)
|
||||||
plist['CFBundleIdentifier'] = self._get_package()
|
plist['CFBundleIdentifier'] = self._get_package()
|
||||||
plist['CFBundleShortVersionString'] = version
|
plist['CFBundleShortVersionString'] = version
|
||||||
plist['CFBundleVersion'] = '{}.{}'.format(version,
|
plist['CFBundleVersion'] = '{}.{}'.format(version,
|
||||||
|
@ -235,7 +236,8 @@ class TargetIos(Target):
|
||||||
}
|
}
|
||||||
|
|
||||||
# ok, write the modified plist.
|
# ok, write the modified plist.
|
||||||
plistlib.writePlist(plist, plist_rfn)
|
with open(plist_rfn, 'wb') as f:
|
||||||
|
plistlib.dump(plist, f)
|
||||||
|
|
||||||
mode = self.build_mode.capitalize()
|
mode = self.build_mode.capitalize()
|
||||||
self.xcodebuild(
|
self.xcodebuild(
|
||||||
|
|
Loading…
Reference in a new issue