Closed mikew closed 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)...
Ah, that's great! Probably safe to close this since you're already aware
swift2.3 branch should now be buildable with Xcode 8, lemme know how you get on.
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
try make stp.app
first. then make allapps
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.
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!
Looks like the version on Async included in MacPin doesn't build with Xcode / Swift 3.0: