Skip to content

Latest commit

 

History

History
66 lines (37 loc) · 2.35 KB

README.md

File metadata and controls

66 lines (37 loc) · 2.35 KB

Swift UUID

An universally unique identifier (UUID) generator using Swift.

Check out project's GitHub repo here.

Description

The source code served as an example, it is, by no means, a commercial grade product. It might contain errors or flaws, and it was created for demonstration purpose only.

Swift UUID is a sample project to demonstrate how you can generate UUIDs with Swift, ported from OpenUUID which was written in Objective-C.

Currently Swift UUID supports the following UUID formats:

  • Random UUID: e.g. D6050BE9-63DE-4EA2-B625-90BD0E90552B
  • Hardware UUID: Hardare UUID that can be found in the system profiler.
  • System Serial Number: Hardware serial number that can be found in the "About this Mac" window.

More information about UUID can be found on Wikipedia.

Plases note that, Swift is still in beta stage, the API might be different when it's released this fall with OS X Yosemite.

Bug report and feedback | Donation (PayPal) | Follow Me on Twitter (@x43x61x69)

System Requirements

  • OS X 10.9 or later.
  • Xcode 6 beta 4 or later.

Changelog

v0.4:

  • Fix: Adjust API changes to beta 6.
  • Fix: System Serial Number function.

v0.3:

  • Fix: Adjust API changes to beta 4.
  • Broken: System Serial Number function not working anymore.

v0.2:

  • Improve: Nested functions.

v0.1:

  • Initial release.

License

Copyright (C) 2014 Cai, Zhi-Wei.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.