something strange going on, I want to interact with the Facebook and Parse SDK in Swift, so I installed both trough cocoapods pre. I created one Bridge-Header.h file, with these contenst:
#ifndef Pawky_Bridge_Header_h
#define Pawky_Bridge_Header_h
#import <FacebookSDK/FacebookSDK.h>
#import <Parse/Parse.h>
#endif
After that I went to my build settings and pointed my Objective-C bridging header under code generation to this file. It finds them both because if I would append any character to FacebookSDK it won't build (FacebookSDK/FacebookSDKs.h for instance throws an error). And I get parse code hinting in my code, I can work with the SDK but I don't get anything for Facebook.. So Parse is working but I can't get Facebook to work. I already tried downloading the SDK manually and importing it but the same problem...
Someone a clue?
Thanks
Related
I'm using the Parse framework in my project,
It works fine with no errors in my main app Bridging-Header above,
but when I try to use it in my WatchKit Extension Bridging-Header I get all kinds of errors.
Any ideas why this would be happening? I'd like to use Parse framework in my Watch App.
This is a Swift project, and I created the Bridging Headers by just adding a dummy Objective-C file named Misc.
watchOS does not have the same frameworks as iOS. You will not be able to use the Parse SDK in WatchKit.
I'm trying to use Google Maps SDK for iOS in Swift. I have been following these steps from google developers website. The problem is when I tried to import GoogleMaps in AppDelegate.swift, it's showing an error like..No such module 'GoogleMaps'.
I have added all the frameworks and made necessary changes to Linking and Build settings. Is there anything I'm missing out?
The steps on that website are still for Objective-C apps. To write an app in Swift with the Google Maps API, you need to add a bridging header, and then you can import the module in that header using #import <GoogleMaps/GoogleMaps.h>.
In application:didFinishLaunchingWithOptions: instead of using [GMSServices provideAPIKey:#"API_KEY"]; then you use GMSServices.provideAPIKey("API_KEY").
Delete your all of your pod files including workspace except podinstall and lock and install pod again
Am very new to iPhone development and also am looking to work with PhoneGap Framework to create iPhone apps. I have created HTML, JavaScript in my PhoneGap project. I have imported those files in my project. When i compile my project the XCode shows the below error,
'PhoneGapDelegate.h' file not found
I have searched google to solve this error, but i can't find any single ideas from there. And also am very fresher in development. I have found this below link from google search i don't know how to use this in my project,
http://ldt.stanford.edu/~educ39109/yaac/lab3/iphone/Classes/PhoneGapDelegate.h
In project i don't have any PhoneGap Framework. And I have downloaded the sample app from PhonGap site.
Could you please help me to solve this issue and run the project?
Did you say it was inside a framework? You may need to do something on the lines of
#import <PhoneGap/PhoneGapDelegate.h>
I recently switch to developer version 4.5 and found CPTAnnotation.h not found issue ,which was not there befor.
Any idea what i am missing.
This is related to coreplot.
Thanks
CPTAnnotation is not part of the iOS SDK but the CorePlot library. Make sure you have added the library to your project (here's how) and imported the header file: #import "CorePlot-CocoaTouch.h"
Im very new to iPhone programming, and am facing this really weird issue with importing the Twitter+OAuth libraries for implementing some basic twitter integration into my program.
My SDK is iPhone 3.1.3. After i drag-drop the twitter+oauth library, i add the header path and the library search path
[$(SDKROOT)\usr...whatever as i found in this tutorial ]
I then added the libxml2.dylib framework to the project. When i compile the project, i get six errors, all the same from different .h files that say
"NSXMLParserDelegate protocol not found".
Please help! :(
From the documentation of NSXMLParserDelegate
Available in iOS 4.0 and later.
It simply wont work if you are using SDK 3.1.3
See this question for further info