pookjw / SidecarPatcher

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

Fatal error: System Integrity Protection is enabled! #25

Open mosucker opened 4 years ago

mosucker commented 4 years ago

Can you please help me with this issue.

patch.swift:111:5: warning: result of call to 'shell' is unused shell("xxd -r -p /tmp/SidecarPatcher/output.txt /tmp/SidecarPatcher/SidecarCore") ^ ~~~~~~~~~~~~~~~~ patch.swift:114:5: warning: result of call to 'shell' is unused shell("sudo mount -uw /") ^ ~~~~ patch.swift:136:5: warning: result of call to 'shell' is unused shell("sudo codesign -f -s - \"(path)/SidecarCore\"") ^ ~~~~~~~~~~~~~ patch.swift:137:5: warning: result of call to 'shell' is unused shell("sudo chmod 755 \"(path)/SidecarCore\"") ^ ~~~~~~~~~~ SidecarPatcher (Version 10) GitHub : https://github.com/pookjw/SidecarPatcher Fatal error: System Integrity Protection is enabled: file patch.swift, line 65 Stack dump:

  1. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -interpret patch.swift -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -color-diagnostics -module-name patch 0 swift 0x0000000113a71eb3 PrintStackTraceSignalHandler(void) + 51 1 swift 0x0000000113a71686 SignalHandler(int) + 358 2 libsystem_platform.dylib 0x00007fff644a5b1d _sigtramp + 29 3 libsystem_platform.dylib 0x00007ffee05d23c0 _sigtramp + 2081605824 4 libswiftCore.dylib 0x00007fff63732526 $ss16assertionFailure_4file4lineySSyXK_s12StaticStringVSutF + 70 5 libswiftCore.dylib 0x0000000116f1e44b $ss16assertionFailure_4file4lineySSyXK_s12StaticStringVSutF + 3011428203 6 libswiftCore.dylib 0x0000000116f1d46a $ss16assertionFailure_4file4lineySSyXK_s12StaticStringVSutF + 3011424138 7 swift 0x000000010f6f184d llvm::MCJIT::runFunction(llvm::Function, llvm::ArrayRef) + 365 8 swift 0x000000010f6f8802 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function, std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::__1::basic_string<char, std::1::char_traits, std::__1::allocator > > > const&, char const const) + 1090 9 swift 0x000000010f6cb951 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const>, int&, swift::FrontendObserver, swift::UnifiedStatsReporter) + 45809 10 swift 0x000000010f6bce54 swift::performFrontend(llvm::ArrayRef<char const>, char const, void, swift::FrontendObserver) + 6820 11 swift 0x000000010f64a3c3 main + 1219 12 libdyld.dylib 0x00007fff642a0405 start + 1 zsh: illegal hardware instruction sudo swift patch.swift

The SIP is disable. System Integrity Protection status: unknown (Custom Configuration).

Configuration: Apple Internal: disabled Kext Signing: disabled Filesystem Protections: disabled Debugging Restrictions: disabled DTrace Restrictions: disabled NVRAM Protections: disabled BaseSystem Verification: disabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

pookjw commented 4 years ago

Fixed https://github.com/pookjw/SidecarPatcher/commit/da5b8291623860356465a7d36efc540073403e2c Thanks

sqzhang-jeremy commented 4 years ago

It works for me, thank u very much!

Silfalion commented 4 years ago

getting the same error with version 14. any fix please?