I am trying to implement ios phonegap In app purchasement plugin.
I need to add storekit.Framework to xcode project but cant find one.
I googled storekit.Framework but all information I found was how to use it and what storekit about
but not where is it. can anyone tell me where should I visit to download storekitFramework?
It is a standard framework available in iOS. To use it, simply
Select your project
Select your target
Select Build Phases
In Link Binaries with Libraries, click +
Search for StoreKit and Add
Import the framework in your class.
StoreKit.Framework is already included in all iOS SDK's above 3.0, so there's no need to download it.
To add it to your project, just click your Project's Name on the left-hand panel of Xcode (near the top), and then your project's name again, under the "Targets" section of the now second-to-left hand panel. Now click "Build Phases" near the top of the window, and then expand "Link Binary With Libraries".
Now just hit the "+" at the bottom-left corner, find StoreKit.Framework, and click add. That should do it!
Related
I want to use a graph in my iPhone app. I have downloaded the source code Core- Plot for it, but now when I am trying to run it I am getting an error.
clang: error: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is present
Can anyone suggest me what this error mean or how to resolve it.
`iPhone, iPod Touch, and/or iPad Application
Dependent Project Install
Because frameworks cannot be used in Cocoa Touch applications in the same way as on the Mac, the means of including Core Plot within an iPhone application are slightly different.
First, drag the CorePlot-CocoaTouch.xcodeproj file into your iPhone application's Xcode project. Show the project navigator in the left-hand list and click on your project.
Select your application target from under the "Targets" source list that appears. Click on the "Build Phases" tab and expand the "Target Dependencies" group. Click on the plus button, select the CorePlot-CocoaTouch library, and click Add. This should ensure that the Core Plot library will be built with your application.
Core Plot is built as a static library for iPhone, so you'll need to drag the libCorePlot-CocoaTouch.a static library from under the CorePlot-CocoaTouch.xcodeproj group to the "Link Binaries With Libraries" group within the application target's "Build Phases" group you were just in.
You'll also need to point to the right header location. Under your Build settings, set the Header Search Paths to the relative path from your application to the framework/ subdirectory within the Core Plot source tree. Make sure to make this header search path recursive. You need to add -ObjC to Other Linker Flags as well (as of Xcode 4.2, -all_load does not seem to be needed, but it may be required for older Xcode versions).
Core Plot is based on Core Animation, so if you haven't already, add the QuartzCore framework to your application project.
Finally, you should be able to import all of the Core Plot classes and data types by inserting the following line in the appropriate source files within your project:
import "CorePlot-CocoaTouch.h"`
Source: core plot wiki on google
I got a solution for it here is the link.
CorePlot failed to build in XCode 4.4
Basically the issue was related to Xcode.
I'm looking to implement Flickr in my iPhone app with ObjectiveFlickr. I'm using Xcode 4 and am trying to follow this part of the instructions:
"On your app target, open the info window (using Get Info on the target), then in the General tab, add ObjectiveFlickr (library) to Direct Dependencies."
https://github.com/lukhnos/objectiveflickr
How do I "Get Info" on my target in Xcode 4?
I'm not sure those instructions are quite accurate, but if you want to add a dependency, here's how:
Tap the project in the project navigator, tap your target, then open the Build Phases tab.
You will be able to access the dependency in the top section by tapping the "+"
I can't find the good old "Add existing frameworks" option. How do I do this?
We're talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).
As per Apple's documentation:
In the project navigator, select
your project.
Select your target.
Select the "Build Phases" tab.
Open "Link Binaries With Libraries"
expander.
Click the + button.
Select your framework.
(optional) Drag and drop the added
framework to the "Frameworks" group.
I just added the existing framework folder manually into the project navigator. It worked for me.
Follow the below five steps to add a framework in your project.
Click on Project Navigator.
Select Targets (Black arrow in the below image).
Select Build phases ( Blue arrow in the below image).
Click on the + button (Green arrow in below image).
Select your framework from the list.
Here is the official Apple page.
Another easy way to do it so that it is referenced in the project folder you want, like "Frameworks", is to:
Select "Show the Project navigator"
Right-click on the project folder you wish to add the framework to.
Select 'Add Files to "YourProjectName"'
Browse to the framework - generally under /Developer/SDKs/MacOSXversion.sdk/System/Library/Frameworks
Select the one you want.
Select "Add"
It will appear in both the project navigator where you want it, as well as in the "Link Binary With Libraries" area of the "Build Phases" pane of your target.
The frameworks directory is as follows in my computer:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks
Not the directory
/Developer/SDKs/MacOSXversion.sdk/System/Library/Frameworks
In Project:
Select the project navigator
Click on Build Phases
Click on link binary with libraries
Click on the + button and add your Frameworks
Follow the screenshots:
You are ready to go!
In the project navigator, select your project.
Select your target.
Select the "Build Phases" tab.
expander. Click the + button.
Select your framework.
(optional) Drag and drop the added
framework to the "Frameworks" group.
Xcode 12
Just drag it into the Frameworks, Libraries, and Embedded Content of the General section of the Target:
Done!
Note that Xcode 11 and 10 have a very similar flow too.
Xcode add a framework
Starting Xcode v11 you should use
<Project settings> -> <App Target> -> Frameworks, Libraries, and Embedded Content
//or
<Project settings> -> <Framework Target> -> Frameworks and Libraries
[Xcode pre-v11. Embedded Binaries vs Linked Frameworks and Libraries]
[Xcode v11. Frameworks, Libraries, and Embedded Content plus Frameworks and Libraries with Embed vs Do Not Embed]
Also do not forget to check Library Search Paths or Framework Search Paths. I would recommend you to use drag-and-drop[About]
[Step-by-step examples here]
i'm trying to read exif data for my app. i found this library, http://code.google.com/p/iphone-exif/ but can't seem to add it to my project as a framework, it adds it as a text file. does anyone know how to add it?
In Xcode 4, go to the Build Phases tab of your Target settinsg, expand the "Link Binary With Libraries" list, and drag your library there.
I just downloaded XCode 3.2.5 with 4.2 ... I'm trying to play an mp3 file, but apparently the UI changed because I wasn't able to follow any of the tutorial instructions on how to add a framework. Finally I clicked on a little gear button then went to Add -> Existing Frameworks... However AVFoundation is not listed so I'm unable to use the following code:
#import <AVFoundation/AVFoundation.h>
AVAudioPlayer *player;
The post is asking for the "missing" AVFoundation framework. It is true that you cannot easily find it though "Add an existing framework" in some SDK versions, e.g. Xcode 3.2.
Here is the easy way to solve it, thanks to some other people who pointed it out in another forum.
Click on "Target"
Click on your app
Get Info
In the bottom, click on "+"
Now you should be able to see it. I did this and solved the issue.
Right click the frameworks group right Add -> Existing frameworks, a list of frameworks will appear just select AVFoundation framework & click add
In the "project navigator", open the "frameworks" folder and select one the existing frameworks (e.g. UIKit.framework)
Right click and select "Show in Finder" from the menu
From the newly opened folder in the finder, drag the framework folder you are interested in (e.g. OpenGLES.framework) into the "frameworks" folder in XCode
Be sure not to "copy items into destination's group folder"
Choosing "Create groups for any added folders" seems to make it
(duplicate from previous question-- just dumped it into this question as well for any one still struggling with it)