Google API for Objective-C: no such file or directory - libGTLTouchStaticLib.a

I tried to include Google-Api in my iOS app. You need to enable Google Drive.

So, I followed everything at https://developers.google.com/drive/ios/quickstart .

After many hours of trying and error, it doesn't work at all.

It starts with the fact that all this does not look like 64-bit compatibility, and Xcode will complain ... it does not contain all the necessary architectures ... ". After I messed around with different build settings, I got it from my path.

Than advises only to copy two files ( GTLDrive.hand GTLDrive_Sources.m) in your project. This will result in no complaint GTLDriveConstants.h. In the end, you need to copy the entire folder Drive/Generatedto your project. After that, he still complained that he GTLQuery.hwould be absent, so I imported all the header files (yes, I installed "User Header Search Paths" in the Google-API source folder, it does not help).

The next build will create a lot of "duplicate characters." After much searching and clarification, I had to clear the “Compile Sources” in the “Build Phases” section. Now this problem has been resolved, but now I'm stuck.

Now he complains:

clang: error: : '/Users/#myself#/Library/Developer/Xcode/DerivedData/#my-project#-finogpkkwtusudgbuiiodrxfuxwm/Build/Products/Debug-iphonesimulator/libGTLTouchStaticLib.a'

libGTLTouchStaticLib.a, Build Phases "Link Binary with Libraries", howto.

. -?

: ! Dropbox- ; - ! Dropbox 1, Google -1.000.000

+4
2

, : D. GD - . , .

, GTL.xcodeproject, xcode.

Xcode > "" > " "

Derived Data​​p >

GTL

"Build- > Products- > Debug-iphonesimulator -iphoneos

libGTLTouchStaticLib.a

!

! , .

+5

, . .

GTL.xcodeproject . , "" " (armv7, armv7S, arm64)".

, .

+3

Source: https://habr.com/ru/post/1529660/


All Articles