kfix / MacPin

a webapp container & site specific browser made from WebKit.swift and JavaScriptCore
GNU General Public License v3.0
334 stars 28 forks source link

Xcode 8 Support? #25

Closed mikew closed 8 years ago

mikew commented 8 years ago

Looks like the version on Async included in MacPin doesn't build with Xcode / Swift 3.0:

$ make sites/Digg
[eXcode.mk] $(platform) := OSX
[eXcode.mk] $(arch) := x86_64
[eXcode.mk] $(sdk) := macosx
[eXcode.mk] $(target) := apple-macosx10.11
[eXcode.mk] $(build_mods) (compilable modules): Async MacPin Prompt SSKeychain UTIKit WebKitPrivates XMLHTTPRequest
[eXcode.mk] $(execs) (executables available to assemble): build/macosx-x86_64-apple-macosx10.11/exec/MacPin
[eXcode.mk] $(statics) (static libraries available to build): build/macosx-x86_64-apple-macosx10.11/obj/libAsync.a build/macosx-x86_64-apple-macosx10.11/obj/libPrompt.a build/macosx-x86_64-apple-macosx10.11/obj/libSSKeychain.a build/macosx-x86_64-apple-macosx10.11/obj/libUTIKit.a build/macosx-x86_64-apple-macosx10.11/obj/libWebKitPrivates.a build/macosx-x86_64-apple-macosx10.11/obj/libXMLHTTPRequest.a
[eXcode.mk] $(dynamics) (dynamic libraries available to build): build/macosx-x86_64-apple-macosx10.11/Frameworks/libAsync.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libPrompt.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libSSKeychain.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libUTIKit.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libWebKitPrivates.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libXMLHTTPRequest.dylib
[eXcode.mk] compiling against /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
[eXcode.mk] swift libraries: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx
Buildable MacPin apps:
build/macosx-x86_64-apple-macosx10.11/apps/CloudPebble.app
build/macosx-x86_64-apple-macosx10.11/apps/DevDocs.app
build/macosx-x86_64-apple-macosx10.11/apps/Digg.app
build/macosx-x86_64-apple-macosx10.11/apps/Facebook.app
build/macosx-x86_64-apple-macosx10.11/apps/Google_Drive.app
build/macosx-x86_64-apple-macosx10.11/apps/Google_Maps.app
build/macosx-x86_64-apple-macosx10.11/apps/Google_Photos.app
build/macosx-x86_64-apple-macosx10.11/apps/Hangouts.app
build/macosx-x86_64-apple-macosx10.11/apps/Inbox.app
build/macosx-x86_64-apple-macosx10.11/apps/MacPin.app
build/macosx-x86_64-apple-macosx10.11/apps/Messenger.app
build/macosx-x86_64-apple-macosx10.11/apps/Slack.app
build/macosx-x86_64-apple-macosx10.11/apps/Stack_Overflow.app
build/macosx-x86_64-apple-macosx10.11/apps/Trello.app
build/macosx-x86_64-apple-macosx10.11/apps/Vine.app
build/macosx-x86_64-apple-macosx10.11/apps/WhatsApp.app
make: Circular build/macosx-x86_64-apple-macosx10.11/apps/Digg.app <- sites/Digg dependency dropped.
install -d build/macosx-x86_64-apple-macosx10.11/obj
install -d build/macosx-x86_64-apple-macosx10.11/exec
install -d build/macosx-x86_64-apple-macosx10.11/Frameworks
install -d build/macosx-x86_64-apple-macosx10.11/SwiftSupport
xcrun -sdk macosx swiftc -target x86_64-apple-macosx10.11   -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -F build/macosx-x86_64-apple-macosx10.11/Frameworks -I modules -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -I build/macosx-x86_64-apple-macosx10.11  -L build/macosx-x86_64-apple-macosx10.11/Frameworks -L build/macosx-x86_64-apple-macosx10.11/obj \
        -whole-module-optimization \
        -module-name Async -emit-module-path build/macosx-x86_64-apple-macosx10.11/Async.swiftmodule \
        -emit-dependencies \
        -emit-object -o build/macosx-x86_64-apple-macosx10.11/obj/Async.o \
        modules/Async/Async.swift modules/Async/OSX/null.swift
modules/Async/Async.swift:196:29: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public static func main(after after: Double? = nil, block: dispatch_block_t) -> Async {
                            ^~~~~~

modules/Async/Async.swift:211:40: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public static func userInteractive(after after: Double? = nil, block: dispatch_block_t) -> Async {
                                       ^~~~~~

modules/Async/Async.swift:226:38: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public static func userInitiated(after after: Double? = nil, block: dispatch_block_t) -> Async {
                                     ^~~~~~

modules/Async/Async.swift:241:32: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public static func utility(after after: Double? = nil, block: dispatch_block_t) -> Async {
                               ^~~~~~

modules/Async/Async.swift:256:35: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public static func background(after after: Double? = nil, block: dispatch_block_t) -> Async {
                                  ^~~~~~

modules/Async/Async.swift:361:22: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public func main(after after: Double? = nil, chainingBlock: dispatch_block_t) -> Async {
                     ^~~~~~

modules/Async/Async.swift:376:33: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public func userInteractive(after after: Double? = nil, chainingBlock: dispatch_block_t) -> Async {
                                ^~~~~~

modules/Async/Async.swift:391:31: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public func userInitiated(after after: Double? = nil, chainingBlock: dispatch_block_t) -> Async {
                              ^~~~~~

modules/Async/Async.swift:406:25: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public func utility(after after: Double? = nil, chainingBlock: dispatch_block_t) -> Async {
                        ^~~~~~

modules/Async/Async.swift:421:28: warning: extraneous duplicate parameter name; 'after' already has an argument label
    public func background(after after: Double? = nil, chainingBlock: dispatch_block_t) -> Async {
                           ^~~~~~

modules/Async/Async.swift:475:22: warning: extraneous duplicate parameter name; 'seconds' already has an argument label
    public func wait(seconds seconds: Double = 0.0) {
                     ^~~~~~~~

modules/Async/Async.swift:52:32: error: 'dispatch_queue_t' is unavailable in Swift
    static func mainQueue() -> dispatch_queue_t {
                               ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:65:43: error: 'dispatch_queue_t' is unavailable in Swift
    static func userInteractiveQueue() -> dispatch_queue_t {
                                          ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:77:41: error: 'dispatch_queue_t' is unavailable in Swift
    static func userInitiatedQueue() -> dispatch_queue_t {
                                        ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:89:35: error: 'dispatch_queue_t' is unavailable in Swift
    static func utilityQueue() -> dispatch_queue_t {
                                  ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:101:38: error: 'dispatch_queue_t' is unavailable in Swift
    static func backgroundQueue() -> dispatch_queue_t {
                                     ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:173:24: error: 'dispatch_block_t' is unavailable in Swift
    private let block: dispatch_block_t
                       ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:271:43: error: 'dispatch_queue_t' is unavailable in Swift
    public static func customQueue(queue: dispatch_queue_t, after: Double? = nil, block: dispatch_block_t) -> Async {
                                          ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:288:101: error: 'dispatch_queue_t' is unavailable in Swift
    private static func async(seconds: Double? = nil, block chainingBlock: dispatch_block_t, queue: dispatch_queue_t) -> Async {
                                                                                                    ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:304:66: error: 'dispatch_queue_t' is unavailable in Swift
    private static func asyncNow(block: dispatch_block_t, queue: dispatch_queue_t) -> Async {
                                                                 ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:324:85: error: 'dispatch_queue_t' is unavailable in Swift
    private static func asyncAfter(seconds: Double, block: dispatch_block_t, queue: dispatch_queue_t) -> Async {
                                                                                    ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:340:83: error: 'dispatch_queue_t' is unavailable in Swift
    private static func at(time: dispatch_time_t, block: dispatch_block_t, queue: dispatch_queue_t) -> Async {
                                                                                  ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:436:36: error: 'dispatch_queue_t' is unavailable in Swift
    public func customQueue(queue: dispatch_queue_t, after: Double? = nil, chainingBlock: dispatch_block_t) -> Async {
                                   ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:497:94: error: 'dispatch_queue_t' is unavailable in Swift
    private func chain(seconds: Double? = nil, block chainingBlock: dispatch_block_t, queue: dispatch_queue_t) -> Async {
                                                                                             ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:515:73: error: 'dispatch_queue_t' is unavailable in Swift
    private func chainNow(block chainingBlock: dispatch_block_t, queue: dispatch_queue_t) -> Async {
                                                                        ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:533:92: error: 'dispatch_queue_t' is unavailable in Swift
    private func chainAfter(seconds: Double, block chainingBlock: dispatch_block_t, queue: dispatch_queue_t) -> Async {
                                                                                           ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:584:64: error: single argument function types require parentheses
    public static func userInteractive(iterations: Int, block: Int -> ()) {
                                                               ^~~
                                                               (  )
modules/Async/Async.swift:595:62: error: single argument function types require parentheses
    public static func userInitiated(iterations: Int, block: Int -> ()) {
                                                             ^~~
                                                             (  )
modules/Async/Async.swift:606:56: error: single argument function types require parentheses
    public static func utility(iterations: Int, block: Int -> ()) {
                                                       ^~~
                                                       (  )
modules/Async/Async.swift:617:59: error: single argument function types require parentheses
    public static func background(iterations: Int, block: Int -> ()) {
                                                          ^~~
                                                          (  )
modules/Async/Async.swift:628:60: error: 'dispatch_queue_t' is unavailable in Swift
    public static func customQueue(iterations: Int, queue: dispatch_queue_t, block: Int -> ()) {
                                                           ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:628:85: error: single argument function types require parentheses
    public static func customQueue(iterations: Int, queue: dispatch_queue_t, block: Int -> ()) {
                                                                                    ^~~
                                                                                    (  )
modules/Async/Async.swift:307:44: error: use of unresolved identifier 'DISPATCH_BLOCK_INHERIT_QOS_CLASS'
        let _block = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS, block)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dispatch.__DISPATCH_BLOCK_INHERIT_QOS_CLASS:3:12: note: did you mean '__DISPATCH_BLOCK_INHERIT_QOS_CLASS'?
public var __DISPATCH_BLOCK_INHERIT_QOS_CLASS: __dispatch_block_flags_t { get }
           ^
modules/Async/Async.swift:326:34: error: cannot convert value of type 'Int' to expected argument type 'dispatch_time_t' (aka 'UInt64')
        let time = dispatch_time(DISPATCH_TIME_NOW, nanoSeconds)
                                 ^~~~~~~~~~~~~~~~~
                                 dispatch_time_t( )
modules/Async/Async.swift:342:44: error: use of unresolved identifier 'DISPATCH_BLOCK_INHERIT_QOS_CLASS'
        let _block = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS, block)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dispatch.__DISPATCH_BLOCK_INHERIT_QOS_CLASS:3:12: note: did you mean '__DISPATCH_BLOCK_INHERIT_QOS_CLASS'?
public var __DISPATCH_BLOCK_INHERIT_QOS_CLASS: __dispatch_block_flags_t { get }
           ^
modules/Async/Async.swift:478:38: error: cannot convert value of type 'Int' to expected argument type 'dispatch_time_t' (aka 'UInt64')
            let time = dispatch_time(DISPATCH_TIME_NOW, nanoSeconds)
                                     ^~~~~~~~~~~~~~~~~
                                     dispatch_time_t( )
modules/Async/Async.swift:517:52: error: use of unresolved identifier 'DISPATCH_BLOCK_INHERIT_QOS_CLASS'
        let _chainingBlock = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS, chainingBlock)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dispatch.__DISPATCH_BLOCK_INHERIT_QOS_CLASS:3:12: note: did you mean '__DISPATCH_BLOCK_INHERIT_QOS_CLASS'?
public var __DISPATCH_BLOCK_INHERIT_QOS_CLASS: __dispatch_block_flags_t { get }
           ^
modules/Async/Async.swift:536:52: error: use of unresolved identifier 'DISPATCH_BLOCK_INHERIT_QOS_CLASS'
        let _chainingBlock = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS, chainingBlock)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dispatch.__DISPATCH_BLOCK_INHERIT_QOS_CLASS:3:12: note: did you mean '__DISPATCH_BLOCK_INHERIT_QOS_CLASS'?
public var __DISPATCH_BLOCK_INHERIT_QOS_CLASS: __dispatch_block_flags_t { get }
           ^
modules/Async/Async.swift:539:35: error: 'dispatch_block_t' is unavailable in Swift
        let chainingWrapperBlock: dispatch_block_t = {
                                  ^~~~~~~~~~~~~~~~
modules/Async/Async.swift:547:59: error: use of unresolved identifier 'DISPATCH_BLOCK_INHERIT_QOS_CLASS'
        let _chainingWrapperBlock = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS, chainingWrapperBlock)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dispatch.__DISPATCH_BLOCK_INHERIT_QOS_CLASS:3:12: note: did you mean '__DISPATCH_BLOCK_INHERIT_QOS_CLASS'?
public var __DISPATCH_BLOCK_INHERIT_QOS_CLASS: __dispatch_block_flags_t { get }
           ^
make: *** [build/macosx-x86_64-apple-macosx10.11/obj/Async.o] Error 1
kfix commented 8 years ago

There's a swift2.3 and swift3 branch in progress right now. There's a lot more to do than just updating Async (which I'll get to)...

mikew commented 8 years ago

Ah, that's great! Probably safe to close this since you're already aware

kfix commented 8 years ago

swift2.3 branch should now be buildable with Xcode 8, lemme know how you get on.

mikew commented 8 years ago

Still no go. Definitely less errors, but now it's complaining about WebKit. I'm using macOS Sierra with XCode 8.0, if that helps.

$ git clone https://github.com/kfix/MacPin
$ cd MacPin
$ git checkout swift2.3
$ make sites/Digg
[eXcode.mk] $(platform) := OSX
[eXcode.mk] $(arch) := x86_64
[eXcode.mk] $(sdk) := macosx
[eXcode.mk] $(target) := apple-macosx10.11
[eXcode.mk] $(build_mods) (compilable modules): Async MacPin Prompt SSKeychain UTIKit WebKitPrivates XMLHTTPRequest
[eXcode.mk] $(execs) (executables available to assemble): build/macosx-x86_64-apple-macosx10.11/exec/MacPin
[eXcode.mk] $(statics) (static libraries available to build): build/macosx-x86_64-apple-macosx10.11/obj/libAsync.a build/macosx-x86_64-apple-macosx10.11/obj/libPrompt.a build/macosx-x86_64-apple-macosx10.11/obj/libSSKeychain.a build/macosx-x86_64-apple-macosx10.11/obj/libUTIKit.a build/macosx-x86_64-apple-macosx10.11/obj/libWebKitPrivates.a build/macosx-x86_64-apple-macosx10.11/obj/libXMLHTTPRequest.a
[eXcode.mk] $(dynamics) (dynamic libraries available to build): build/macosx-x86_64-apple-macosx10.11/Frameworks/libAsync.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libPrompt.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libSSKeychain.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libUTIKit.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libWebKitPrivates.dylib build/macosx-x86_64-apple-macosx10.11/Frameworks/libXMLHTTPRequest.dylib
[eXcode.mk] compiling against /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
[eXcode.mk] swift libraries: /Applications/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/macosx /Applications/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift_static/macosx
Buildable MacPin apps:
build/macosx-x86_64-apple-macosx10.11/apps/CloudPebble.app
build/macosx-x86_64-apple-macosx10.11/apps/DevDocs.app
build/macosx-x86_64-apple-macosx10.11/apps/Digg.app
build/macosx-x86_64-apple-macosx10.11/apps/Facebook.app
build/macosx-x86_64-apple-macosx10.11/apps/Google_Drive.app
build/macosx-x86_64-apple-macosx10.11/apps/Google_Maps.app
build/macosx-x86_64-apple-macosx10.11/apps/Google_Photos.app
build/macosx-x86_64-apple-macosx10.11/apps/Hangouts.app
build/macosx-x86_64-apple-macosx10.11/apps/Inbox.app
build/macosx-x86_64-apple-macosx10.11/apps/JupyterLab.app
build/macosx-x86_64-apple-macosx10.11/apps/MacPin.app
build/macosx-x86_64-apple-macosx10.11/apps/Messenger.app
build/macosx-x86_64-apple-macosx10.11/apps/Slack.app
build/macosx-x86_64-apple-macosx10.11/apps/Stack_Overflow.app
build/macosx-x86_64-apple-macosx10.11/apps/Trello.app
build/macosx-x86_64-apple-macosx10.11/apps/Vine.app
build/macosx-x86_64-apple-macosx10.11/apps/WhatsApp.app
build/macosx-x86_64-apple-macosx10.11/apps/YouTubemake: Circular build/macosx-x86_64-apple-macosx10.11/apps/Digg.app <- sites/Digg dependency dropped.
install -d build/macosx-x86_64-apple-macosx10.11/obj
install -d build/macosx-x86_64-apple-macosx10.11/exec
install -d build/macosx-x86_64-apple-macosx10.11/Frameworks
install -d build/macosx-x86_64-apple-macosx10.11/SwiftSupport
xcrun --toolchain com.apple.dt.toolchain.Swift_2_3 -sdk macosx swiftc -target x86_64-apple-macosx10.11   -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -F build/macosx-x86_64-apple-macosx10.11/Frameworks -I modules -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -I build/macosx-x86_64-apple-macosx10.11  -L build/macosx-x86_64-apple-macosx10.11/Frameworks -L build/macosx-x86_64-apple-macosx10.11/obj \
        -whole-module-optimization \
        -module-name Async -emit-module-path build/macosx-x86_64-apple-macosx10.11/Async.swiftmodule \
        -emit-dependencies \
        -emit-object -o build/macosx-x86_64-apple-macosx10.11/obj/Async.o \
        modules/Async/Async.swift modules/Async/OSX/null.swift
libtool -static -o build/macosx-x86_64-apple-macosx10.11/obj/libAsync.a build/macosx-x86_64-apple-macosx10.11/obj/Async.o
mkdir build/macosx-x86_64-apple-macosx10.11/obj/libPrompt; cd build/macosx-x86_64-apple-macosx10.11/obj/libPrompt; for i in /Users/mike/Work/MacPin/modules/Prompt/Prompt.m; do \
        xcrun -sdk macosx clang -fmodules -target x86_64-apple-macosx10.11  -mmacosx-version-min=10.11 -ObjC -c -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -F build/macosx-x86_64-apple-macosx10.11/Frameworks -I modules -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -I build/macosx-x86_64-apple-macosx10.11 -L build/macosx-x86_64-apple-macosx10.11/Frameworks -L build/macosx-x86_64-apple-macosx10.11/obj  $i; \
    done;
clang: warning: argument unused during compilation: '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/obj'
libtool -static -o build/macosx-x86_64-apple-macosx10.11/obj/libPrompt.a build/macosx-x86_64-apple-macosx10.11/obj/libPrompt/Prompt.o
mkdir build/macosx-x86_64-apple-macosx10.11/obj/libSSKeychain; cd build/macosx-x86_64-apple-macosx10.11/obj/libSSKeychain; for i in /Users/mike/Work/MacPin/modules/SSKeychain/SSKeychain.m /Users/mike/Work/MacPin/modules/SSKeychain/SSKeychainQuery.m; do \
        xcrun -sdk macosx clang -fmodules -target x86_64-apple-macosx10.11  -mmacosx-version-min=10.11 -ObjC -c -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -F build/macosx-x86_64-apple-macosx10.11/Frameworks -I modules -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -I build/macosx-x86_64-apple-macosx10.11 -L build/macosx-x86_64-apple-macosx10.11/Frameworks -L build/macosx-x86_64-apple-macosx10.11/obj  $i; \
    done;
clang: warning: argument unused during compilation: '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/obj'
clang: warning: argument unused during compilation: '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/obj'
/Users/mike/Work/MacPin/modules/SSKeychain/SSKeychainQuery.m:113:10: warning: '__bridge_transfer' casts have no effect when not using ARC [-Warc-bridge-casts-disallowed-in-nonarc]
        return (__bridge_transfer NSArray *)result;
                ^~~~~~~~~~~~~~~~~~
/Users/mike/Work/MacPin/modules/SSKeychain/SSKeychainQuery.m:139:23: warning: '__bridge_transfer' casts have no effect when not using ARC [-Warc-bridge-casts-disallowed-in-nonarc]
        self.passwordData = (__bridge_transfer NSData *)result;
                             ^~~~~~~~~~~~~~~~~~
/Users/mike/Work/MacPin/modules/SSKeychain/SSKeychainQuery.m:282:15: warning: '__bridge_transfer' casts have no effect when not using ARC [-Warc-bridge-casts-disallowed-in-nonarc]
                        message = (__bridge_transfer NSString *)SecCopyErrorMessageString(code, NULL);
                                   ^~~~~~~~~~~~~~~~~~
3 warnings generated.
libtool -static -o build/macosx-x86_64-apple-macosx10.11/obj/libSSKeychain.a build/macosx-x86_64-apple-macosx10.11/obj/libSSKeychain/SSKeychain.o build/macosx-x86_64-apple-macosx10.11/obj/libSSKeychain/SSKeychainQuery.o
xcrun --toolchain com.apple.dt.toolchain.Swift_2_3 -sdk macosx swiftc -target x86_64-apple-macosx10.11   -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -F build/macosx-x86_64-apple-macosx10.11/Frameworks -I modules -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -I build/macosx-x86_64-apple-macosx10.11  -L build/macosx-x86_64-apple-macosx10.11/Frameworks -L build/macosx-x86_64-apple-macosx10.11/obj \
        -whole-module-optimization \
        -module-name UTIKit -emit-module-path build/macosx-x86_64-apple-macosx10.11/UTIKit.swiftmodule \
        -emit-dependencies \
        -emit-object -o build/macosx-x86_64-apple-macosx10.11/obj/UTIKit.o \
        modules/UTIKit/UTI.swift modules/UTIKit/OSX/null.swift
libtool -static -o build/macosx-x86_64-apple-macosx10.11/obj/libUTIKit.a build/macosx-x86_64-apple-macosx10.11/obj/UTIKit.o
mkdir build/macosx-x86_64-apple-macosx10.11/obj/libWebKitPrivates; cd build/macosx-x86_64-apple-macosx10.11/obj/libWebKitPrivates; for i in /Users/mike/Work/MacPin/modules/WebKitPrivates/WKWebViewSnappable.mm; do \
        xcrun -sdk macosx clang++ -fmodules -fcxx-modules -std=c++11 -stdlib=libc++ -target x86_64-apple-macosx10.11  -ObjC++ -c -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -F build/macosx-x86_64-apple-macosx10.11/Frameworks -I modules -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -I build/macosx-x86_64-apple-macosx10.11 -L build/macosx-x86_64-apple-macosx10.11/Frameworks -L build/macosx-x86_64-apple-macosx10.11/obj  $i; \
    done;
clang: warning: argument unused during compilation: '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/Frameworks'
clang: warning: argument unused during compilation: '-Lbuild/macosx-x86_64-apple-macosx10.11/obj'
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header '_WKUserStyleSheet.h' [-Wincomplete-umbrella]
#import "WebKitPrivates.h"
^
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header 'WebViewImpl.h' [-Wincomplete-umbrella]
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header 'WKErrorPrivate.h' [-Wincomplete-umbrella]
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header 'WKObject.h' [-Wincomplete-umbrella]
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header 'WKOpenPanelParameters.h' [-Wincomplete-umbrella]
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header 'WKProcessPoolInternal.h' [-Wincomplete-umbrella]
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header 'WKType.h' [-Wincomplete-umbrella]
<module-includes>:1:1: warning: umbrella header for module 'WebKitPrivates' does not include header 'WKUserContentControllerPrivate.h' [-Wincomplete-umbrella]
/Users/mike/Work/MacPin/modules/WebKitPrivates/WKWebViewSnappable.mm:6:17: warning: cannot find interface declaration for 'WKWebViewSnappable'
@implementation WKWebViewSnappable: WKWebView
                ^
/Users/mike/Work/MacPin/modules/WebKitPrivates/WKWebViewSnappable.mm:7:17: error: use of undeclared identifier 'WebKit'
std::unique_ptr<WebKit::WebViewImpl> _impl; // https://github.com/WebKit/webkit/blob/03aae442c5f9a1e32ff96abf4e2595b4a5d8a44c/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm#L264
                ^
9 warnings and 1 error generated.
make: *** [build/macosx-x86_64-apple-macosx10.11/obj/libWebKitPrivates.a] Error 1
make: write error
kfix commented 8 years ago

try make stp.app first. then make allapps

mikew commented 8 years ago

make stp.app works, opens what looks to be a MacPin test app that needs to be force quit. After that it looks like make sites/... works. The application windows have no shadow, but that's minor.

kfix commented 8 years ago

yeah, stp.app will launch a foreground console that will survive window close, you just type CTRL+D (EOF) to kill that off. I'm planning to make Safari Technical Preview linked-builds the default for all targets and just insist it be installed as a requirement. Many new features depend on it.

The window shadowing should toggle when you do Tab ->Toggle Translucency… but it looks like the initial state is incorrectly flipped on startup. I'll look into that, thanks for the report!