Open dongxianbin opened 4 years ago
编译环境 MacOS 10.15.7 Xcode 12.0.1 llvm-9.0
obfuscator版本及命令 mkdir build cd build cmake -DCMAKE_BUILD_TYPE =发布-DLLVM_CREATE_XCODE_TOOLCHAIN = ON -DLLVM_INCLUDE_TESTS = OFF ../obfuscator/ make -j7 sudo make install-xcode-toolchain mv / usr / local / Toolchains〜/ Library / Developer / rsync -a --ignore-existing /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/〜/ Library / Developer / Toolchains / LLVM9.0.0.xctoolchain / rm〜/库/开发人员/工具链/LLVM9.0.0.xctoolchain/ToolchainInfo.plist
参数 -mllvm -sub -mllvm -sobf -mllvm -fla -mllvm -bcf
错误显示 /Users/a1/Desktop/QpbyGame/frameworks/runtime-src/Classes/luaFileManager.cpp:242:7: warning: unused variable 'ok' [-Wunused-variable] bool ok = true; ^ Stack dump: Program arguments: /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/bin/clang-9 -cc1 -triple thumbv7-apple-ios8.0.0 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name luaFileManager.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -faligned-alloc-unavailable -target-sdk-version=14.0 -target-cpu generic -target-feature +soft-float-abi -target-abi apcs-gnu -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -dwarf-ext-refs -fmodule-format=obj -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=lldb -ggnu-pubnames -target-linker-version 609 -coverage-notes-file /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.gcno -resource-dir /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/lib/clang/9.0.0 -dependency-file /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -iquote /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-generated-files.hmap -iquote /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-project-headers.hmap -include-pch /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/PrecompiledHeaders/SharedPrecompiledHeaders/9018224644422365522/Prefix.pch.gch -D CC_TARGET_OS_IPHONE -D NDEBUG -D USE_FILE32API -D CC_LUA_ENGINE_ENABLED=1 -D CC_ENABLE_CHIPMUNK_INTEGRATION=1 -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-own-target-headers.hmap -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-all-target-headers.hmap -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/base -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/physics -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/math/kazmath -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/2d -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/ui -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/network -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/audio/include -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/editor-support -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/extensions -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external/chipmunk/include/chipmunk -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external/lua/luajit/include -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external/lua/tolua -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/scripting/lua-bindings/manual -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/tools/simulator/libsimulator/lib -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/tools/simulator/libsimulator/lib/protobuf-lite -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/platform/ios -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/BuildProductsPath/Release-iphoneos/include -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/DerivedSources-normal/armv7 -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/DerivedSources/armv7 -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/DerivedSources -F/Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/BuildProductsPath/Release-iphoneos -stdlib=libc++ -internal-isystem /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/bin/../include/c++/v1 -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include/c++/v1 -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/local/include -internal-isystem /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/lib/clang/9.0.0/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include -Os -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/a1/Desktop/QpbyGame/frameworks/runtime-src/proj.ios_mac -ferror-limit 19 -fmacro-backtrace-limit 0 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=ios-8.0.0 -fcxx-exceptions -fexceptions -fsjlj-exceptions -fpascal-strings -fmax-type-align=16 -fdiagnostics-show-option -fdiagnostics-show-note-include-stack -vectorize-loops -vectorize-slp -serialize-diagnostic-file /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.dia -mllvm -sub -mllvm -sobf -mllvm -fla -mllvm -bcf -o /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.o -x c++ /Users/a1/Desktop/QpbyGame/frameworks/runtime-src/Classes/luaFileManager.cpp parser at end of file Code generation Running pass 'Function Pass Manager' on module '/Users/a1/Desktop/QpbyGame/frameworks/runtime-src/Classes/luaFileManager.cpp'. Running pass 'SJLJ Exception Handling preparation' on function '@_Z37lua_FileManager_FileManager_createDirP9lua_State' 0 clang-9 0x000000010f35c3c5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37 1 clang-9 0x000000010f35b428 llvm::sys::RunSignalHandlers() + 248 2 clang-9 0x000000010f35c9b2 SignalHandler(int) + 258 3 libsystem_platform.dylib 0x00007fff689135fd _sigtramp + 29 4 libsystem_platform.dylib 0x0000002000000002 _sigtramp + 18446603476200770082 5 clang-9 0x000000010ed79781 llvm::FPPassManager::runOnFunction(llvm::Function&) + 1057 6 clang-9 0x000000010ed79a73 llvm::FPPassManager::runOnModule(llvm::Module&) + 131 7 clang-9 0x000000010ed79f49 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 969 8 clang-9 0x000000010f52bfbb clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_deletellvm::raw_pwrite_stream >) + 13915 9 clang-9 0x000000010f778af5 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 965 10 clang-9 0x00000001106225b3 clang::ParseAST(clang::Sema&, bool, bool) + 627 11 clang-9 0x000000010fa3b5ba clang::FrontendAction::Execute() + 90 12 clang-9 0x000000010f9d2ef0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1504 13 clang-9 0x000000010faac7d0 clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 2080 14 clang-9 0x000000010da2026f cc1_main(llvm::ArrayRef<char const>, char const, void*) + 2175 15 clang-9 0x000000010da1e15d main + 10973 16 libdyld.dylib 0x00007fff6871acc9 start + 1 clang-9: error: unable to execute command: Segmentation fault: 11 clang-9: error: clang frontend command failed due to signal (use -v to see invocation) Obfuscator-LLVM clang version 9.0.0 (https://github.com/heroims/obfuscator.git bd92c82) (based on Obfuscator-LLVM 9.0.0) Target: armv7-apple-ios8.0 Thread model: posix InstalledDir: /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/bin clang-9: note: diagnostic msg: PLEASE submit a bug report to http://o-llvm.org and include the crash backtrace, preprocessed source, and associated run script. clang-9: note: diagnostic msg: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-9: note: diagnostic msg: /var/folders/f4/dcmmc2f15_z0s75dfm9wrdwc0000gn/T/luaFileManager-97a6d6.cpp clang-9: note: diagnostic msg: /var/folders/f4/dcmmc2f15_z0s75dfm9wrdwc0000gn/T/luaFileManager-97a6d6.sh clang-9: note: diagnostic msg: Crash backtrace is located in clang-9: note: diagnostic msg: /Users/a1/Library/Logs/DiagnosticReports/clang-9__.crash clang-9: note: diagnostic msg: (choose the .crash file that corresponds to your crash) clang-9: note: diagnostic msg: 请问这个如何解决?用llvm-9.0.1好像也是同样的问题
编译环境 MacOS 10.15.7 Xcode 12.0.1 llvm-9.0
obfuscator版本及命令 mkdir build cd build cmake -DCMAKE_BUILD_TYPE =发布-DLLVM_CREATE_XCODE_TOOLCHAIN = ON -DLLVM_INCLUDE_TESTS = OFF ../obfuscator/ make -j7 sudo make install-xcode-toolchain mv / usr / local / Toolchains〜/ Library / Developer / rsync -a --ignore-existing /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/〜/ Library / Developer / Toolchains / LLVM9.0.0.xctoolchain / rm〜/库/开发人员/工具链/LLVM9.0.0.xctoolchain/ToolchainInfo.plist
参数 -mllvm -sub -mllvm -sobf -mllvm -fla -mllvm -bcf
错误显示 /Users/a1/Desktop/QpbyGame/frameworks/runtime-src/Classes/luaFileManager.cpp:242:7: warning: unused variable 'ok' [-Wunused-variable] bool ok = true; ^ Stack dump: Program arguments: /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/bin/clang-9 -cc1 -triple thumbv7-apple-ios8.0.0 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name luaFileManager.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -faligned-alloc-unavailable -target-sdk-version=14.0 -target-cpu generic -target-feature +soft-float-abi -target-abi apcs-gnu -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -dwarf-ext-refs -fmodule-format=obj -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=lldb -ggnu-pubnames -target-linker-version 609 -coverage-notes-file /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.gcno -resource-dir /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/lib/clang/9.0.0 -dependency-file /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -iquote /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-generated-files.hmap -iquote /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-project-headers.hmap -include-pch /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/PrecompiledHeaders/SharedPrecompiledHeaders/9018224644422365522/Prefix.pch.gch -D CC_TARGET_OS_IPHONE -D NDEBUG -D USE_FILE32API -D CC_LUA_ENGINE_ENABLED=1 -D CC_ENABLE_CHIPMUNK_INTEGRATION=1 -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-own-target-headers.hmap -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/棋盘捕鱼-all-target-headers.hmap -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/base -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/physics -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/math/kazmath -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/2d -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/ui -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/network -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/audio/include -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/editor-support -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/extensions -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external/chipmunk/include/chipmunk -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external/lua/luajit/include -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/external/lua/tolua -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/scripting/lua-bindings/manual -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/tools/simulator/libsimulator/lib -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/tools/simulator/libsimulator/lib/protobuf-lite -I /Users/a1/Desktop/QpbyGame/frameworks/cocos2d-x/cocos/platform/ios -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/BuildProductsPath/Release-iphoneos/include -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/DerivedSources-normal/armv7 -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/DerivedSources/armv7 -I /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/DerivedSources -F/Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/BuildProductsPath/Release-iphoneos -stdlib=libc++ -internal-isystem /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/bin/../include/c++/v1 -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include/c++/v1 -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/local/include -internal-isystem /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/lib/clang/9.0.0/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include -Os -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/a1/Desktop/QpbyGame/frameworks/runtime-src/proj.ios_mac -ferror-limit 19 -fmacro-backtrace-limit 0 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=ios-8.0.0 -fcxx-exceptions -fexceptions -fsjlj-exceptions -fpascal-strings -fmax-type-align=16 -fdiagnostics-show-option -fdiagnostics-show-note-include-stack -vectorize-loops -vectorize-slp -serialize-diagnostic-file /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.dia -mllvm -sub -mllvm -sobf -mllvm -fla -mllvm -bcf -o /Users/a1/Library/Developer/Xcode/DerivedData/QpbyGame-ggjgwyadthuxudctgkuwirszagiw/Build/Intermediates.noindex/ArchiveIntermediates/QpbyGame-mobile/IntermediateBuildFilesPath/QpbyGame.build/Release-iphoneos/QpbyGame-mobile.build/Objects-normal/armv7/luaFileManager.o -x c++ /Users/a1/Desktop/QpbyGame/frameworks/runtime-src/Classes/luaFileManager.cpp parser at end of file Code generation Running pass 'Function Pass Manager' on module '/Users/a1/Desktop/QpbyGame/frameworks/runtime-src/Classes/luaFileManager.cpp'. Running pass 'SJLJ Exception Handling preparation' on function '@_Z37lua_FileManager_FileManager_createDirP9lua_State' 0 clang-9 0x000000010f35c3c5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37 1 clang-9 0x000000010f35b428 llvm::sys::RunSignalHandlers() + 248 2 clang-9 0x000000010f35c9b2 SignalHandler(int) + 258 3 libsystem_platform.dylib 0x00007fff689135fd _sigtramp + 29 4 libsystem_platform.dylib 0x0000002000000002 _sigtramp + 18446603476200770082 5 clang-9 0x000000010ed79781 llvm::FPPassManager::runOnFunction(llvm::Function&) + 1057 6 clang-9 0x000000010ed79a73 llvm::FPPassManager::runOnModule(llvm::Module&) + 131 7 clang-9 0x000000010ed79f49 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 969 8 clang-9 0x000000010f52bfbb clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_deletellvm::raw_pwrite_stream >) + 13915 9 clang-9 0x000000010f778af5 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 965 10 clang-9 0x00000001106225b3 clang::ParseAST(clang::Sema&, bool, bool) + 627 11 clang-9 0x000000010fa3b5ba clang::FrontendAction::Execute() + 90 12 clang-9 0x000000010f9d2ef0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1504 13 clang-9 0x000000010faac7d0 clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 2080 14 clang-9 0x000000010da2026f cc1_main(llvm::ArrayRef<char const>, char const, void*) + 2175 15 clang-9 0x000000010da1e15d main + 10973 16 libdyld.dylib 0x00007fff6871acc9 start + 1 clang-9: error: unable to execute command: Segmentation fault: 11 clang-9: error: clang frontend command failed due to signal (use -v to see invocation) Obfuscator-LLVM clang version 9.0.0 (https://github.com/heroims/obfuscator.git bd92c82) (based on Obfuscator-LLVM 9.0.0) Target: armv7-apple-ios8.0 Thread model: posix InstalledDir: /Users/a1/Library/Developer/Toolchains/LLVM9.0.0.xctoolchain/usr/bin clang-9: note: diagnostic msg: PLEASE submit a bug report to http://o-llvm.org and include the crash backtrace, preprocessed source, and associated run script. clang-9: note: diagnostic msg: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-9: note: diagnostic msg: /var/folders/f4/dcmmc2f15_z0s75dfm9wrdwc0000gn/T/luaFileManager-97a6d6.cpp clang-9: note: diagnostic msg: /var/folders/f4/dcmmc2f15_z0s75dfm9wrdwc0000gn/T/luaFileManager-97a6d6.sh clang-9: note: diagnostic msg: Crash backtrace is located in clang-9: note: diagnostic msg: /Users/a1/Library/Logs/DiagnosticReports/clang-9__.crash clang-9: note: diagnostic msg: (choose the .crash file that corresponds to your crash) clang-9: note: diagnostic msg: 请问这个如何解决?用llvm-9.0.1好像也是同样的问题