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.
Related
I download Core ML model files from Apple's web page but my mac and XCode don't recognise them. Here is what I see when I add them to my project navigator:
What am I doing wrong?
I had this problem and noticed that XCode 9 Beta 4 has a bug in which every time you drag a mlmodel to your project it does not get added to the target even though you selected your target to add.
The solution is to click the file and tick the "Add to target" box located in the utilities tab. (XCode's right panel)
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!
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 created a project without ARC. I want to use a third party SDK in my project. That SDK comes with ARC Support. So I want to add ARC for that third party files. I can disable ARC for all "MYProject" files by adding this flag into build phases like -fno-objc-arc.
But I may use large number of files. So it's better to add ARC for specific SDK only. So how to add ARC support for single or specific SDK files in XCode Project?
For Instance: I want to use Grid View. I'm adding GMGridView in my project and it comes with ARC support.
Add the flag -fobjc-arc to the files that you'd like to use ARC. It's just the opposite of the other.
You add compiler flags in Targets -> Build Phases -> Compile Sources
Compile source show all file that project contain.so please add -fobjc-arc to compiler flag by double clicking on it as show in below image.
I understand many different sized icons for my app are required for App Store Submission according to Apple's Documentation. However, I am unsure on how to include them? Do I just add them as Icon.png to the Binary?
This is much easier to handle in xcode4 if you have it, just click on your project (should be at the top of the project navigator window) then go to the summary tab, and you can select the icons from there. Then when you build your app, they will be included in the binary
You include them in your project and reference them from your info.plist file under the icon files section.
Here is an updated list of the filenames and sizes you can add: http://www.weston-fl.com/blog/?p=840/