I have installed phoneGap lib but am unable to run the app - iphone

I have installed phonegaplib for ios, I created one test project using phoneGap based on application template, but in that, phoneGap.framework is in the red color. I think it is missing. So where can I get this frame work, can any one help me?

Are you sure you're following the official guide?
Create a PhoneGap project (Xcode 4)
Launch Xcode, then under the File
menu, select "New Project...".
Navigate to the "iOS" section, under
"Applications" - then in the right
pane, select "PhoneGap-based
Application"
Select the "Next" button, name your
project and company idenfifier, then
select the "Next" button again.
Choose the location where you want
the new project to be.
Run the project at least once to
create the "www" folder in your
project folder.
Drag and drop this "www" folder into
your project in Xcode, and add it as
a folder reference.
Modify the contents of the "www"
directory to add your HTML, CSS and
Javascript.
Reference 1: PhoneGap iPhone - Build and install the Installer Package
Reference 2: Video: PhoneGap Installer - Xcode 4 Template [HD]

Sounds like you are using XCode 4, which is not fully compatible with PhoneGap's default settings. Use this link to have PhoneGap generate a compatible project for you:
https://build.phonegap.com/generate

Related

Build Action is not support in this configuration in Netbeans 7.4

I am using netbeans 7.4 , I created a HTML5 project , when i click the build tool , it will prompt a message "Action is not support in this configuration" , may I know what is the problem ?
There is no Build action for HTML5 project unless it is Cordova project, otherwise there is nothing to build. To make "plain" HTML 5 project "Cordova" project, you can set its target browser to some Cordova target (android device, iOS device etc) using for instance the browser picker in main menu or (I think) you can open project properties, select Cordova category and click on the button to create Cordova resources. Then build action will be available and will create apk/app file.
Edit for NetBeans 8.0.1: If you have Gruntfile.js in project root folder, you can go to project properties in NetBeans, select Grunt category and map Grunt tasks to build/clean

How can I make my xcode project automatically select the correct Xcode version when I double click on it?

I have multiple versions of XCode installed on my MAC. When I install a new version of the SDK, I noticed that I can't no longer double-click on the project file for the newer version of XCode to launch the project. I have to constantly do a right-click and then select the newer Xcode version. (multiple versions now show up when I do a right click). I thought maybe once I right-click selected the newer Xcode app once, it would remember, but it does not. Is there a way to make it so that my project will ALWAYS launch with the newest XCode when I double-click..or must I constantly do a right-click and select the right Xcode version?
Right-click on your project and choose Get Info, then where it says Open With, choose the correct version of Xcode you want to open it. This may not be the official way, but it will work as expected. Also, doing it this way, and clicking on the Change All... button will change all of your Xcode projects to open with the one you selected.
Do a right click on your .xcodeproj file. Then select the "Open With" option.
Then select "Other" and navigate to the path the the specific version of Xcode you want to be selected automatically for this project. You will need to navigate to the correct xcode.app file. To help you find the right file, note that when you do a default install of Xcode, it gets put into the Macintosh HD->Developer->Applications folder. However, if you have installed multiple versions of Xcode, navigate to the specific version you have installed and then select the appropriate Xcode.app file. Make sure you select "Always Open With" in the window you are using to select the app.
Once you do this, you can finally double click on the project and the correct Xcode version will now launch.
Is there any reason to have to old version on your MAC still?

How to integrate RestKit Framework (restkit.org) with xCode 4?

I followed the instructions on the github page but something is wrong (most certainly is me: P) but, Do you know about any good tutorial for integrate / use in Xcode4 RestKit?
Thanks!
Download the latest version from this Link http://restkit.org/
and extract the zip folder and you will find a ReadMe.md file which explains you steps to install for Xcode 4.x as shown below
Xcode 4.x (Git Submodule)
Add the submodule: git submodule add git://github.com/RestKit/RestKit.git RestKit
Open the project you wish to add RestKit to in Xcode.
Focus your project and select the "View" menu > "Navigators" > "Project" to bring the project file list into view.
Drag the RestKit.xcodeproj file from the Finder and drop it on your "".xcodeproj.
Click on your project's name in the sidebar on the left to open the project settings view in the right pane of the window.
In the middle pane you will see PROJECT and TARGETS headers for your project. Click on your project name, then select Build Settings along the top to open the Build Settings editor for your entire project.
Find the Header Search Paths setting. Double click and add a new entry. Add a search path to the "$(SOURCE_ROOT)/RestKit/Build" directory you have added to your project. DO NOT check the Recursive checkbox.
Find the Library Search Paths setting. Double click and add a new entry. Add a search path to the "$(SOURCE_ROOT)/RestKit/Build/$(BUILD_STYLE)-$(PLATFORM_NAME)" directory you have added to your project.
NOTE: This is only necessary if you are NOT using DerivedData.
Find the Other Linker Flags entry and double click it. Use the + button to add a new entry and enter -ObjC -all_load. Dismiss the editor with the Done button.
Locate the target you wish to add RestKit to in the TARGETS list in the middle of the editor pane. Select it to open the target settings editor in the right pane of the window.
Click the Build Phases tab along the top of the window to open the Build Phases editor.
Click the disclosure triangles next to the Target Dependencies and Link Binary with Libraries items.
In the Target Dependencies section, click the + button to open the Target selection sheet. Click on the RestKit aggregate target (it will have the bulls-eye icon) and click the Add button to create a dependency.
In the Link Binary with Libraries section, click the + button to open the Library selection sheet. Here we need to instruct the target to link against all the required RestKit libraries and several system libraries. Select each of the following items (one at a time or while holding down the Command key to select all of them at once) and then click the Add button:
libRestKitCoreData.a - Optional. Only necessary if you are using Core Data.
libRestKitJSONParserJSONKit.a
libRestKitNetwork.a
libRestKitObjectMapping.a
libRestKitSupport.a
CFNetwork.framework
CoreData.framework - Optional. Only necessary if you are using Core Data
MobileCoreServices.framework
SystemConfiguration.framework
libxml2.dylib - Optional. Only necessary if you are mapping from XML payloads and link libRestKitXMLParserLibxml.a into your app.
Verify that all of the libraries are showing up in the Link Binary with Libraries section before continuing.
Congratulations, you are now done adding RestKit into your Xcode 4 based project!
You now only need to add includes for the RestKit libraries at the appropriate places in your application. The relevant includes are:
#import <RestKit/RestKit.h>
// And if you are using Core Data...
#import <RestKit/CoreData/CoreData.h>
I found this tutorial very useful to make it work on xCode 4.0.
http://liebke.github.com/restkit-github-client-example/
I did my build following this steeps https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x and guoleii is right. But I needed to change the owner directory.
Have you seen this threads from RestKit's Google Group?
link 1
link 2
Try searching there. But for now, there seems to be A LOT of issues with RestKit and Xcode 4, there's even a YouTube video showing the problems (none showing a how-to).
did you build RestKit according to the wiki page "Installing RestKit in Xcode 4.x" on github.com/RestKit? i think there is a little mistake. here is my solution: 1. in "Build Phases" -> "Link Binary With Libraries", delete the RestKit.framework and add Security.frameWork 2. build again
then it works.
I just tried to install RestKit on a newly created Xcode 5 iOS 7.0 project. I tried downloading the project and following the steps above, but i was missing most of the content with in the RestKit/Vendor folder. After doing a bit of research i did the submodule tactic and that got me all of the information from those folders.
From the command prompt change directory into your project folder, for me it was
$ cd Documents/Projects/NewlyCreatedApp
From there you should run this command if you have no git repository
Note: you must download git to install this, if you have not already
$ git init
after that you must run these commands to download restkit into your project folder
$ git submodule add git://github.com/RestKit/RestKit.git
$ git submodule update --init --recursive
After that, you should go up to Nakkeeran's answer above and start from step 2, to set up the process. In step 7 you will be asked to add "$(SOURCE_ROOT)/RestKit/Build" to your header search paths, but upon closer inspection the RestKit framework no longer has the build folder so you should change that to "$(SOURCE_ROOT)/RestKit/Code" to fit the current version of Rest Kit
I hope this helps, and here is a link to the submodule information i posted.
RestKit Installation Submodule Method

Error in Build - Missing SDK

I downloaded some Application samples from a website.
It used to work but when I went back to Xcode (After a couple of months) I tried them and it gives me this error.
error: There is no SDK with the name
or path 'iphoneos2.0'
I tried looking for a file called "iphoneos2.0"
and tried looking for a highlighted code but nothing.
Could anyone help me please?
The Base SDK of your downloaded app's Target has set to iphoneos2.0. Change the Base SDK of the Target from iphoneos2.0 to a iOS version which is available.
To change the Build Settings in (Xcode 3.2) - Goto Project -> Edit Project Settings menu. Or, Double-click the project name in the project tree in Xcode.
To change the Build Settings in (Xcode 4) - Select the project name in the project tree. It will open the Project Settings in the document area of Xcode.
In the project settings, search for Base SDK.

linking gdata to an xcode 4 project

I'm having major issues linking gdata to a project after upgrading from xcode 3.2.5 to xcode 4. I would like to know if anyone is having similar issues, and what did they do to resolve them. i am using gdata version 1.11 which is the latest on their site. The project works flawlessly on 3.2.5, thanks.
I have created a workspace for my project, and then added the gdata.proj to it. So I do have all the files linked by reference. But project files which include #import "GDataYouTube.h" do not see the file. I get "No Such File or Directory"
Good News... resolved and tested, all working follow these steps...
Open your project in xcode 4 from 3.2
click File -> Save As Workspace
in project navigator on the left, collapse your Project if you see all the files
below your collapsed project, in the empty space right click or control click -> Add Files to...
select the project file you wish to link to, leave Copy items unchecked, click Add
Now you will see 2 collapsed projects in your Project navigator, expand both
Now what I didn't know I had to still do
Drag the files or folders you want from the second project to your main, make sure your Main project target is selected in the options, and I also have group selected then click Finish
You are good to go, you might have some warnings about your second project and its targeted SDK. Fix those by clicking the project name in the Project Navigator -> Build Settings -> Base SDK to 10.6, Deployment Target to 10.5