#import "PhoneGapDelegate.h" error message in phonegap? - iphone

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>

Related

iOS Custom Framework Development?

I am trying to create a framework since I am developing a library.
I have Googled a lot, but didnt find any proper tutorial to create. Please give me some suggestions and steps to be followed to create a iOS framework.
I am Using iOS 6 and XCode 4.5.
I followed this framework tutorial with a lot of success. My callout from the tutorial is that it doesn't specifically mention (from what I recall) building the target, then the bundle before archiving the bundle. I also found it easier to directly copy the archived bundle from its source directory instead of relying on the script.

Library not found for -lOAuthConsumer_iPhone

I have an iphone app to upload to the AppStore and I am stuck with Xcode.
It keeps telling me when I want to create a build:
Library not found for -lOAuthConsumer_iPhone
I have checked everywhere on the web and haven't really found what the problem is.
Please bear in mind that I am not an iphone developer. I just know how to submit the apps but this bug here is really annoying as I can't find what it is.
Where can I find that library and how can I install it?
And where to install it??
It seems like the project is asking for the OAuthConsumer Library which can be found at: https://github.com/jdg/oauthconsumer.
You first need to check if your Project actually needs the library and ensure that the Security.framework is included as described in the OAuthConsumer readme

Trouble integrating Facebook into iPhone app

I've been following this guide on integrating Facebook into my app. Everything is going well except for when I add in the Facebook SDK to my project.
I have added in all the code to enable SSO, however when I build and run my project I get loads of errors caused by the Facebook SDK:
I think it may be due to the sdk being out of date but I got it from the git page so I would have thought it should be compatible with iOS 5.
Maybe I need to carry out some extra steps when adding it into my project? All I did was literally drag and drop the src folder in (not the .pch and .xcodeproj files).
Please can someone help me out - I've tried searching for help online but couldn't find anything of use.
The SDK is outdated for the ARC yes. You have to turn off ARC for the SDK, check this answer out: How can I disable ARC for a single file in a project?
go to project navigator->Build Settings
set Objective-C Automatic Reference Counting to NO.

How do I properly implement Urban Airship in Xcode 4.2 for iOS 5?

I am new to iOS Development and am now venturing into adding different features into my Apps and now would like to be able to implement Push Notifications into iOS5 apps with Xcode 4.2.
I have tried my hardest to understand the iPhone Developer instructions regarding Push Notifications, but found that the easiest method (according to many sources around the internet) would be to use Urban Airship!
I have gone over this for quite a number of days now and tried and tried my hardest to be able to complete the steps required in the Set Up A New Application part of the document.
It states:
The core library requires your application to link against the following Frameworks (sample UIs have additional linking requirements):
libUAirship-.a
CFNetwork.framework
CoreGraphics.framework
etc, etc, etc
http://www.youtube.com/watch?v=EwqM4wfaYNU
The link just above is a YouTube video of what steps I took to follow these instructions and it's really starting to get to me. I would like someone to be able to provide me with some assistance and explain what I am doing wrong, and how to better understand the way you link against the following Frameworks because I have tried my hardest, and never managed to understand it.
Any help would be GREATLY appreciated from anyone.
You are trying to #import a static library in your code. The .a file is a library, not an include file. You just need to add them to your project and then include the .h file in your project.
Search Google for adding static library to xcode, or similar. For example, A quick Google search found this

Stomp.framework iPhone linking. Anyone have experience?

Having trouble linking the Stomp.framework into an iPhone SDK application.
http://code.google.com/p/stompframework/
I follow the instructions, adding it to the project, adding a Build Phase for Copying the Files, and including it via #import .
I keep getting "image not found".
Anyone try this and/or have a clear idea why?
This may be better:
http://github.com/juretta/objc-stomp
I found it fairly easy to get going.
The iPhone SDK doesn't support embedding frameworks in applications. I believe it supports dylibs, though I'm not certain of that fact. However, the safest thing to do would be to take the source of that framework and compile it directly into your application.
Make sure that whatever folder contains the .framework bundle is listed in the Framework Search Paths setting of your target or project.
There's more you'd need to do if you want to embed the framework in your application but that's another question.
edit: Totally ignored the iPhone requirement there, you'll have to compile the framework as a static library and link against that.