krypted.com

Tiny Deathstars of Foulness

Apple developers in growing development teams invariably need a continuous integration system. This automates the build, analysis, and testing solution for software development using Xcode. macOS Server has an Xcode service, capable of integrating your developer account with git, providing many of the options required to build a continuous integration system. Before you configure the Xcode service that can take committed code and then test and build your software, you’ll need an Apple developer account. The Xcode service then links git to a developer account and runs automations, referred to as bots, in Xcode. Therefore, you’ll also need to have Xcode installed on the computer running the Xcode service. Bots are then managed and reported on using a web app that the Server app runs. Once the pre-requisites are met, open the Server app and click on the Xcode service. screen-shot-2016-09-25-at-11-50-35-pm Click on the Choose Xcode button. screen-shot-2016-09-25-at-11-50-54-pm When prompted, browse to the version of Xcode you have installed on the server. Screen Shot 2015-09-24 at 10.11.46 PM Configure the user account to use for the service. screen-shot-2016-09-25-at-11-52-00-pm The service will then require you to login. Do so when prompted. screen-shot-2016-09-25-at-11-53-30-pm This enables the user account, which you will then need to login as. screen-shot-2016-09-25-at-11-54-24-pm You’ll see a new user environment. Use fast user switching to then switch back to your other account. Xcode will require access to the Accessibility framework to run unit tests. Click on Request Access to provide the rights to Xcode to do so. Once access has been granted to Xcode, you’ll see the version indicated in the Build Using field. screen-shot-2016-09-25-at-11-59-59-pm Next, click on Add Team, in order to identify the correct team from your Apple Developer account that will have access to the Xcode service. screen-shot-2016-09-26-at-12-00-28-am When prompted, select the team from your Apple Developer account that you wish to provide access to the server, note that you need to be a team agent or an administrator of the developer organization. screen-shot-2016-09-26-at-12-02-15-am Click on the Repositories tab. Here, you will define repositories for your Xcode projects. Click on the Repository Access button to define what protocols git should be accessible via. screen-shot-2016-09-26-at-12-02-45-am At the Repository Access screen, select HTTPS or SSH. Click OK. screen-shot-2016-09-26-at-12-04-11-am Click the Edit Repository Creators button. At the Repository Access screen, add any groups of users that should have access to create new git repositories. Once all of the appropriate users or groups have been added, click on OK. screen-shot-2016-09-26-at-12-04-30-am   Select your repository again, and click on the HTTPS Access button to provide access via HTTPS. Once saved, double-click on the repository again to see the uri for each type of access. And that’s it. screen-shot-2016-09-26-at-12-05-21-am Next, you’ll want to add a repository to the Xcode app. To do so, open Xcode and then use the Source Control menu to select Check Out. From there, you’ll get a Check Out screen. Screen Shot 2015-09-25 at 7.04.42 PM At the Check Out screen, enter the uniform the repository screen, shown in the previous step of this article and click on the Next button. Next, you’ll need to create bots to automate your build process.

October 8th, 2016

Posted In: Mac OS X Server, Programming

Tags: , , , , , , ,

The logs in Xcode Server (Server 5.2 for Sierra) by default point to /Library/Server/XcodeLogs/credserver.log. This takes all of the output from xcscredd and xcscredhandler. If you’re doing a lot of debugging then logs can be pointed to another location, such as another drive. The path to the logs is defined in the /Applications/Server.app/Contents/ServerRoot/System/Library/LogConfiguration directory. The file to edit is a standard property list, XCSCredentialServer.plist:
<?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>claimedFacilities</key> <array> <string>servermgrd</string> <string>servermgr-listener</string> <string>servermgr-notify</string> </array> <key>claimedSenders</key> <array> <string>servermgrd</string> <string>servermgr-listener</string> <string>servermgr-notify</string> </array> <key>logMaximumLevel</key> <string>debug</string> <key>logPath</key> <string>/Library/Server/Logs/servermgrd.log</string> </dict> </plist>
Once open, look for a key called logPath. Change that to the desired path, such as /Volumes/MyDrive/Logs/credserver.log and then restart the service: serveradmin stop xcode; serveradmin start xcode

October 1st, 2016

Posted In: Mac OS X Server

Tags: , , , , , , ,

When applying management profiles, it helps to be able to look at the logs and troubleshoot why any settings aren’t applied. To view logs on an Apple TV, open Xcode and then click on an Apple TV. Screen Shot 2015-11-02 at 9.37.52 PM From the Apple TV screen, click on View Device Logs. The logs will appear in the app. Screen Shot 2015-11-02 at 9.37.58 PM Click Done when you’re finished reviewing the logs.

November 8th, 2015

Posted In: Apple TV

Tags: , , , , , , ,

The new Apple TV has a USB-C port. It’s got some great uses. One of which is that you can use it to take screenshots through Xcode. To do so, you’ll either need a USB-C MacBook or a USB-C to USB adapter. Once you’ve plugged your computer into the back of the Apple TV, open Xcode and choose Devices from the Window menu at the top of the screen. Screen Shot 2015-11-02 at 9.37.52 PM From Devices, click on your new 4th Generation Apple TV. You’ll then be greeted by a Take Screenshot button. Click on it. Screen Shot 2015-11-02 at 9.37.35 PM You should then see the screen from your Apple TV. Now, good luck with that pose… Now that I can take a proper screenshot of an Apple TV I’ll have to meditate on whether or not I’ll someday write a book on the darned things…  

November 3rd, 2015

Posted In: Apple TV

Tags: , , , , ,

OS X and iOS developers need a continuous integration system. This automates the build, analysis, and testing solution for software development using Xcode. OS X Server has an Xcode service, capable of integrating your developer account with git, providing many of the options required to build a continuous integration system. Before you configure the Xcode service that can take committed code and then test and build your software, you’ll need an Apple developer account. The Xcode service then links git to a developer account and runs automations, referred to as bots, in Xcode. Therefore, you’ll also need to have Xcode installed on the computer running the Xcode service. Bots are then managed and reported on using a web app that the Server app runs. Once the pre-requisites are met, open the Server app and click on the Xcode service. Screen Shot 2015-09-24 at 10.11.10 PM Click on the Choose Xcode button. Screen Shot 2015-09-24 at 10.11.30 PM When prompted, browse to the version of Xcode you have installed on the server. Screen Shot 2015-09-24 at 10.11.37 PM If you haven’t accepted the Xcode licensing agreement, when prompted, click on Agree to do so. Screen Shot 2015-09-24 at 10.11.46 PM Xcode will require access to the Accessibility framework to run unit tests. Click on Request Access to provide the rights to Xcode to do so. Screen Shot 2015-09-24 at 10.19.13 PM Once access has been granted to Xcode, you’ll see the version indicated in the Build Using field. Screen Shot 2015-09-24 at 10.19.23 PM Next, click on Add Team, in order to identify the correct team from your Apple Developer account that will have access to the Xcode service. Screen Shot 2015-09-24 at 10.19.32 PM When prompted, select the team from your Apple Developer account that you wish to provide access to the server. Screen Shot 2015-09-24 at 10.20.27 PM Click on the Repositories tab. Here, you will define repositories for your Xcode projects. Click on the Repository Access button to define what protocols git should be accessible via. Screen Shot 2015-09-24 at 10.20.30 PM At the Repository Access screen, select HTTPS or SSH. Click OK. Screen Shot 2015-09-24 at 10.20.41 PM Click the Edit Repository Creators button. At the Repository Access screen, add any groups of users that should have access to create new git repositories. Once all of the appropriate users or groups have been added, click on OK. Finally, click on the plus sign to add your first repository. Screen Shot 2015-09-24 at 10.20.55 PM At the new repository screen, provide a name for the repository. Then, use the Edit button to choose the level of access that logged in users have. Back at the repository screen, click on the HTTPS Access button to provide access via HTTPS. Once saved, double-click on the repository again to see the uri for each type of access. And that’s it. Screen Shot 2015-09-25 at 7.02.47 PM Next, you’ll want to add a repository to the Xcode app. To do so, open Xcode and then use the Source Control menu to select Check Out. From there, you’ll get a Check Out screen. Screen Shot 2015-09-25 at 7.04.42 PM At the Check Out screen, enter the uniform the repository screen, shown in the previous step of this article and click on the Next button. Next, you’ll need to create bots to automate your build process.  

October 7th, 2015

Posted In: Mac OS X Server

Tags: , , , , , ,

The logs in Xcode Server (Server 3) by default point to /Library/Server/XcodeLogs/credserver.log. This takes all of the output from xcscredd and xcscredhandler. If you’re doing a lot of debugging then logs can be pointed to another location, such as another drive. The path to the logs is defined in the /Applications/Server.app/Contents/ServerRoot/System/Library/LogConfiguration directory. The file to edit is a standard property list, XCSCredentialServer.plist:
<?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>claimedFacilities</key> <array> <string>servermgrd</string> <string>servermgr-listener</string> <string>servermgr-notify</string> </array> <key>claimedSenders</key> <array> <string>servermgrd</string> <string>servermgr-listener</string> <string>servermgr-notify</string> </array> <key>logMaximumLevel</key> <string>debug</string> <key>logPath</key> <string>/Library/Server/Logs/servermgrd.log</string> </dict> </plist>
Once open, look for a key called logPath. Change that to the desired path, such as /Volumes/MyDrive/Logs/credserver.log and then restart the service: serveradmin stop xcode; serveradmin start xcode

October 18th, 2014

Posted In: Mac OS X, Mac OS X Server, Mac Security, Mass Deployment

Tags: , , , , , , ,

I didn’t figure this out myself but can’t remember the source to attribute. Anyway, I image a lot of systems in my home lab for testing. Many tools I use (e.g. ant, metasploit, etc) need the Xcode Command Line Tools. The easy way to install these is to run xcode-select sung the –install option, as follows: /usr/bin/xcode-select --install

September 15th, 2014

Posted In: Mac OS X, Mac OS X Server, Mac Security, Mass Deployment

Tags: , , , ,

Another day, another debug menu to point out. This time in Xcode. To enable: defaults write com.apple.dt.Xcode ShowDVTDebugMenu -bool TRUE To then disable the debug menu: defaults write com.apple.dt.Xcode ShowDVTDebugMenu -bool FALSE

October 31st, 2013

Posted In: Mac OS X

Tags: , , , ,

I’ve been involved with Brainbench for some time. There is now a new iOS development test available at http://www.brainbench.com/xml/bb/common/testcenter/taketest.xml?testId=2973. Also, we’re currently working on a Mountain Lion test and could use some reviewers if anyone is interested.  Let me know if you’d like to be involved with that.

July 30th, 2012

Posted In: certifications, iPhone

Tags: , , , , ,

Apple has put tickets on sale for the WorldWide Developer Conference, from June 11th to June 15th in San Francisco’s Moscone Center. Last year, the conference sold out really quickly, so might want to jump on buying tickets if you want to go. One thing can be pretty easily assumed, there will be plenty of talk about Mountain Lion (and maybe a new beta/DP as well).

April 25th, 2012

Posted In: Mac OS X, Mac OS X Server, Mac Security, Mass Deployment

Tags: , , , , , , ,

Next Page »