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

libxml and import errors while installing patch #49

Open
sagefoh opened this issue Mar 26, 2020 · 4 comments
Open

libxml and import errors while installing patch #49

sagefoh opened this issue Mar 26, 2020 · 4 comments

Comments

@sagefoh
Copy link

sagefoh commented Mar 26, 2020

This happened when I run sudo swift SidecarPatcher/main.swift

/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> ^ <module-includes>:1:9: note: in file included from <module-includes>: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 <os/object.h> ^ <module-includes>:1:9: note: in file included from <module-includes>: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 <CoreFoundation/CFPropertyList.h> ^ /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 <CoreFoundation/CFStream.h> ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: error: could not build module 'Dispatch' #include <dispatch/dispatch.h> ^ /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 <CoreFoundation/CFBase.h> ^ /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> ^ <module-includes>:1:9: note: in file included from <module-includes>: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 <os/object.h> ^ /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 <CoreFoundation/CFBase.h> ^ <module-includes>:1:9: note: in file included from <module-includes>: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 <CoreFoundation/CFPropertyList.h> ^ /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 <CoreFoundation/CFStream.h> ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: error: could not build module 'Dispatch' #include <dispatch/dispatch.h> ^ <module-includes>:1:9: note: in file included from <module-includes>: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 <CoreGraphics/CGBase.h> ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: error: could not build module 'CoreFoundation' #include <CoreFoundation/CFBase.h> ^ /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 <IOKit/IOKitLib.h> ^ <module-includes>:4:9: note: in file included from <module-includes>: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 <CoreFoundation/CoreFoundation.h> ^ /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] { ^ <module-includes>:1:9: note: in file included from <module-includes>: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 <os/object.h> ^ /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 ^

@pookjw
Copy link
Owner

pookjw commented Mar 26, 2020

  1. Install Xcode on the Mac App Store.

  2. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer on the Terminal.

or

  1. Download the latest SidecarPatcher.zip from Releases.

  2. Unzip then you can see SidecarPatcher file. Run it with sudo ./SidecarPatcher on the Terminal.

@sagefoh
Copy link
Author

sagefoh commented Mar 26, 2020

Thank you for your swift reply!

I was able to install it using your second method but I got this error while trying to connect to my iPad Pro through sidecar/airplay:

Unable to Connect to "iPad Pro"
A miscellaneous error occurred (32002).

@sandredd
Copy link

“SidecarPatcher” will damage your computer. You should move it to the Trash.
⇒ sudo ./SidecarPatcher
[1] 28586 killed sudo ./SidecarPatcher

i get this error when i run sodo ./SidecarPatcher

@ystskm
Copy link

ystskm commented Apr 19, 2020

I know the error code "32002" happenes on wireless connection for some models. Try using a wire instead. I have done connection with my iPad Air2! (cf. https://github.com/ben-z/free-sidecar/blob/master/README.md)

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

No branches or pull requests

4 participants