SidecarPatcher icon indicating copy to clipboard operation
SidecarPatcher copied to clipboard

Fatal error: System Integrity Protection is enabled!

Open mosucker opened this issue 5 years ago • 3 comments

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: 0. 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::ArrayRefllvm::GenericValue) + 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.

mosucker avatar Oct 30 '19 09:10 mosucker

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

pookjw avatar Oct 30 '19 14:10 pookjw

It works for me, thank u very much!

sqzhang-jeremy avatar Jun 07 '20 12:06 sqzhang-jeremy

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

Silfalion avatar Aug 15 '20 14:08 Silfalion