ios - clang error unknown argument '-fno-obj-arc' AFNetworking Xcode 5.1 -


this question has answer here:

so tried run app on iphone 7, , asihttp didn't work. after search saw people migrating afnetworking, decided same. here's did:

  • updated xcode version 5.1
  • followed instructions here (setup cocoapods, installed afnetworking, changed project)

and tried run. first build failed message:

clang: error: unknown argument: '-fno-obj-arc' [-wunused-command-line-argument-hard-error-in-future] clang: note: hard error (cannot downgraded warning) in future command /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang failed exit code 1 

the 2 reports found here , here

and tell me add flag while doing pod download:

archflags=-wno-error=unused-command-line-argument-hard-error-in-future 

did , tried again, no avail. can't go other project. has dealt problem far? option in command line, can't find anywhere remove it. don't think should anyway.

here's command line, can see argument right after afnetworking:

processpch /users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/intermediates/precompiledheaders/spcmobile-prefix-bbhdqojfrkhfytgpvixlnglajmxy/spcmobile-prefix.pch.pch spcmobile/spcmobile-prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler     cd /users/cesarc/desktop/projetos/spcmobile     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/bin:/bin:/usr/sbin:/sbin"     /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang -x objective-c-header -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -wno-trigraphs -fpascal-strings -os -wno-missing-field-initializers -wno-missing-prototypes -wno-implicit-atomic-properties -wno-receiver-is-weak -wno-arc-repeated-use-of-weak -wduplicate-method-match -wno-missing-braces -wparentheses -wswitch -wno-unused-function -wno-unused-label -wno-unused-parameter -wunused-variable -wunused-value -wempty-body -wuninitialized -wno-unknown-pragmas -wno-shadow -wno-four-char-constants -wno-conversion -wconstant-conversion -wint-conversion -wno-bool-conversion -wenum-conversion -wno-shorten-64-to-32 -wpointer-sign -wno-newline-eof -wno-selector -wno-strict-selector-match -wno-undeclared-selector -wno-deprecated-implementations -dcocoapods=1 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -wprotocol -wdeprecated-declarations -g -fvisibility=hidden -wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.1 -i/users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/intermediates/spcmobile.build/release-iphonesimulator/spcmobile.build/spcmobile.hmap -i/users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/products/release-iphonesimulator/include -i/users/cesarc/desktop/projetos/spcmobile/pods/headers -i/users/cesarc/desktop/projetos/spcmobile/pods/headers/afnetworking -i/users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/intermediates/spcmobile.build/release-iphonesimulator/spcmobile.build/derivedsources/i386 -i/users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/intermediates/spcmobile.build/release-iphonesimulator/spcmobile.build/derivedsources -f/users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/products/release-iphonesimulator -dns_block_assertions=1 -isystem /users/cesarc/desktop/projetos/spcmobile/pods/headers -isystem /users/cesarc/desktop/projetos/spcmobile/pods/headers/afnetworking -fno-obj-arc --serialize-diagnostics /users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/intermediates/precompiledheaders/spcmobile-prefix-bbhdqojfrkhfytgpvixlnglajmxy/spcmobile-prefix.pch.dia -mmd -mt dependencies -mf /users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/intermediates/precompiledheaders/spcmobile-prefix-bbhdqojfrkhfytgpvixlnglajmxy/spcmobile-prefix.pch.d -c /users/cesarc/desktop/projetos/spcmobile/spcmobile/spcmobile-prefix.pch -o /users/cesarc/library/developer/xcode/deriveddata/spcmobile-aaaxjlqvwxhxfbhebqibusfjonip/build/intermediates/precompiledheaders/spcmobile-prefix-bbhdqojfrkhfytgpvixlnglajmxy/spcmobile-prefix.pch.pch 

check build phases section compile sources, should have no arc flag (-fno-objc-arc) there, make sure spelling correct.

  1. build phases:

  2. compile sources


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -