Comments (14)
If you debug the app in Xcode does it seem to hang or crash anywhere?
from ios-app-signer.
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.
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.
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.
Same here. sleep(2) also helped (thanks mribeiro!)
from ios-app-signer.
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.
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.
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.
Sorry about the wait, Christmas, New years and everything...
This problem should be fixed in r15
from ios-app-signer.
No apologizes necessary, after all you're doing us all a favour. Will test ASAP and and close of fixed :-)
from ios-app-signer.
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.
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.
plz help me , i have problem with ios app signer
from ios-app-signer.
@mhussien84 Do you have your developer certificate in Keychain?
from ios-app-signer.
Related Issues (20)
- Master
- Y
- version 1.14.0 not signing properly HOT 1
- [Q] How to update / re-sign the app? HOT 1
- Version 1.14.0 problem
- Can't Change Application ID HOT 6
- done HOT 1
- 启动闪退
- Signer
- Unable to install resigned apps through Xcode HOT 2
- Appsion '
- 重签之后我配置的 applinks 会丢失 HOT 1
- How to re-sign Telegram.ipa HOT 4
- An installation error is reported HOT 2
- this app does not work with tvos17 HOT 6
- If the ipa file with the framework is re-signed, launch the app is crash
- Keep reminding, Unable to change App ID to com.security.BatteryCam.wen, provisioning profile won't allow it HOT 3
- error extracting the ipa file HOT 5
- G
- Altserver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-app-signer.