Coder Social home page Coder Social logo

Comments (5)

vikram-chaitanya avatar vikram-chaitanya commented on May 3, 2024 1

@electricbubble @codeskyblue

Thanks for the help. I was able to build it once changed the command accordingly. But got struck at the next to sign this app using isign(https://github.com/apperian/isign). I am able to sign every other app using isign but this one fails. I am not sure why this is happening. I am getting this error when try to sign the app. Can you please help?

bash-3.2$ isign -c ~/.isign/certificate.pem -k ~/.isign/key.pem -p ~/.isign/isign.mobileprovision -o /tmp/derivedDataPath/Build/Products/Release-iphoneos/WebDriverAgentRunner-Runner-Resigned.app /tmp/derivedDataPath/Build/Products/Release-iphoneos/WebDriverAgentRunner-Runner.app
Traceback (most recent call last):
  File "/usr/local/bin/isign", line 4, in <module>
    __import__('pkg_resources').run_script('isign==1.6.15.1614128083.dev77+root', 'isign')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1453, in run_script
    exec(code, namespace, namespace)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/EGG-INFO/scripts/isign", line 199, in <module>
    isign.resign(app_path, **kwargs)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/isign.py", line 79, in resign
    alternate_entitlements_path)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/archive.py", line 401, in resign
    ua.bundle.resign(signer, provisioning_profile, alternate_entitlements_path)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/bundle.py", line 259, in resign
    super(App, self).resign(signer)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/bundle.py", line 176, in resign
    self.sign(signer)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/bundle.py", line 143, in sign
    framework.resign(signer)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/bundle.py", line 176, in resign
    self.sign(signer)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/bundle.py", line 171, in sign
    executable = self.signable_class(self, self.get_executable_path(), signer)
  File "/Library/Python/2.7/site-packages/isign-1.6.15.1614128083.dev77+root-py2.7.egg/isign/signable.py", line 43, in __init__
    self.m = macho.MachoFile.parse_stream(self.f)
  File "/Library/Python/2.7/site-packages/construct-2.5.2-py2.7.egg/construct/core.py", line 198, in parse_stream
    return self._parse(stream, Container())
  File "/Library/Python/2.7/site-packages/construct-2.5.2-py2.7.egg/construct/core.py", line 670, in _parse
    subobj = sc._parse(stream, context)
  File "/Library/Python/2.7/site-packages/construct-2.5.2-py2.7.egg/construct/core.py", line 851, in _parse
    obj = self.cases.get(key, self.default)._parse(stream, context)
  File "/Library/Python/2.7/site-packages/construct-2.5.2-py2.7.egg/construct/core.py", line 670, in _parse
    subobj = sc._parse(stream, context)
  File "/Library/Python/2.7/site-packages/construct-2.5.2-py2.7.egg/construct/core.py", line 445, in _parse
    raise ArrayError("expected %d, found %d" % (count, c), sys.exc_info()[1])
construct.core.ArrayError: ('expected 4, found 3', ArrayError('expected 26, found 5', MappingError('no decoding mapping for 2147483700 [cmd]',)))

from taobao-iphone-device.

electricbubble avatar electricbubble commented on May 3, 2024
xcodebuild build-for-testing -workspace WebDriverAgent.xcworkspace/ -scheme WebDriverAgentRunner \
-sdk iphoneos -configuration Release -derivedDataPath /tmp/derivedDataPath

-scheme WebDriverAgentRunner

from taobao-iphone-device.

codeskyblue avatar codeskyblue commented on May 3, 2024

Try this: https://dantheman827.github.io/ios-app-signer/

from taobao-iphone-device.

vikram-chaitanya avatar vikram-chaitanya commented on May 3, 2024

@electricbubble @codeskyblue

Thanks for the suggestions. I tried to see if its possible to re-sign the web driver agent ipa file in linux system, but since it seems like its not working out, I has to settle for macOS system. If you know some way of signing this in linux please do let me know. Anyway thanks again for the suggestions.

from taobao-iphone-device.

codeskyblue avatar codeskyblue commented on May 3, 2024

@vikram-chaitanya How about this tool. https://github.com/sauce-archives/isign works on Linux

from taobao-iphone-device.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.