Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang: error: -fobjc-weak is not supported on the current deployment target #380

Closed
qqianng opened this issue Feb 3, 2018 · 2 comments
Closed

Comments

@qqianng
Copy link

qqianng commented Feb 3, 2018

CompileC /Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/Objects-normal/x86_64/ActionSheetCustomPicker.o ActionSheetPicker-3.0/Pickers/ActionSheetCustomPicker.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods
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:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ModuleCache/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 -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/iPhoneSimulator11.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=4.3 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Index/DataStore -iquote /Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/ActionSheetPicker-3.0-generated-files.hmap -I/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/ActionSheetPicker-3.0-own-target-headers.hmap -I/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/ActionSheetPicker-3.0-all-target-headers.hmap -iquote /Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/ActionSheetPicker-3.0-project-headers.hmap -I/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/include -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Private -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Private/ActionSheetPicker-3.0 -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/AFNetworking -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/ActionSheetPicker-3.0 -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/DACircularProgress -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/DateTools -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/GDataXMLNode2 -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/HMSegmentedControl -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/IQKeyboardManager -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/MBProgressHUD -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/MJExtension -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/MJRefresh -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/MMNumberKeyboard -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/MWPhotoBrowser -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/Masonry -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/PYSearch -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/ReactiveObjC -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/SDCycleScrollView -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/SDWebImage -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/STPopup -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/WebViewJavascriptBridge -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/YBPopupMenu -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/YYImage -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/ZLPhotoBrowser -I/Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Headers/Public/zhPopupController -I/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/DerivedSources/x86_64 -I/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/DerivedSources -F/Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0 -DOS_OBJECT_USE_OBJC=0 -w -Xanalyzer -analyzer-disable-all-checks -include /Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/Target\ Support\ Files/ActionSheetPicker-3.0/ActionSheetPicker-3.0-prefix.pch -MMD -MT dependencies -MF /Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/Objects-normal/x86_64/ActionSheetCustomPicker.d --serialize-diagnostics /Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/Objects-normal/x86_64/ActionSheetCustomPicker.dia -c /Users/liqiangqiang/Desktop/thaipaymall_iOS/Pods/ActionSheetPicker-3.0/Pickers/ActionSheetCustomPicker.m -o /Users/liqiangqiang/Library/Developer/Xcode/DerivedData/ThaiFintech-auliprptidlrrifrcvnuvaatioko/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ActionSheetPicker-3.0.build/Objects-normal/x86_64/ActionSheetCustomPicker.o

@qqianng
Copy link
Author

qqianng commented Feb 3, 2018

Do some one can tell me why? When i build project i encounter this problem, but in other computer it can build successfully!

@qqianng
Copy link
Author

qqianng commented Feb 4, 2018

2018-02-04 6 40 30

choose weak references in manual retain release to NO, and build again, and it will build successfully!

@qqianng qqianng closed this as completed Feb 4, 2018
@qqianng qqianng reopened this Feb 4, 2018
@qqianng qqianng closed this as completed Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant