Where do we see "Targets" in Xcode 4.2.
I want to see the headers, compiled files & libraries that are part of my project. I can see that in Xcode 3.2.6.
Any idea?
Click on the project file in the Project Navigator. You should see your Project and Targets list on the left pane. Click on the Build Phases tabs. Here, you can see your libraries (under "Link Binary with Libraries") and source files (under "Compile Sources").
Related
Screenshot of my iPhone app where I get this error when I am trying to create an archive file, can anyone help me to solve this issue. My Xcode version is 4.6.2
You may need to add Security.Framework in the "Link Binary With Libraries" section in "Project Build Phases"
I am getting error Linker Error – class.o for architecture i386 on xcode project while i try to build the project. on my project i have used some third party framworks as well. any solution for this ??
To break down this issue here are some tips.
1>Make sure to included the QuartzCore framework or other required frameworks in your project. It should be in the Build Phases->Link Binary With Libraries.
3>Check while switching to the new version, you put the new library in a folder next to the old one, in case you had to switch back at some point. Normally when you removed the old version, it did not remove the path to the old version of the .a file from Library Search Paths in the build settings in "Project Name -> Under Targets" and delete the old path and add new one if required.
2>To add new class please select Project Name -> Under Targets select your target project name -> Build Phases -> Expand Compile Sources -> Click + at bottom of Compile sources and add the correct source file.
4>If the above tips are not working for you then be careful while adding files , don’t copy files directly, just create class by clicking on "new files" in Xcode and copy code one by one and add required frameworks. it won't show linker error .
I believe the class is not in your compile sources list.
Select your project on the navigation sidebar -> goto "build phases" -> expand "compile sources" -> add the corrensponding .m file for your class
Please check the class for which you are getting error message is linked to the target you are building.
Also make sure the third party library you are linking into project is properly linked and also linked at runtime of the project.
That is sure that application is able to find the class which you have mentioned at runtime.
I am trying to add/install RestKit.FramWork on ios application based on the documentaion
After Target Dependency has been configured I am trying to add Link Binary With Libraries.
if i am adding libRestKit.a this file was missing. its shows as red color.
When adding libraries in the new Xcode, you sometimes have to drag/drop the files into your project's directory in finder and restart Xcode. After you've restarted Xcode, drag/drop the files from the finder window (your project's directory) into your Xcode project explorer and check the little "add files" box. That's all I got.
A quick question,
Up to date, all of my Xcode 4.2 projects automatically compiled everything that I dragged into the list of sources on the left. But recently this stopped happening. The files that I drag into the project just sit there, and I have to manually add them to the project>build phases > compile sources.
How can I restore the Xcode's ability to automatically compile everything that I drag and copy into the project?
Thank you!
Whe you drag files into the Project Navigator, you get a confirmation window where you can select the targets to which to add the files. Make sure the check box is checked.
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