Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

if deployment target>9,sign came wrong #122

Open
Vw5SblVT opened this issue Apr 18, 2019 · 4 comments
Open

if deployment target>9,sign came wrong #122

Vw5SblVT opened this issue Apr 18, 2019 · 4 comments

Comments

@Vw5SblVT
Copy link

Traceback (most recent call last):
File "/usr/local/bin/isign", line 190, in
isign.resign(app_path, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/isign/isign.py", line 76, in resign
info_props)
File "/usr/local/lib/python2.7/dist-packages/isign/archive.py", line 395, in resign
ua.bundle.resign(signer, provisioning_profile)
File "/usr/local/lib/python2.7/dist-packages/isign/bundle.py", line 240, in resign
super(App, self).resign(signer)
File "/usr/local/lib/python2.7/dist-packages/isign/bundle.py", line 167, in resign
self.sign(signer)
File "/usr/local/lib/python2.7/dist-packages/isign/bundle.py", line 163, in sign
executable.sign(self, signer)
File "/usr/local/lib/python2.7/dist-packages/isign/signable.py", line 143, in sign
offset, new_codesig_data = self._sign_arch(arch, app, signer)
File "/usr/local/lib/python2.7/dist-packages/isign/signable.py", line 91, in _sign_arch
arch['codesig'].resign(app, signer)
File "/usr/local/lib/python2.7/dist-packages/isign/codesig.py", line 291, in resign
self.set_codedirectory(bundle.seal_path, bundle.info_path, signer)
File "/usr/local/lib/python2.7/dist-packages/isign/codesig.py", line 213, in set_codedirectory
cd.bytes = macho_cs.CodeDirectory.build(cd.data)
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 212, in build
self.build_stream(obj, stream)
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 219, in build_stream
self._build(obj, stream, Container())
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 691, in _build
sc._build(subobj, stream, context)
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 981, in _build
self.subcon._build(obj, stream, context)
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 1297, in _build
self.bound._build(obj, stream, context)
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 456, in _build
self.subcon._build(subobj, stream, context)
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 400, in _build
_write_stream(stream, self.lengthfunc(context), obj)
File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 312, in _write_stream
raise FieldError("expected %d, found %d" % (length, len(data)))
construct.core.FieldError: expected 32, found 20

@czokie
Copy link

czokie commented Apr 19, 2019

This could be related to #120 ... But there has been no reply. Is this software still under development, or is it abandonware?

@softwarevamp
Copy link

softwarevamp commented Jun 7, 2019

not related to #120. any helpers? @gregkuhnert

@gregkuhnert
Copy link

Its the same error message that was in my report...

@junko2013
Copy link

junko2013 commented Jan 3, 2020

apperian@1222eab,see this pull request,modify the file and rerun the INSTALL.sh,it worked for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants