Try the following workarounds:
- Go into your build settings and define the Framework Search Paths to a folder which contains the frameworks in question. If the frameworks are placed in your project directory, simply set the framework search path to $(SRCROOT) and set it to recursive.
FRAMEWORK_SEARCH_PATHS
build setting needs to point to the location of the framework.
Check these related threads:
Close the Xcode.
Go into user(you)/Library/Developer/Xcode/DerivedData and delete the
folder contents.
If you have a build of you app in a running simulator you'll need to
also delete the build folders.
Reopen the Xcode. Clean & Build.
You need 3 things:
(1) Well formed Podfile
platform :ios, '8.0'
target 'GoogleDrive' do
pod 'Google-API-Client/Drive', '~> 1.0'
end
(2) Expose Google API through the bridging headers
#import "GTMOAuth2ViewControllerTouch.h"
#import "GTLDrive.h"
(3) No reference GTLDrive required in the Swift client class
override func viewDidLoad() {
super.viewDidLoad()
// ...
let service:GTLServiceDrive = GTLServiceDrive()
service.authorizer = GTMOAuth2ViewControllerTouch.authForGoogleFromKeychainForName("Drive
API",
clientID: "YOUR_CLIENT_ID_HERE",
clientSecret: "YOUR_CLIENT_SECRET_HERE")
// ...
}
Hope this helps!