rockylive / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

'GTMSessionFetcher.h' file not found #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Commit 455 has some macro changes in GTLService.h which breaks the compilation 
of GTLTouchStaticLib on iOS 9.

Original issue reported on code.google.com by an0...@gmail.com on 21 Jul 2015 at 10:58

GoogleCodeExporter commented 9 years ago
Unfortunately, this is due to some incomplete transitions of the library, 
including the move to support iOS 9 and OS X 10.11, which have deprecated 
NSURLConnection.

For now, if your project targets iOS 8 or OS X 10.10 or earlier, then define 
GTM_USE_SESSION_FETCHER to 0 for your targets. That will force the library to 
use the old GTMHTTPFetcher class.

If your minimum target is iOS 9 or OS X 10.11, you'll instead need to replace 
GTMHTTPFetcher with GTMSessionFetcher from 
https://code.google.com/p/gtm-session-fetcher/

Original comment by grobb...@google.com on 23 Jul 2015 at 10:48

GoogleCodeExporter commented 9 years ago
I had a similar error when trying to build this, pasted below. I set 
GTM_USE_SESSION_FETCHER to 0 in the "Other C Flags" and Other C++ Flags" for 
the target. Made no difference.

CompileC 
/Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxz
dxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator
.build/Objects-normal/x86_64/GTMSessionFetcherLogging.o 
/Users/Eliot/dev/biketracker/biketracker-ios/gtm_session_fetcher/Source/GTMSessi
onFetcherLogging.m normal x86_64 objective-c 
com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/Eliot/dev/biketracker/biketracker-ios/google-api-objectivec-client-read-only/Source/Tools/ServiceGenerator
    export LANG=en_US.US-ASCII
    /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=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Werror -Werror-implicit-function-declaration -Wmissing-field-initializers -Wmissing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.10 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/ServiceGenerator-generated-files.hmap -I/Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/ServiceGenerator-own-target-headers.hmap -I/Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/ServiceGenerator-all-target-headers.hmap -iquote /Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/ServiceGenerator-project-headers.hmap -I/Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/DerivedSources/x86_64 -I/Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/DerivedSources -F/Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Products/Debug -Wformat -Wall -DGTM_USE_SESSION_FETCHER=0 -fobjc-arc -MMD -MT dependencies -MF /Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/Objects-normal/x86_64/GTMSessionFetcherLogging.d --serialize-diagnostics /Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/Objects-normal/x86_64/GTMSessionFetcherLogging.dia -c /Users/Eliot/dev/biketracker/biketracker-ios/gtm_session_fetcher/Source/GTMSessionFetcherLogging.m -o /Users/Eliot/Library/Developer/Xcode/DerivedData/ServiceGenerator-gkzzwfyorrikxzdxrvtindkbqldx/Build/Intermediates/ServiceGenerator.build/Debug/ServiceGenerator.build/Objects-normal/x86_64/GTMSessionFetcherLogging.o

clang: error: no such file or directory: 
'/Users/Eliot/dev/biketracker/biketracker-ios/gtm_session_fetcher/Source/GTMSess
ionFetcherLogging.m'
clang: error: no input files

Original comment by 1...@eliotstock.com on 9 Aug 2015 at 6:54