pookjw / SidecarPatcher

Enables Sidecar on old Mac and iPad for macOS 10.15
GNU General Public License v3.0
666 stars 53 forks source link

sidecar not working #50

Open RiccardoPianalto opened 4 years ago

RiccardoPianalto commented 4 years ago

Macbook 11.1

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. Chupacabra:~ Pingino$ sudo swift Password: Welcome to Apple Swift version 5.2 (swiftlang-1103.0.32.1 clang-1103.0.32.29). Type :help for assistance. 1> /Users/Pingino/Downloads/SidecarPatcher-master/main.swift error: repl.swift:1:1: error: '/' is not a prefix unary operator /Users/Pingino/Downloads/SidecarPatcher-master/main.swift ^

error: repl.swift:1:2: error: use of unresolved identifier 'Users' /Users/Pingino/Downloads/SidecarPatcher-master/main.swift ^~~~~

error: repl.swift:1:8: error: use of unresolved identifier 'Pingino' /Users/Pingino/Downloads/SidecarPatcher-master/main.swift ^~~

error: repl.swift:1:16: error: use of unresolved identifier 'Downloads' /Users/Pingino/Downloads/SidecarPatcher-master/main.swift ^~~~~

error: repl.swift:1:26: error: use of unresolved identifier 'SidecarPatcher' /Users/Pingino/Downloads/SidecarPatcher-master/main.swift ^~~~~~

error: repl.swift:1:41: error: use of unresolved identifier 'master' /Users/Pingino/Downloads/SidecarPatcher-master/main.swift ^~

error: repl.swift:1:48: error: use of unresolved identifier 'main' /Users/Pingino/Downloads/SidecarPatcher-master/main.swift ^~~~

1>
[Ripristinato: 27 mar 2020, 21:11:23] Last login: Fri Mar 27 21:10:31 on ttys001 Restored session: Ven 27 Mar 2020 21:11:16 CET

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. Chupacabra:~ Pingino$ sudo swift /Users/Pingino/Downloads/SidecarPatcher-master/main.swift Password: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: note: while building module 'Dispatch' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:

include <dispatch/dispatch.h>

     ^
:1:9: note: in file included from :1: #import "dispatch.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dispatch/dispatch.h:59:10: error: could not build module 'os_object' #include ^ :1:9: note: in file included from :1: #import "Headers/CoreFoundation.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: error: could not build module 'Dispatch' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface:4:19: error: could not build Objective-C module 'CoreFoundation' @_exported import CoreFoundation ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface:5:8: error: failed to load module 'CoreFoundation' import CoreFoundation ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: note: while building module 'CoreFoundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: note: while building module 'Dispatch' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20: #include ^ :1:9: note: in file included from :1: #import "dispatch.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dispatch/dispatch.h:59:10: error: could not build module 'os_object' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: note: while building module 'CoreFoundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12: #include ^ :1:9: note: in file included from :1: #import "Headers/CoreFoundation.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: error: could not build module 'Dispatch' #include ^ :1:9: note: in file included from :1: #import "Headers/CoreGraphics.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: error: could not build module 'CoreFoundation' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h:12:10: note: while building module 'IOKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h:12: #include ^ :4:9: note: in file included from :4: #import "Headers/IOCFBundle.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h:26:10: error: could not build module 'CoreFoundation' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface:4:19: error: could not build Objective-C module 'CoreGraphics' @_exported import CoreGraphics ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ :1:9: note: in file included from :1: #import "dispatch.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/Dispatch/dispatch.h:59:10: error: could not build module 'os_object' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface:5:19: error: could not build Objective-C module 'Dispatch' @_exported import Dispatch ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Users/Pingino/Downloads/SidecarPatcher-master/main.swift:12:8: error: failed to load module 'Foundation' import Foundation ^ Chupacabra:~ Pingino$ it clone https://github.com/pookjw/SidecarPatcher -bash: it: command not found Chupacabra:~ Pingino$ [Ripristinato: 27 mar 2020, 21:12:47] Last login: Fri Mar 27 21:11:23 on ttys000 Restored session: Ven 27 Mar 2020 21:12:44 CET The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. Chupacabra:~ Pingino$ git clone https://github.com/pookjw/SidecarPatcher Cloning into 'SidecarPatcher'... remote: Enumerating objects: 90, done. remote: Counting objects: 100% (90/90), done. remote: Compressing objects: 100% (61/61), done. remote: Total 194 (delta 53), reused 66 (delta 29), pack-reused 104 Receiving objects: 100% (194/194), 46.09 KiB | 12.00 KiB/s, done. Resolving deltas: 100% (97/97), done. Chupacabra:~ Pingino$ chmod +x SidecarPatcher/main.swift Chupacabra:~ Pingino$ sudo swift SidecarPatcher/main.swift Password: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: note: while building module 'Dispatch' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20: #include ^ :1:9: note: in file included from :1: #import "dispatch.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dispatch/dispatch.h:59:10: error: could not build module 'os_object' #include ^ :1:9: note: in file included from :1: #import "Headers/CoreFoundation.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: error: could not build module 'Dispatch' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface:4:19: error: could not build Objective-C module 'CoreFoundation' @_exported import CoreFoundation ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface:5:8: error: failed to load module 'CoreFoundation' import CoreFoundation ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: note: while building module 'CoreFoundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: note: while building module 'Dispatch' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20: #include ^ :1:9: note: in file included from :1: #import "dispatch.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dispatch/dispatch.h:59:10: error: could not build module 'os_object' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: note: while building module 'CoreFoundation' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12: #include ^ :1:9: note: in file included from :1: #import "Headers/CoreFoundation.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: error: could not build module 'Dispatch' #include ^ :1:9: note: in file included from :1: #import "Headers/CoreGraphics.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:10: note: in file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8: #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: error: could not build module 'CoreFoundation' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h:12:10: note: while building module 'IOKit' imported from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h:12: #include ^ :4:9: note: in file included from :4: #import "Headers/IOCFBundle.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h:26:10: error: could not build module 'CoreFoundation' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface:4:19: error: could not build Objective-C module 'CoreGraphics' @_exported import CoreGraphics ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ :1:9: note: in file included from :1: #import "dispatch.h" ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/Dispatch/dispatch.h:59:10: error: could not build module 'os_object' #include ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface:5:19: error: could not build Objective-C module 'Dispatch' @_exported import Dispatch ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/libxml/module.modulemap:1:8: error: redefinition of module 'libxml2' module libxml2 [system] [extern_c] { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2/module.modulemap:1:8: note: previously defined here module libxml2 [system] [extern_c] { ^ SidecarPatcher/main.swift:12:8: error: failed to load module 'Foundation' import Foundation ^ Chupacabra:~ Pingino$
pookjw commented 4 years ago

Don't type /Users/Pingino/Downloads/SidecarPatcher-master/main.swift after sudo swift. Type sudo swift /Users/Pingino/Downloads/SidecarPatcher-master/main.swift at once.