Open lichanghong opened 4 years ago
Can you please provide more information? Please include:
infer --version
.infer -- make
.bash-3.2$ infer --version Infer version v0.15.0 Copyright 2009 - present Facebook. All Rights Reserved.
macOS Mojave 10.14.6 (18G95)
infer --keep-going --html \ --skip-analysis-in-path Pods \ -o $logpath -- xcodebuild -workspace $workspace -scheme ios_sojourn-Example -arch x86_64
builtin-productPackagingUtility -entitlements -format xml -o /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ZRControl_Loading-ZRControl_Loading.build/ZRControl_Loading.bundle-Simulated.xcent
CompileC /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/Objects-normal/x86_64/TZVideoPlayerController.o /Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'TZImagePickerController' from project 'Pods')
cd /Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods
export LANG=en_US.US-ASCII
/usr/local/Cellar/infer/0.15.0/lib/infer/infer/lib/python/inferlib/../../../lib/wrappers/clang -x objective-c -target x86_64-apple-ios6.0-simulator -fmessage-length=204 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/ziroom/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/ziroom/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -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 -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Index/DataStore -iquote /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/TZImagePickerController-generated-files.hmap -I/Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/TZImagePickerController-own-target-headers.hmap -I/Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/TZImagePickerController-all-target-headers.hmap -iquote /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/TZImagePickerController-project-headers.hmap -I/Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Products/Debug-iphonesimulator/TZImagePickerController/include -I/Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/Headers/Private -I/Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/Headers/Private/TZImagePickerController -I/Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/Headers/Public -I/Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/Headers/Public/TZImagePickerController -I/Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/DerivedSources-normal/x86_64 -I/Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/DerivedSources/x86_64 -I/Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/DerivedSources -F/Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Products/Debug-iphonesimulator/TZImagePickerController -include /Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/Target\ Support\ Files/TZImagePickerController/TZImagePickerController-prefix.pch -MMD -MT dependencies -MF /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/Objects-normal/x86_64/TZVideoPlayerController.d --serialize-diagnostics /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/Objects-normal/x86_64/TZVideoPlayerController.dia -c /Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m -o /Users/ziroom/Library/Developer/Xcode/DerivedData/ios_sojourn-dssahaaayeldwfhiubhpjvnlfhhv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TZImagePickerController.build/Objects-normal/x86_64/TZVideoPlayerController.o
While building module 'Photos' imported from /Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZImageManager.h:12:
In file included from
^
While building module 'Photos' imported from /Users/ziroom/Documents/ziroom/wireless/apps/ios_sojourn/Example/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZImageManager.h:12:
Thanks for the information. xcodebuild
is not well supported. You may find this page useful for analysing Xcode projects using infer.
i have same issue macos 10.15.1 xcode 11
i have same issue macos 10.15.1 xcode 11
infer --keep-going --skip-analysis-in-path ./Pods -- xcodebuild -scheme XXX -workspace XXX.xcworkspace -sdk iphonesimulator ARCHS=i386 ONLY_ACTIVE_ARCH=NO | xcpretty
Thanks for the information.
xcodebuild
is not well supported. You may find this page useful for analysing Xcode projects using infer.
thank you for your reply, I find that ,-sdk iphonesimulator12.2 can infer success ,bug -sdk iphonesimulator13.2 is failed . Is infer should be updated?
While building module 'Photos' imported from /Users/ziroom/Documents/ziroom/wireless/ziroom-client-ios/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZImageManager.h:12: In file included from:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/Photos.framework/Headers/Photos.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PHObject.h:11:1: error: expected 'push' or 'pop' after '#pragma clang attribute'
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PHPhotoLibrary.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/usr/include/os/availability.h:63:209: note: expanded from macro 'API_AVAILABLE_BEGIN'
define API_AVAILABLE_BEGIN(...) _Pragma("clang attribute push") API_AVAILABLE_BEGIN_GET_MACRO(VA_ARGS,API_AVAILABLE_BEGIN7,API_AVAILABLE_BEGIN6, API_AVAILABLE_BEGIN5, API_AVAILABLE_BEGIN4, API_AVAILABLE_BEGIN3, __API_AVAILABLE_BEGIN2...
fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. In file included from /Users/ziroom/Documents/ziroom/wireless/ziroom-client-ios/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m:10: In file included from /Users/ziroom/Documents/ziroom/wireless/ziroom-client-ios/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZImagePickerController.h:22: /Users/ziroom/Documents/ziroom/wireless/ziroom-client-ios/Pods/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZImageManager.h:12:9: fatal error: could not build module 'Photos'
import <Photos/Photos.h>