Skip to content

Instantly share code, notes, and snippets.

@leiless
Created February 3, 2019 06:09
Show Gist options
  • Save leiless/fa4a0ba668c4fecb1b935d7ab11ec8bf to your computer and use it in GitHub Desktop.
Save leiless/fa4a0ba668c4fecb1b935d7ab11ec8bf to your computer and use it in GitHub Desktop.
Barebone IOKit kernel extension build log(Xcode 9.4.1(9F2000))
Showing All Messages
Build target IOKitExample of project IOKitExample with configuration Debug
Write auxiliary files
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-all-target-headers.hmap
/bin/mkdir -p /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources/IOKitExample_info.c
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-generated-files.hmap
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-own-target-headers.hmap
/bin/mkdir -p /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample.LinkFileList
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-all-non-framework-target-headers.hmap
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-project-headers.hmap
write-file /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample.hmap
Create product structure
/bin/mkdir -p /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext/Contents
/bin/mkdir -p /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext/Contents/MacOS
ProcessInfoPlistFile DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext/Contents/Info.plist IOKitExample/Info.plist
cd /Users/lynnl/dev/IOKitExample
builtin-infoPlistUtility /Users/lynnl/dev/IOKitExample/IOKitExample/Info.plist -expandbuildsettings -platform macosx -o /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext/Contents/Info.plist
CompileC DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample.o IOKitExample/IOKitExample.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/lynnl/dev/IOKitExample
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -nostdinc -std=gnu++14 -stdlib=libc++ -fmodules -gmodules -fmodules-cache-path=/Users/lynnl/dev/IOKitExample/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/lynnl/dev/IOKitExample/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fno-builtin -Wno-trigraphs -fno-exceptions -fno-rtti -fno-sanitize=vptr -msoft-float -O0 -fno-common -mkernel -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DDEBUG=1 -DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fapple-kext -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.13 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wunguarded-availability -index-store-path /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Index/DataStore -iquote /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-generated-files.hmap -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-own-target-headers.hmap -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-all-target-headers.hmap -iquote /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-project-headers.hmap -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Kernel.framework/PrivateHeaders -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Kernel.framework/Headers -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources/x86_64 -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources -F/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug -MMD -MT dependencies -MF /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample.d --serialize-diagnostics /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample.dia -c /Users/lynnl/dev/IOKitExample/IOKitExample/IOKitExample.cpp -o /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample.o
CompileC DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample_info.o DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources/IOKitExample_info.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/lynnl/dev/IOKitExample
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -nostdinc -std=gnu11 -fmodules -gmodules -fmodules-cache-path=/Users/lynnl/dev/IOKitExample/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/lynnl/dev/IOKitExample/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fno-builtin -Wno-trigraphs -msoft-float -O0 -fno-common -mkernel -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DDEBUG=1 -DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.13 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wunguarded-availability -index-store-path /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Index/DataStore -iquote /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-generated-files.hmap -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-own-target-headers.hmap -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-all-target-headers.hmap -iquote /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample-project-headers.hmap -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Kernel.framework/PrivateHeaders -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Kernel.framework/Headers -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources/x86_64 -I/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources -F/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug -MMD -MT dependencies -MF /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample_info.d --serialize-diagnostics /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample_info.dia -c /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/DerivedSources/IOKitExample_info.c -o /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample_info.o
Ld DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext/Contents/MacOS/IOKitExample normal x86_64
cd /Users/lynnl/dev/IOKitExample
export MACOSX_DEPLOYMENT_TARGET=10.13
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -L/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug -F/Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug -filelist /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample.LinkFileList -mmacosx-version-min=10.13 -Xlinker -object_path_lto -Xlinker /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib=libc++ -Xlinker -kext -nostdlib -lkmodc++ /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample_info.o -lkmod -lcc_kext -Xlinker -dependency_info -Xlinker /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/Objects-normal/x86_64/IOKitExample_dependency_info.dat -o /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext/Contents/MacOS/IOKitExample
Touch DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext
cd /Users/lynnl/dev/IOKitExample
/usr/bin/touch -c /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext
ProcessProductPackaging "" DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample.kext.xcent
cd /Users/lynnl/dev/IOKitExample
Entitlements:
{
"com.apple.security.get-task-allow" = 1;
}
builtin-productPackagingUtility -entitlements -format xml -o /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample.kext.xcent
CodeSign DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext
cd /Users/lynnl/dev/IOKitExample
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --entitlements /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Intermediates.noindex/IOKitExample.build/Debug/IOKitExample.build/IOKitExample.kext.xcent --timestamp=none /Users/lynnl/dev/IOKitExample/DerivedData/IOKitExample/Build/Products/Debug/IOKitExample.kext
Build succeeded 2/3/19, 2:08 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment