Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from command line #21

Closed
beltex opened this issue Jan 13, 2015 · 10 comments
Closed

Build from command line #21

beltex opened this issue Jan 13, 2015 · 10 comments

Comments

@beltex
Copy link
Owner

beltex commented Jan 13, 2015

beltex added a commit that referenced this issue Jan 15, 2015
- This is a really basic Makefile to build from command line to make it easy for
  folks who just want to build and run
- Update README
- In ref to #21
@RSully
Copy link

RSully commented Jan 19, 2015

Is this issue pretty much resolved?

@beltex
Copy link
Owner Author

beltex commented Jan 19, 2015

There is a very basic Makefile that addresses this, but I thought I'd leave this open for now for reference till it's improved.

@vprasanth
Copy link

Unable to build from command line using make build. I have Xcode 6.2 installed. However I was able to build it from within Xcode. Including log:

rm -rf bin build
xcodebuild clean build
=== CLEAN TARGET dshb OF PROJECT dshb WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies

Clean.Remove clean build/dshb.build/Release/dshb.build
    builtin-rm -rf /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build

Clean.Remove clean build/Release/dshb.dSYM
    builtin-rm -rf /Users/pv/Code/dshb/build/Release/dshb.dSYM

Clean.Remove clean build/Release/dshb
    builtin-rm -rf /Users/pv/Code/dshb/build/Release/dshb

** CLEAN SUCCEEDED **

=== BUILD TARGET dshb OF PROJECT dshb WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build
write-file /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap
/bin/mkdir -p /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64
write-file /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/dshb.LinkFileList
write-file /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/dshb-OutputFileMap.json

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -target x86_64-apple-macosx10.9 -module-name dshb -O -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -g -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -c -j8 /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -output-file-map /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/dshb-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/dshb.swiftmodule -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/dshb-Swift.h

CompileSwift normal x86_64 /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Battery~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Battery~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Battery.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Battery.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Battery.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:326:29: error: cannot assign to 'temperature' in 'self'
                temperature = Battery.toFahrenheit(temperature)
                ~~~~~~~~~~~ ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:328:29: error: cannot assign to 'temperature' in 'self'
                temperature = Battery.toKelvin(temperature)
                ~~~~~~~~~~~ ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:331:21: error: function produces expected type 'Double'; did you mean to call it with '()'?
        return ceil(temperature)
                    ^
                               ()

CompileSwift normal x86_64 /Users/pv/Code/dshb/dshb/WidgetTemperature.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift -primary-file /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetTemperature~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetTemperature~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetTemperature.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetTemperature.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetTemperature.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pv/Code/dshb/dshb/WidgetTemperature.swift:65:17: error: 'let' declarations require an initializer expression
            let value: Double
                ^

CompileSwift normal x86_64 /Users/pv/Code/dshb/dshb/WidgetUITitle.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift -primary-file /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetUITitle~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetUITitle~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetUITitle.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetUITitle.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetUITitle.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pv/Code/dshb/dshb/WidgetUITitle.swift:55:54: error: 'String' is not convertible to 'Range<I>'
        let spaceLength = Int(window.length) - count(name)
                                                     ^
Swift.r:1:5: note: in initialization of parameter 'r'
let r: Range<I>
    ^

CompileSwift normal x86_64 /Users/pv/Code/dshb/dshb/WidgetMemory.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift -primary-file /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetMemory~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetMemory~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetMemory.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetMemory.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetMemory.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:123:50: error: missing argument for parameter 'cpu_ticks' in call
    private var loadPrevious = host_cpu_load_info()
                                                 ^

CompileSwift normal x86_64 /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift -primary-file /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/CommandLine~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/CommandLine~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/CommandLine.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/CommandLine.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/CommandLine.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift:158:49: error: 'String' is not convertible to 'Range<I>'
        arg.hasPrefix(LongOptionPrefix) ? count(LongOptionPrefix) : count(ShortOptionPrefix)
                                                ^
Swift.r:1:5: note: in initialization of parameter 'r'
let r: Range<I>
    ^
/Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift:188:34: error: 'String' is not convertible to 'Range<I>'
          var flagLength = count(flag)
                                 ^
Swift.r:1:5: note: in initialization of parameter 'r'
let r: Range<I>
    ^
/Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift:223:15: error: 'String' is not convertible to 'Range<I>'
        count("  \(ShortOptionPrefix)\(opt.shortFlag), \(LongOptionPrefix)\(opt.longFlag):"))
              ^

CompileSwift normal x86_64 /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift -primary-file /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Option~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Option~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Option.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Option.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/Option.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift:39:18: error: 'String' is not convertible to 'Range<I>'
    assert(count(shortFlag) == 1, "Short flag must be a single character")
                 ^
Swift.r:1:5: note: in initialization of parameter 'r'
let r: Range<I>
    ^

CompileSwift normal x86_64 /Users/pv/Code/dshb/dshb/WidgetCPU.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift -primary-file /Users/pv/Code/dshb/dshb/WidgetCPU.swift /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetCPU~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetCPU~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetCPU.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetCPU.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetCPU.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:123:50: error: missing argument for parameter 'cpu_ticks' in call
    private var loadPrevious = host_cpu_load_info()
                                                 ^

CompileSwift normal x86_64 /Users/pv/Code/dshb/dshb/WidgetFan.swift
    cd /Users/pv/Code/dshb
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift /Users/pv/Code/dshb/dshb/WidgetTemperature.swift /Users/pv/Code/dshb/dshb/WidgetUITitle.swift /Users/pv/Code/dshb/dshb/WidgetMemory.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/CommandLine.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/Option.swift /Users/pv/Code/dshb/dshb/WidgetCPU.swift -primary-file /Users/pv/Code/dshb/dshb/WidgetFan.swift /Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift /Users/pv/Code/dshb/dshb/WidgetSystem.swift /Users/pv/Code/dshb/libs/SMCKit/SMCKit/SMC.swift /Users/pv/Code/dshb/dshb/Widget.swift /Users/pv/Code/dshb/dshb/WidgetUIStat.swift /Users/pv/Code/dshb/dshb/main.swift /Users/pv/Code/dshb/libs/CommandLine/CommandLine/StringExtensions.swift /Users/pv/Code/dshb/dshb/WidgetBattery.swift -target x86_64-apple-macosx10.9 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/pv/Code/dshb/build/Release -F /Users/pv/Code/dshb/build/Release -g -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-generated-files.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-own-target-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-all-target-headers.hmap -Xcc -iquote -Xcc /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/dshb-project-headers.hmap -Xcc -I/Users/pv/Code/dshb/build/Release/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources/x86_64 -Xcc -I/Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/DerivedSources -emit-module-doc-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetFan~partial.swiftdoc -O -module-name dshb -emit-module-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetFan~partial.swiftmodule -serialize-diagnostics-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetFan.dia -emit-dependencies-path /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetFan.d -o /Users/pv/Code/dshb/build/dshb.build/Release/dshb.build/Objects-normal/x86_64/WidgetFan.o
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:167:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:181:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:196:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:209:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:222:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:235:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:248:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:261:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Bool
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:287:45: error: expected type after 'as'
        return prop.takeUnretainedValue() as! Int
                                            ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/Battery.swift:318:56: error: expected type after 'as'
        var temperature = prop.takeUnretainedValue() as! Double / 100.0
                                                       ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:452:38: error: expected '{' after 'if' condition
        if result == kIOReturnSuccess,
                                     ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: computed property must have an explicit type
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:458:73: error: expected type after 'as'
                                                                      as! Double
                                                                        ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:75: error: 'let' declarations cannot be computed properties
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
                                                                          ^
/Users/pv/Code/dshb/libs/SystemKit/SystemKit/System.swift:453:16: error: variable with getter/setter cannot have an initial value
           let data = status.move()?.takeRetainedValue() as? NSDictionary {
               ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@beltex
Copy link
Owner Author

beltex commented Mar 29, 2015

Hi @vprasanth!

I’m surprised it would have compiled inside of Xcode 6.2 because as far as I recall it doesn’t include the Swift 1.2 compiler which has breaking changes. 6.2 was basically the same as 6.1.1 from a Swift perspective as it was focused essentially all on WatchKit.

Thus, looking at the logs, seems to be due to the Xcode version. Xcode 6.3 beta 4 is required, which includes the Swift 1.2 compiler, available here. You can check the Swift compiler version you have like so

$ swiftc -v
Apple Swift version 1.2 (swiftlang-602.0.47.4 clang-602.0.48)
Target: x86_64-apple-darwin14.1.0

Once you've downloaded it and put it in place, make sure to run the following to set it as the active Xcode

$ sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer/

@vprasanth
Copy link

Ah ok, I have also downloaded the beta. Will check this out and report back once I get home. Thank you!

@vprasanth
Copy link

@beltex Awesome. So after setting the beta compiler as the active one, everything worked out. Also, I compiled it within Xcode beta, that was why that had no problems. Thanks and great work! :D

@beltex
Copy link
Owner Author

beltex commented Mar 29, 2015

@vprasanth Great! np, thanks! :)

beltex added a commit that referenced this issue May 30, 2015
Two key changes here. First, is that we now by default init the submodules. This
should help alleviate some issues folks have had building from source, in which
the recursive switch was not used on repo clone. Shouldn't affect anything if
its already been done. Second, running the strip command on the release binary,
which will help reduce it's size. Down by 1.6 MB, now at 2.6 MB. Xcode's install
action does this as well, but its temp dir install structure is a bit strange,
requires cleanup, want to understand it a bit further before using.

As for the Makefile itself, we can get fancier by actually letting make
determine what needs to be redone (to an extent), its primary feature. Right
now, all targets are phony and will run by default.

Reference: #21
@beltex
Copy link
Owner Author

beltex commented May 30, 2015

Done. Sorry it took so damn long! :)

@beltex beltex closed this as completed May 30, 2015
@beltex beltex added the tools label Jun 18, 2015
@vprasanth
Copy link

@beltex Hey, it's me again :D Probably another dumb question: Do we still need Xcode 6.3 beta 4 to compile? Currently I have Xcode 6.4 and swiftc -version says :

Apple Swift version 1.2 (swiftlang-602.0.53.1 clang-602.0.53)
Target: x86_64-apple-darwin14.3.0

Ooops sorry, just noticed you up'ed it to Xcode 7 beta 3

@beltex
Copy link
Owner Author

beltex commented Jul 21, 2015

Ooops sorry, just noticed you up'ed it to Xcode 7 beta 3

@vprasanth No worries! :)

Yeah I always try and state the required version in the README. For more on why the Swift 2.0 branch was merged to master now, see: #30 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants