Closed eraydiler closed 8 years ago
Do you use use_frameworks! in from pod file?
@perotinus any ideas?
I even tried to add library by following; https://github.com/google/google-api-objectivec-client/wiki/BuildingTheLibrary Linking to the Framework (iOS or OS X)
section. And still getting the same error :cry:
That framework has a different name, so the prefix on the import will be different (GTL/GTMOAuth2ViewControllerTouch.h)
My previous question still hold, how were you setting up your pod file, do you use use_frameworks! or not?
My import is #include <GTL/GTMOAuth2ViewControllerTouch.h>
right now. I removed the library from podfile and tried to include the GTL.framework
mentioned in the link i shared above. So i don't have any pod right now. But yes i also had tried including use_frameworks!
before, which didn't worked neither.
And when you switched to the Xcode project reference, you are depending on the iOS framework, not the OS X one?
If you go look at the built GTL.framework, what headers are there?
The headers are like this
I could't understand your first question, the project i want to use the library with is a iOS project if you meant that.
Can this be related to some configuration flags?
Re first question: The GTLCore project has a framework for OS X and a framework for iOS. I just was confirming you were depending on the iOS one. If you had accidentally depended on the OS X one, then I wouldn't expect the framework to include the GTMOAuth2ViewControllerTouch header.
It is some configuration in your project, I'm just not sure what. We haven't had any other reports like this and there are other folks with things working.
The problem was the flags belong to old library (https://github.com/google/gdata-objectivec-client) which i removed from project before.
After removing the;
"-DGDATA_REQUIRE_SERVICE_INCLUDES=1", "-DGDATA_INCLUDE_CALENDAR_SERVICE=1",
build suceeded.
Glad you got it sorted out!
Hi,
I included the library using
pod 'GTMOAuth2'
but unable to use it because XCode does not recognize the classes in it. I also tried to include the library manually, and i got the same result, got not found error when i tried to use one of classes of the library.I have
XCode7.3
, andcocoapods 1.0.0.beta.4
.Pods
Import
When i want to use library