Code Monkey home page Code Monkey logo

Comments (14)

DanTheMan827 avatar DanTheMan827 commented on August 26, 2024

If you debug the app in Xcode does it seem to hang or crash anywhere?

from ios-app-signer.

mribeiro avatar mribeiro commented on August 26, 2024

Yeah... I should've done it in the first place 🤦

So, it seems it hangs on line 48 of ProvisioningProfile.swift: let taskOutput = NSTask().execute("/usr/bin/security", workingDirectory: nil, arguments: securityArgs)

if I run the command in the terminal with /usr/bin/security cms -D -i "/Users/aribeiro/Library/MobileDevice/Provisioning Profiles/0068be67-8b96-4096-a783-88fb3ca74fd5.mobileprovision" it gives me the output immediately.

However, I must say this provisioning profile if from that enterprise account I'm enrolled in and it gives 106KB of output (not sure if too much for this kind of operation or not, I'm not an Apple Developer expert).

Also, I tried running this "let taskOutput2 = NSTask().execute("/bin/ls", workingDirectory: nil, arguments: nil)" and worked well, just thought I could have something broken between Swift and Terminal (if that would even make sense).

Let me know if there's something else I can help with

UPDATE: I didn't notice there was an extension for NSTask. The problem lays on "self.waitUntilExit()". I removed this line and added a "sleep(1)", just for testing, and at some point it breaks because "task still running" but at list I got some prov profiles being read.

UPDATE2: With a sleep 2 I can open the app. For now I'll go with this "fix". Let me know If i can run some tests for you.

👍 for you for this app!

from ios-app-signer.

DanTheMan827 avatar DanTheMan827 commented on August 26, 2024

I only have a free developer account so I definitely don't have access to
any provisioning profiles that are that large...

If you step into that line of code with the debugger how far does it get?

There shouldn't be an issue with the size of the file but there may be one
with how I read the command output

On Sat, Dec 26, 2015 at 5:02 AM mribeiro [email protected] wrote:

Yeah... I should've done it in the first place 🤦

So, it seems it hangs on line 48 of ProvisioningProfile.swift: let
taskOutput = NSTask().execute("/usr/bin/security", workingDirectory: nil,
arguments: securityArgs)

if I run the command in the terminal with /usr/bin/security cms -D -i
"/Users/aribeiro/Library/MobileDevice/Provisioning
Profiles/0068be67-8b96-4096-a783-88fb3ca74fd5.mobileprovision" it gives me
the output immediately.

However, I must say this provisioning profile if from that enterprise
account I'm enrolled in and it gives 106KB of output (not sure if too much
for this kind of operation or not, I'm not an Apple Developer expert).

Also, I tried running this "let taskOutput2 = NSTask().execute("/bin/ls",
workingDirectory: nil, arguments: nil)" and worked well, just thought I
could have something broken between Swift and Terminal (if that would even
make sense).

Let me know if there's something else I can help with


Reply to this email directly or view it on GitHub
#7 (comment)
.

from ios-app-signer.

mribeiro avatar mribeiro commented on August 26, 2024

When trying to step into self.waitUntilExit I get the hang immediately, so I'm not even able to try to inspect what may be running over. Nevertheless, I tried to access its implementation but got only until its declaration, so I cannot see anything under the hood.

I was googling around and I found this http://www.raywenderlich.com/36537/nstask-tutorial . It seems that guy is reading the output of a terminal using Notifications, which may be safer than trying to get it all at once as it is done now. Just a wild guess!

from ios-app-signer.

clementbarry avatar clementbarry commented on August 26, 2024

Same here. sleep(2) also helped (thanks mribeiro!)

from ios-app-signer.

DanTheMan827 avatar DanTheMan827 commented on August 26, 2024

The issue appears to be the fact that the pipe can only take 8KB of data at a time and the process will hang until that buffer is flushed.

Provisioning profiles can get quite large and that is causing the hangs at launch for some people.

from ios-app-signer.

benzer avatar benzer commented on August 26, 2024

I am trying to run the iOS app signer and the app won't start for me too. Not sure what sleep2 is . If there is a series of terminal commands to run could someone please post them here?
could some one please explain simply how to get this app running?

I read the page at http://www.raywenderlich.com/36537/nstask-tutorial

El capitan 10.11.2

thanks

from ios-app-signer.

mribeiro avatar mribeiro commented on August 26, 2024

You need to check out the code, open it in Xcode, change it and run. If you're not familiar with development I don't advise you going thru this way . Better wait for a fix

from ios-app-signer.

DanTheMan827 avatar DanTheMan827 commented on August 26, 2024

Sorry about the wait, Christmas, New years and everything...

This problem should be fixed in r15

from ios-app-signer.

mribeiro avatar mribeiro commented on August 26, 2024

No apologizes necessary, after all you're doing us all a favour. Will test ASAP and and close of fixed :-)

from ios-app-signer.

mribeiro avatar mribeiro commented on August 26, 2024

All good! App can take a couple seconds to open (I have A LOT of prov profiles) but works flawlessly!
Good work! Thanks
👍

from ios-app-signer.

benzer avatar benzer commented on August 26, 2024

yes thanks! works now!

On Mon, Jan 4, 2016 at 2:55 AM, mribeiro [email protected] wrote:

All good! App can take a couple seconds to open (I have A LOT of prov
profiles) but works flawlessly!
Good work! Thanks
[image: 👍]


Reply to this email directly or view it on GitHub
#7 (comment)
.

from ios-app-signer.

mhussien84 avatar mhussien84 commented on August 26, 2024

plz help me , i have problem with ios app signer
screen shot 2016-02-17 at 6 29 10 am
screen shot 2016-02-17 at 6 29 49 am

from ios-app-signer.

mribeiro avatar mribeiro commented on August 26, 2024

@mhussien84 Do you have your developer certificate in Keychain?

from ios-app-signer.

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.