Open maacpiash opened 4 years ago
This is my output:
❯ sudo swift main.swift main.swift:136:5: warning: result of call to 'shell' is unused shell("xxd -r -p /tmp/SidecarPatcher/output.txt /tmp/SidecarPatcher/SidecarCore") ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.swift:139:5: warning: result of call to 'shell' is unused shell("sudo mount -uw /") ^ ~~~~~~~~~~~~~~~~~~~~ main.swift:161:5: warning: result of call to 'shell' is unused shell("sudo codesign -f -s - \"\(path)/SidecarCore\"") ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.swift:162:5: warning: result of call to 'shell' is unused shell("sudo chmod 755 \"\(path)/SidecarCore\"") ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SidecarPatcher (Version 13) GitHub : https://github.com/pookjw/SidecarPatcher Fatal error: Already patched!: file main.swift, line 78 Stack dump: 0. Program arguments: /Library/Developer/CommandLineTools/usr/bin/swift -frontend -interpret main.swift -enable-objc-interop -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -color-diagnostics -module-name main 0 swift 0x000000010ea84eb3 PrintStackTraceSignalHandler(void*) + 51 1 swift 0x000000010ea84686 SignalHandler(int) + 358 2 libsystem_platform.dylib 0x00007fff720f942d _sigtramp + 29 3 libsystem_platform.dylib 0x00007ffee55bf3f0 _sigtramp + 1934385120 4 libswiftCore.dylib 0x00007fff7138ceb6 $ss16assertionFailure_4file4lineySSyXK_s12StaticStringVSutF + 70 5 libswiftCore.dylib 0x00000001147487b5 $ss16assertionFailure_4file4lineySSyXK_s12StaticStringVSutF + 2738600261 6 libswiftCore.dylib 0x000000011474746a $ss16assertionFailure_4file4lineySSyXK_s12StaticStringVSutF + 2738595322 7 swift 0x000000010a704a2d llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRef<llvm::GenericValue>) + 365 8 swift 0x000000010a70b9e2 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, char const* const*) + 1090 9 swift 0x000000010a6deb31 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 45809 10 swift 0x000000010a6d0034 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6820 11 swift 0x000000010a65d5a3 main + 1219 12 libdyld.dylib 0x00007fff71f007fd start + 1 [1] 962 illegal hardware instruction sudo swift main.swift
I should also inform that I had followed PassionPenguin/SidecarCorePatch which did not work for me, so I tried to execute this Swift source code.
This is my output:
I should also inform that I had followed PassionPenguin/SidecarCorePatch which did not work for me, so I tried to execute this Swift source code.