Quantcast

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Affects Versions: current
Assignee: wolfs
Components: all-changes
Created: 12/Jul/12 10:56 PM
Description:

Cannot run Xcode "instruments -t <path>/Automation.tracetemplate <path>/iPhone.app" command with jenkins mac installer. It seems to fail when running the full instruments command. I used another installer and it works https://github.com/stisti/jenkins-app so it must be the way it is installed with jenkins-1.474.pkg.

I've done everything possible. Changing the user/group to <user>:staff, as well as /Users/Shared/Jenkins, and relaunching with sudo launchctl load -w org.jenkins-ci.plist; sudo launchctl unload -w org.jenkins-ci.plist

Currently out of ideas...but this installer does not work well with me.

Environment: OSX 10.7.4
Project: Jenkins
Priority: Major Major
Reporter: dave a
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
Change By: Arnaud Héritier (16/Jul/12 7:52 AM)
Component/s: core
Component/s: xcode
Component/s: all-changes
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Sami Tikka (18/Jul/12 11:20 PM)
Assignee: wolfs Sami Tikka
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Sami Tikka started work on Bug JENKINS-14421
Change By: Sami Tikka (18/Jul/12 11:20 PM)
Status: Open In Progress
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Sami Tikka commented on Bug JENKINS-14421

If you use the official Jenkins installer for Mac, it installs Jenkins as a launch daemon. Launch daemons run in the system context where they have no access to any GUI session.

If I try the instruments command from Terminal, it needs to pop up an authorization dialog. This will not be possible for launch daemons.

Your best bet is to either

  • Unload the launch daemon and move the launchd job config file from /Library/LaunchDaemons to ~/Library/LaunchAgents. Launch agents run in Aqua context, so it processes started by Jenkins will be able to display windows and access other GUI session services.
  • Just run "java -jar jenkins.war" in a Terminal.
  • Use Jenkins.app

Currently the Mac installer is working correctly, although I admit the official Mac installer does not seem to serve the Mac developers very well. Probably a good size portion of Jenkins users on Mac are iOS developers and running Jenkins as a launch daemon seems be a poor match for their use case.

There aren't many Jenkins developers working on the Mac installer (only 2, I think). I think we need to change the Mac installer in some way but how exactly, I do not know. If you have suggestions, please let us know on the mailing lists or here.

I will close this for now as this isn't really a bug in Jenkins.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Sami Tikka resolved Bug JENKINS-14421 as Won't Fix

Not really a bug in Jenkins. More like a feature request.

Change By: Sami Tikka (18/Jul/12 11:33 PM)
Status: In Progress Resolved
Fix Version/s: current
Resolution: Won't Fix
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
dave a commented on Bug JENKINS-14421

Hi Sami. Thanks for the solutions. Ideally the first bullet would be the preferred solution.
1. This solution doesn't work for me. I even rebooted.
2. This works...but if my terminal died it would be over.
3. I prefer not to go this route, but it works.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
dave a edited a comment on Bug JENKINS-14421

Hi Sami. Thanks for the solutions. You have solved my issue!
1. This solution works for me after a reboot.
2. This works...but if my terminal died it would be over.
3. I prefer not to go this route, but it works.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14421) Cannot run Xcode "instruments" command with jenkins mac installer.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Sami Tikka commented on Bug JENKINS-14421

I just remembered I had written a related blog post some time ago: http://thingsyoudidntknowaboutjenkins.tumblr.com/post/23721538439/different-ways-to-run-jenkins

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...