I'm currently trying to import the facebook-ios-sdk into one of my projects.
My approach is to import my project and the project of the facebook-ios-sdk into one workspace, but my project can't find the header files of the facebook sdk. I thought that the files in one workspace will be shared isn't it? How can I import the facebook-ios-sdk to my project without copying the files directly into my project?
thanks
I hope to understand what you want. I'm using facebook-ios-sdk, and I added all files in directoctory src (.m and .h) in my project with right click, "add files to…"
Try step 3 of this answer: “lexical or preprocessor issue file not found ” in Xcode 4
3 - Create a group call "Indexing headers" in your project and drag the
headers to this group, DO NOT add to
any targets when prompted.
Related
I am using Xcode 4.2.1.
I do have a static library libSignatureLibrary.a (which is 58k in memory)!
and I Created a new project SingleViewBased and open Link Binary With Libraries click '+' added libSignatureLibrary.a which is stored at desktop i added in the application.
I open Target Dependencies Click '+' i can't see the libSignatureLibrary.a library into my project!
I don't know where i did the mistake!
Can any one give me solution to fix this issue.
Its simple,just copy this libSignatureLibrary.a physically to your project folder and from there just add it your project.It will work.
I have an iphone project that is a "base" project. I want to copy this project, rename it and change a couple of files so as to create the final version of each application I want. How can I copy and rename a project in xcode 4.3+ without having any issues (like lost targets or so) ?
Click on your Project,
enter name of your project and prees enter,
it will ask,
Rename Project Content Items ?
say Rename then it will ask you for snapshot, click on Enable
and then press OK
Done !
You could also just create a new project and import only the header and code files you need.
Can anyone help?
I compiled the LibMMS project that comes with the WunderRadio application fine as part of my other project. It has the liblibmms.a file and I added it as a dependency to the main project.
The problem is that I cannot see any off the LibMMS headers so I cannot import mms.h or mmsx.h into any .m file.
Any ideas why?
in
xCode create a new group folder and name it 'external projects'.
Right click on this folder and choose 'Add files to [your app]'
Browse to Wunderradio App and choose folders MMS and FFMPEG
click 'Add'
You have now imported the projects into your xcode project. Additional to adding the libmms to the main project you should also add the libmms.a to your framework-group.
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
Currently I completed my project using with CorePlot. But I have
problem, when I copy my project to another folder, prepare to build
before distribution, I have one problem:
CorePlot-CocoaTouch.h: No such file or directory
I did my project import Core-Plot like the way with this link:
http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone...
I knew that my project just reference to Core-Plot library, so when I
copy my project to another folder. The reference is broken. Can anyone
tell me how can I import CorePlot with my project, so that I can copy
my project and run anywhere?
Any help will be appreciated.
Thank you.
Try to set the reference type (drop-down-list that appears when you try to link to the .h file - or any other file) to "Absolute path".
EDIT:
Notice that this way if you will copy the project to another computer then you will have problem again.
I have one "Projects" folder where all my projects are stored and all the external libraries that I might use in several projects are located in one "External Libraries" folder. This way I never have this problem...
I use "Default" reference type, which is relative and not absolute...