Google Calendar API - No such module 'GoogleAPIClientForREST' - swift

I'm trying to integrate the Google Calendar API on iOS. I've followed the iOS Quickstart. I've managed to get the objective-c version to run but I need to get it to work in Swift. I'm getting an error loading the module 'GoogleAPIClientForREST'
I'm using cocoapods as shown in the example. All looks to be loaded fine on the pod side, as you can see in the screenshot.
Has someone succeeded to run the google example in swift ?
THANKS!

Linking the library with the binary resolved the module not found error.
I then ran into another error "Value of type 'GTLRCalendarService' has no member 'authorizer'" in the signin method (Two instances of the error). Found a solution to this error here
Solved this by creating a bridging header where I included these lines
#import <GTMSessionFetcher/GTMSessionFetcher.h>
#import <GTMSessionFetcher/GTMSessionFetcherService.h>
Here's my Xcode project incase it can help someone.
Thanks

Related

How to include Roku_Ads.brs library for the Roku Advertising Framework

I'm trying to make midroll ads work with DFP on Roku and I'm having some trouble.
I'm reading the docs on using the Roku Advertising Framework (RAF) and it says to put Library "Roku_Ads.brs" into the code where I want to use RAF. Since it uses the Library call, it leads me to assume that the library is included in Roku and doesn't have to be downloaded separately.
However, when I put Library "Roku_Ads.brs" at the top of my lib/ads.brs file, I always get the following error:
*** ERROR compiling /pkg:/source/lib/ads.brs:
Error loading file. (compile error &hb9) in pkg:/source/lib/ads.brs(1) 'Roku_Ads.brs'
What am I missing here? Is there some Roku_Ads.brs file that I need to download from somewhere first?
Thanks for the help!
Be sure to add the following line to your manifest:
bs_libs_required=roku_ads_lib

Cannot access "Parse.setApplicationId()"

I'm trying to make an app with swift/Obj-c (Bridging Header) with parse.com
So here's my question:
I saw on many sites that you can use Parse.setApplicationId("appid","clientid")
When I try this code it says Use of unresolved Identifier 'Parse'
I imported the framework and set the bridging header in the properties.
I also imported the frameworks which are required like it's written on parse.com
All other Classes/Objects from parse can be used by swift in the code.
This problem was because of a bug in xcode... (I think the compiler failed)
After I restarted Xcode the error was gone.

AdMob [GADObjectPrivate changeState:] error on iOS - NOT able to resolve through -ObjC

After reading many SO posts about the same error, I cant seem to resolve the problem with AdMob.
Im trying to implement it into my existing app and I copied the SDK and followed the tutorial.
All compiles fine but the app crashes with:
[GADObjectPrivate changeState:]: unrecognized selector sent to instance 0xa5cc610'
They say I need to add -ObjC or -all_load to Other Linker Flags.
When I do that, I get many, many duplicate symbol errors.
Since Im upgrading a project from a different developer, I dont know
the exact structure of the code.
Any other suggestions?
When you using the Abmob API, they add 2 API for you. 1 for Debug and 1 for real.
2 API have same functions and many things.
(Try to see what happen in your debug screen, they will give you the location of duplicated folder - It in Google Library 3.0/GoogleAnalysis/Library/lib - ...debug.lib)
The simple solution is remove the Debug API and you will be fine.
Addition: Adding ObjC is right for your program, it is other problem.

Adding static library to existing project in Xcode 4. Unable to import header

I'm trying integrate Kal into my existing app. I've followed this tutorial, and I'm still having issues. When I create a new view and import Kal.h, I get an error stating Kal.h is not found. I'm using Xcode 4.2. I've been searching everywhere, and I haven't found an adequate solution.
Thanks
You can try my blog post here.
At the same time you have to add the .a file (Static Library build) into this project.

issue in openfeint when i call setHighScore function

I am integrating openfient SDK in my app.
When I want to submit user's score and called a function as below it is giving error
'OFDelegate' was not declared in this scope
[OFHighScoreService setHighScore:scores forLeaderboard:#"112033" onSuccess:OFDelegate() onFailure:OFDelegate()];
Please help me to shortout this issue.
This problem may occur when upgrading from an old version of open feint or reading an old post about Open Feint, as this method is no
longer available, yet still compiles and runs.
The following lines will probably be enough to solve this problem:
[OFHighScoreService setHighScore:scores forLeaderboard:#"112033"
onSuccessInvocation:[OFInvocation invocationForTarget:nil selector:nil]
onFailureInvocation:[OFInvocation invocationForTarget:nil selector:nil]];
Just don't forget to import:
#import "OFHighScoreService.h"
Make sure you have integrated OpenFeint SDK with your app. You may find this video useful: http://vimeo.com/5633994