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

Gives Error messages along with Warnings (Warnings are normal I know) during patching. #60

Open smoothpound7 opened 4 years ago

smoothpound7 commented 4 years ago

I am running on MacbookAir 6, 1 (Early 2014). Trying to Pair with a 2019 iPad Pro 11" with iPadOS

I saved the terminal results in PDF with more than a thousand pages. There is no way how I can paste them here (it's too long). So I studied the kind of errors for a while with the intention to bring a synthesis for you. I noticed that they are of three kinds:

?a?P SidecarPatcher-master/UT49?^PK /Users/macbookair/Desktop/Desktop/SidecarPatcher- master.zip:2:52: error: invalid character in source file

  1. ?a?P SidecarPatcher-master/UT49?^PK /Users/macbookair/Desktop/Desktop/SidecarPatcher- master.zip:2:55: error: invalid UTF-8 found in source file

  2. ?a?P SidecarPatcher-master/UT49?^PK /Users/macbookair/Desktop/Desktop/SidecarPatcher- master.zip:2:10: error: consecutive statements on a line must be separated by ';'

So it didn't work for me. Looking forward to a solution!

Thanks!

graths commented 4 years ago

I got exactly the same error. The following steps solved the problem for me.

1) Uninstalled command line tools (downloaded separately) sudo rm -rf /Library/Developer/CommandLineTools

2) Installed Xcode from App Store. Was not previously installed.

3) Re-installed command line tools from the command line: xcode-select --install

4) Compiled sidecar patch without any warnings or errors. sudo swift SidecarPatcher/main.swift