Hello world iOS
infer -- xcodebuild -target <项目名> -configuration Debug -sdk iphonesimulator
58deMacBook-Pro:ios_hello wuxian$ infer -- xcodebuild -target HelloWorldApp -configuration Debug -sdk iphonesimulator
Build settings from command line:
CC = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang
CPLUSPLUS = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang++
DEBUG_INFORMATION_FORMAT = 'dwarf'
LD = /usr/bin/true
LDPLUSPLUS = /usr/bin/true
LIPO = /usr/bin/true
SDKROOT = iphonesimulator8.2
=== BUILD TARGET HelloWorldApp OF PROJECT HelloWorldApp WITH CONFIGURATION Debug ===
Check dependencies
Write auxiliary files
/bin/mkdir -p /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build
write-file /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp.hmap
write-file /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-all-target-headers.hmap
write-file /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-generated-files.hmap
/bin/mkdir -p /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386
write-file /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp.LinkFileList
write-file /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-all-non-framework-target-headers.hmap
write-file /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-own-target-headers.hmap
write-file /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-project-headers.hmap
Create product structure
/bin/mkdir -p /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app
CompileC build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/AppDelegate.o HelloWorldApp/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin"
/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang -x objective-c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=8.2 -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-generated-files.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-own-target-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-all-target-headers.hmap -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-project-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources/i386 -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/AppDelegate.d --serialize-diagnostics /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/AppDelegate.dia -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/AppDelegate.m -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/AppDelegate.o
2015-06-13 14:22:36.908 xcodebuild[3598:120411] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-6728/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/BuildCommandResultsPostprocessing/XCClangResultsPostprocessor.m:68 Details: Unable to read diagnostics from file "/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/Hello.dia" (Invalid File): diagnostics file is a newer version than the one supported Function: void XCGenerateDiagnosticsFromFile(NSString *__strong, NSString *__strong, NSDictionary *__strong, NSDictionary *__strong, IDEActivityLogSectionRecorder *__strong, BOOL (^__strong)(IDEActivityLogMessage *__strong)) Thread: <NSThread: 0x7fa800699f70>{number = 7, name = (null)} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. 2015-06-13 14:22:37.768 xcodebuild[3598:120519] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-6728/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/BuildCommandResultsPostprocessing/XCClangResultsPostprocessor.m:68 Details: Unable to read diagnostics from file "/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/main.dia" (Invalid File): diagnostics file is a newer version than the one supported Function: void XCGenerateDiagnosticsFromFile(NSString *__strong, NSString *__strong, NSDictionary *__strong, NSDictionary *__strong, IDEActivityLogSectionRecorder *__strong, BOOL (^__strong)(IDEActivityLogMessage *__strong)) Thread: <NSThread: 0x7fa80298f8b0>{number = 8, name = (null)} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. 2015-06-13 14:22:37.808 xcodebuild[3598:120410] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-6728/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/BuildCommandResultsPostprocessing/XCClangResultsPostprocessor.m:68 Details: Unable to read diagnostics from file "/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/ViewController.dia" (Invalid File): diagnostics file is a newer version than the one supported Function: void XCGenerateDiagnosticsFromFile(NSString *__strong, NSString *__strong, NSDictionary *__strong, NSDictionary *__strong, IDEActivityLogSectionRecorder *__strong, BOOL (^__strong)(IDEActivityLogMessage *__strong)) Thread: <NSThread: 0x7fa802975450>{number = 9, name = (null)} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/AppDelegate.m:20:15: warning: unused variable 'shadowPath' [-Wunused-variable] CGPathRef shadowPath = CGPathCreateWithRect(self.inputView.bounds, NULL); ^ 1 warning generated. 2015-06-13 14:22:37.812 xcodebuild[3598:120435] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-6728/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/BuildCommandResultsPostprocessing/XCClangResultsPostprocessor.m:68 Details: Unable to read diagnostics from file "/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/AppDelegate.dia" (Invalid File): diagnostics file is a newer version than the one supported Function: void XCGenerateDiagnosticsFromFile(NSString *__strong, NSString *__strong, NSDictionary *__strong, NSDictionary *__strong, IDEActivityLogSectionRecorder *__strong, BOOL (^__strong)(IDEActivityLogMessage *__strong)) Thread: <NSThread: 0x7fa802d26fe0>{number = 10, name = (null)} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. CompileC build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/ViewController.o HelloWorldApp/ViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang -x objective-c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=8.2 -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-generated-files.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-own-target-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-all-target-headers.hmap -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-project-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources/i386 -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/ViewController.d --serialize-diagnostics /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/ViewController.dia -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/ViewController.m -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/ViewController.o CompileC build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/main.o HelloWorldApp/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang -x objective-c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=8.2 -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-generated-files.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-own-target-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-all-target-headers.hmap -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-project-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources/i386 -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/main.dia -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/main.m -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/main.o CompileC build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/Hello.o HelloWorldApp/Hello.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang -x objective-c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=8.2 -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-generated-files.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-own-target-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-all-target-headers.hmap -iquote /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/HelloWorldApp-project-headers.hmap -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources/i386 -I/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/DerivedSources -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/Hello.d --serialize-diagnostics /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/Hello.dia -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Hello.m -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/Hello.o Ld build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp normal i386 cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export IPHONEOS_DEPLOYMENT_TARGET=8.2 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" /usr/bin/true -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -filelist /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.2 -Xlinker -dependency_info -Xlinker /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp_dependency_info.dat -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp CompileStoryboard HelloWorldApp/Base.lproj/Main.storyboard cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/.. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --target-device iphone --errors --warnings --notices --module HelloWorldApp --minimum-deployment-target 8.2 --output-partial-info-plist /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compilation-directory /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/Base.lproj /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Base.lproj/Main.storyboard CompileAssetCatalog build/Debug-iphonesimulator/HelloWorldApp.app HelloWorldApp/Images.xcassets cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/assetcatalog_dependencies.txt --output-partial-info-plist /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/assetcatalog_generated_info.plist --app-icon AppIcon --platform iphonesimulator --minimum-deployment-target 8.2 --target-device iphone --compress-pngs --compile /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Images.xcassets /* com.apple.actool.compilation-results */ /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/assetcatalog_generated_info.plist CompileXIB HelloWorldApp/Base.lproj/LaunchScreen.xib cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/.. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --target-device iphone --errors --warnings --notices --module HelloWorldApp --minimum-deployment-target 8.2 --output-partial-info-plist /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/LaunchScreen-PartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compile /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/Base.lproj/LaunchScreen.nib /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Base.lproj/LaunchScreen.xib ProcessInfoPlistFile build/Debug-iphonesimulator/HelloWorldApp.app/Info.plist HelloWorldApp/Info.plist cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" builtin-infoPlistUtility /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Info.plist -genpkginfo /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -additionalcontentfile /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Main-SBPartialInfo.plist -additionalcontentfile /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/LaunchScreen-PartialInfo.plist -additionalcontentfile /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/assetcatalog_generated_info.plist -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/Info.plist Touch build/Debug-iphonesimulator/HelloWorldApp.app cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin" /usr/bin/touch -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app ** BUILD SUCCEEDED ** Starting analysis (Infer version v0.1.0) Analysis done 4 files analyzed /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/AppDelegate.m:20: error: MEMORY_LEAK memory dynamically allocated to shadowPath by call to CGPathCreateWithRect() at line 20, column 28 is not reachable after line 20, column 5 /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/AppDelegate.m:25: error: RESOURCE_LEAK resource acquired to fp by call to fopen() at line 25, column 8 is not released after line 25, column 5 /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/AppDelegate.m:29: warning: PARAMETER_NOT_NULL_CHECKED Parameter callback is not checked for null, there could be a null pointer dereference: pointer callback could be null and is dereferenced at line 29, column 5 /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/AppDelegate.m:34: error: NULL_DEREFERENCE pointer str last assigned on line 33 could be null and is dereferenced at line 34, column 12 /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/AppDelegate.m:39: error: PREMATURE_NIL_TERMINATION_ARGUMENT pointer str last assigned on line 38 could be nil which results in a call to arrayWithObjects: with 1 arguments instead of 3 (nil indicates that the last argument of this variadic method has been reached) at line 39, column 12 /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Hello.m:20: error: NULL_DEREFERENCE pointer hello last assigned on line 19 could be null and is dereferenced at line 20, column 12 /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Hello.m:25: warning: IVAR_NOT_NULL_CHECKED Instance variable hello -> _hello is not checked for null, there could be a null pointer dereference: pointer ret_hello last assigned on line 24 could be null and is dereferenced at line 25, column 12 /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/HelloWorldApp/Hello.m:30: warning: PARAMETER_NOT_NULL_CHECKED Parameter hello is not checked for null, there could be a null pointer dereference: pointer ret_hello last assigned on line 29 could be null and is dereferenced at line 30, column 12
如果想再次分析,还用上面的命令是不起效果的:
Build settings from command line:
CC = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang
CPLUSPLUS = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang++
DEBUG_INFORMATION_FORMAT = 'dwarf'
LD = /usr/bin/true
LDPLUSPLUS = /usr/bin/true
LIPO = /usr/bin/true
SDKROOT = iphonesimulator8.2
=== BUILD TARGET HelloWorldApp OF PROJECT HelloWorldApp WITH CONFIGURATION Debug ===
Check dependencies
Ld build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp normal i386
cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello
export IPHONEOS_DEPLOYMENT_TARGET=8.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin"
/usr/bin/true -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -filelist /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.2 -Xlinker -dependency_info -Xlinker /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp_dependency_info.dat -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp
Touch build/Debug-iphonesimulator/HelloWorldApp.app
cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin"
/usr/bin/touch -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app
** BUILD SUCCEEDED **
There was nothing to analyze, exiting
因为这个时候没有编译文件,自然部分分析文件,如果想要达到分析文件,需要用下面的命令:
infer --incremental -- xcodebuild -target HelloWorldApp -configuration Debug -sdk iphonesimulator
其中的关注点是--incremental
(也可以写成–i)
但是实际我们的执行效果仍然没有重新分析文件:
There was nothing to analyze, exiting
58deMacBook-Pro:ios_hello wuxian$ infer --incremental -- xcodebuild -target HelloWorldApp -configuration Debug -sdk iphonesimulator
Build settings from command line:
CC = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang
CPLUSPLUS = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang++
DEBUG_INFORMATION_FORMAT = 'dwarf'
LD = /usr/bin/true
LDPLUSPLUS = /usr/bin/true
LIPO = /usr/bin/true
SDKROOT = iphonesimulator8.2
=== BUILD TARGET HelloWorldApp OF PROJECT HelloWorldApp WITH CONFIGURATION Debug ===
Check dependencies
Ld build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp normal i386
cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello
export IPHONEOS_DEPLOYMENT_TARGET=8.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin"
/usr/bin/true -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -filelist /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.2 -Xlinker -dependency_info -Xlinker /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp_dependency_info.dat -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp
Touch build/Debug-iphonesimulator/HelloWorldApp.app
cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin"
/usr/bin/touch -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app
** BUILD SUCCEEDED **
There was nothing to analyze, exiting
58deMacBook-Pro:ios_hello wuxian$ infer -i -- xcodebuild -target HelloWorldApp -configuration Debug -sdk iphonesimulator
Build settings from command line:
CC = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang
CPLUSPLUS = /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/clang++
DEBUG_INFORMATION_FORMAT = 'dwarf'
LD = /usr/bin/true
LDPLUSPLUS = /usr/bin/true
LIPO = /usr/bin/true
SDKROOT = iphonesimulator8.2
=== BUILD TARGET HelloWorldApp OF PROJECT HelloWorldApp WITH CONFIGURATION Debug ===
Check dependencies
Ld build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp normal i386
cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello
export IPHONEOS_DEPLOYMENT_TARGET=8.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin"
/usr/bin/true -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -F/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator -filelist /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.2 -Xlinker -dependency_info -Xlinker /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build/Objects-normal/i386/HelloWorldApp_dependency_info.dat -o /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app/HelloWorldApp
Touch build/Debug-iphonesimulator/HelloWorldApp.app
cd /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wuxian/.opam/4.01.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/wuxian/Documents/tools/sdk/platform-tools:/Users/wuxian/Documents/tools/apache-ant-1.9.4/bin:/Users/wuxian/Documents/tools/sonar-runner-2.4/bin:/Users/wuxian/Documents/tools/gradle-2.4/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home:JAVA_7_HOME:JAVA_8_HOME:/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home:/Users/wuxian/Downloads/infer-osx-v0.1.0/infer/infer/bin"
/usr/bin/touch -c /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app
** BUILD SUCCEEDED **
There was nothing to analyze, exiting
上面的命令已经不起效果了,只能找另外一个变通的方式,先clean 项目,再执行分析命令:
58deMacBook-Pro:ios_hello wuxian$ xcodebuild -target HelloWorldApp -configuration Debug -sdk iphonesimulator clean
Build settings from command line:
SDKROOT = iphonesimulator8.2
=== CLEAN TARGET HelloWorldApp OF PROJECT HelloWorldApp WITH CONFIGURATION Debug ===
Check dependencies
Clean.Remove clean build/Debug-iphonesimulator/HelloWorldApp.app.dSYM
builtin-rm -rf /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app.dSYM
Clean.Remove clean build/Debug-iphonesimulator/HelloWorldApp.app
builtin-rm -rf /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/Debug-iphonesimulator/HelloWorldApp.app
Clean.Remove clean build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build
builtin-rm -rf /Users/wuxian/Downloads/infer-osx-v0.1.0/infer/examples/ios_hello/build/HelloWorldApp.build/Debug-iphonesimulator/HelloWorldApp.build
** CLEAN SUCCEEDED **
再次执行infer -- xcodebuild -target HelloWorldApp -configuration Debug -sdk iphonesimulator
或 infer -i -- xcodebuild -target HelloWorldApp -configuration Debug -sdk iphonesimulator
都可以.