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

Error thrown by Step 8 #2

Closed
bobwhosmiles opened this issue Oct 31, 2019 · 10 comments
Closed

Error thrown by Step 8 #2

bobwhosmiles opened this issue Oct 31, 2019 · 10 comments

Comments

@bobwhosmiles
Copy link

Mac model: MacBook Air (11-inch, Early 2015)
iPad model: iPad Air 2

Mac version: Catalina 10.15
iPad version: iPad OS 13.1.3

At Step 8 in the instructions I get the following:

/System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore: replacing existing signature
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: object: /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore malformed object (unknown load command 8)
/System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore: the codesign_allocate helper tool cannot be found or used

Any ideas?

@ben-z
Copy link
Owner

ben-z commented Oct 31, 2019

Restore the original SidecarCore and do xcode-select --install to install the developer tools. Then copy the patched SidecarCore into the system folder again, then try codesigning.

Try not to leave unsigned SidecarCore in the system folder because it will crash applications that try to load that framework.

@bobwhosmiles
Copy link
Author

Thanks Ben. Followed these steps, dev tools installed successfully, but still getting the same error when trying to sign the patched SidecarCore

@ben-z
Copy link
Owner

ben-z commented Nov 1, 2019

Interesting 😮. Try xcode-select --reset. (source: maciekish/iReSign#95)

@bobwhosmiles
Copy link
Author

Ran sudo xcode-select --reset then repeated the codesigning - still that same error. Baffled but thanks for trying to help :)

@ben-z
Copy link
Owner

ben-z commented Nov 1, 2019

Ah the second line might be indicating that the SidecarCore file wasn't properly modified!

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: object: /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore malformed object (unknown load command 8)

Can you post your original and the modified SidecarCore binaries here for inspection?

(If you haven't, try to patch the original file again to see if the file is just accidentally corrupted)

@bobwhosmiles
Copy link
Author

Tried all steps again from scratch but still getting an error:

Bob@Bobs-Air ~ % sudo codesign -f -s - /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore
/System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore: replacing existing signature
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: object: /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore malformed object (unknown load command 8)
/System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore: the codesign_allocate helper tool cannot be found or used

I've attached the original and modified files as suggested. Thanks Ben
Sidecar files.zip

@ben-z
Copy link
Owner

ben-z commented Nov 1, 2019

Weird. I was able to sign your binary on my system without any errors! After reading this, I'm suspecting that your Xcode may be outdated. Try downloading/updating Xcode from the App Store and make sure it's Version 11.1 (11A1027) or newer.

@bobwhosmiles
Copy link
Author

that solved it - thank you again

@ben-z
Copy link
Owner

ben-z commented Nov 1, 2019

Awesome!

@jafarvillan
Copy link

Hi I have bob’s issue - same error what he got in the big inning now I can’t use my apps . Is there any way I can go back to the original

@jafarvillan jafarvillan mentioned this issue May 19, 2020
Closed
jafarvillan added a commit to jafarvillan/free-sidecar that referenced this issue May 19, 2020
Please help if you got some time
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

3 participants