Adding Frameworks to Xcode 4.5

I'm trying to add the OpenGL.framework and GLUT.framework to my project. Every tutorial I find says to click on my project and go to "Build Phases". But there is no build phases, just build settings and info. Dragging and dropping from Finder doesn't work, as the compiler still spits out the "Cannot find glut.h" error.
How does this work?

There are two ways to add a framework in Xcode 4.5. In both ways you start by clicking the project file from the project navigator on the left side of the project window. Clicking the project file opens the project editor. Select your target from the left side of the project editor. Make sure you select a target, not the project. If you select the project, the project editor has Info and Build Settings buttons, as you described in your question.
First Way: click the Summary button at the top of the project editor. If you have a Mac or iOS application target, you should see a Linked Frameworks and Libraries section with a table of linked frameworks. Click the + button below the table to add frameworks.
Second Way: click the Build Phases button at the top of the project editor. Click the disclosure triangle next to the Link Binary with Libraries build phase. Clicking the disclosure triangle shows a table of linked frameworks and libraries. Click the + button below the table to add frameworks.

Similar Messages

  • Using cisco-vpnclient framework in Xcode

    Hello
    I've tried to build Shimo http://projects.nexumoja.org/Shimo/. Shimo uses the framework cisco-vpnclient.framework included in the installer of Cisco. My problem is that Xcode gives an error on build : cisco-vpnclient/vpnapi.h: No such file or directory (#import "cisco-vpnclient/vpnapi.h").
    Although I'm very sure it's there, because when clicking the framework in Xcode it even opens that directory. What's wrong? Can anyone help me or try it out.
    Regards
    Karel

    Hello
    I've tried to build Shimo http://projects.nexumoja.org/Shimo/. Shimo uses the framework cisco-vpnclient.framework included in the installer of Cisco. My problem is that Xcode gives an error on build : cisco-vpnclient/vpnapi.h: No such file or directory (#import "cisco-vpnclient/vpnapi.h").
    Although I'm very sure it's there, because when clicking the framework in Xcode it even opens that directory. What's wrong? Can anyone help me or try it out.
    Regards
    Karel

  • "Linked Frameworks" vs. "Other Frameworks" in Xcode 3.0

    Don't know if the version matters, but in XCode v3.0…
    Does anybody know what the difference between "Linked" and "Other" Frameworks are in XCode's grouping pane?

    Closing this question. It's been open forever.
    I haven't had as much time to learn XCode as I'd like, either. When that happens, hopefully I'll be able to find an answer.
    Happy coding!

  • Need help adding schedule to xcode 4

    I need help adding a tour schedule for an iphone app building an app for 13 djs and they want thier tour schedules added these need to be updated monthly is there a way to add this????

    I don't know if this is the easiest way but it works for me. I connect the DVD player to my camcorder (so it's the 3 plugs yellow/red/white on one end and a single jack into the camera). Then I connect my camcorder to the computer (I think it's through a firewire port). Then I just play the DVD and the footage is digitized via the camcorder and I import it into iMovie 4 as it's playing. I believe the camcorder is just in VCR mode.
    I have also used this method to transfer VHS tapes onto DVDs via the camera by connecting the VCR to the camera.
    I haven't had much luck with movies over about 40 minutes on iMovie. But if it's home movies, there may be a logical break. Do maybe 20 minute segments (it's also really easy on iMovie to add a soundtrack if these are OLD films with no sound.
    As you can see, I'm low tech!
    Good luck!
    Powerbook G4   Mac OS X (10.3.9)  

  • AIR iOS Framework Linking issues

    Hi everyone.
    I have an issue with running my app on older version of iOS (specifically iOS 4.x). It runs perfectly fine on iOS 5.x but crashes instantly when it launches on iOS 4.x. I have narrowed it down to how the iOS frameworks are linked. Every site I looked at on this issue points towards how the Frameworks are linked and native extensions (which I am using).
    My app has a native extension that I built for a 3rd party library. This 3rd party library uses some features that are specific to the iOS 5 SDK. Right now its crashing with this error:
    Symbol not found: _OBJC_CLASS_$_NSFileVersion
    According to the iOS documentation, NSFileVersion was introduced for iOS 5 into the Foundations Framework.
    The 3rd party library has a list of Frameworks that it requires and specifies how they should be linked (either Required/strong or Optional/weak) in Xcode. The Foundations.framework is one of the frameworks the 3rd party library needs to be weak/optionally linked in Xcode. I also set the iOS Deplotment target to iOS 4.2 (for Game Center support). It builds fine and all that. In the -platformoptions XML file when I build the ANE file with adt, I specifiy the frameworks needed by the 3rd party library. I also specify the sdkVersion as 5.0, the -ios_version_min as 4.2 (again for Game Center support). Here is the options.xml file:
    <platform xmlns="http://ns.adobe.com/air/extension/3.1">
        <sdkVersion>5.0</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 4.2</option>
              <option>-framework Foundation</option>
              <option>-framework AddressBook</option>
              <option>-framework CoreLocation</option>
              <option>-framework SystemConfiguration</option>
              <option>-framework CoreGraphics</option>
              <option>-framework CFNetwork</option>
              <option>-framework MobileCoreServices</option>
              <option>-framework QuartzCore</option>
              <option>-framework StoreKit</option>
              <option>-framework Security</option>
              <option>-framework UIKit</option>
              <option>-framework GameKit</option>
              <option>-framework MessageUI</option>
              <!-- excluded the 3rd party library name -->
              <option>-L/path/to/third/party/library/</option>
              <option>-lthrid-party-library</option>
         </linkerOptions>
    </platform>
    It seems to me that the list of the frameworks listing in the -platformoptions XML file are being strong linked into the App when I make a build for iOS devices in Flash Builder. I tried it with another Framework that was introduced in iOS 5 SDK (the Twitter framework). I added the Framework to Xcode, set it to Optional/weak. Added the <option>-framework Twitter</option> to my platform options XML file and rebuilt evertyhign. it was crashing when launching on an iOS 4.x device with this error:
    Library not loaded: /System/Library/Frameworks/Twitter.framework/Twitter
    So it seems that these frameworks in the options XML file are being strongly linked when building for the device. I am using Flash Builder 4.6, AIR SDK v3.2, Xcode 4.3.2, iOS 5.1 SDK and on a Mac.
    Does anyone have any idea how to make certain Frameworks be weakly linked when building a native extension? I've been searching around online for a while and have not found any information about it, or other people experiencing the same problem.
    Any information on this issue would be really helpful.

    Hi Davek,
    In your platform options file, for the frameworks you need to link to weakly, you may try using -weak_framework linker option. eg.
    <option>-weak_framework Twitter</option>
    Using -framework will always link to the framework strongly, despite the setting used while compiling the native library in XCode.
    In general, in this file, you can use the linker options in the way they are provided to ld command.
    Hope this helps.

  • How to get LabVIEW to use library created in Xcode using a library node?

    I have written C++ code in the Xcode IDE on Mac OS X. This code controls a camera driver to tell it to take a picture and save it. I want to call this code in LabVIEW. I am trying to use a library node, but when I tell it the location of the Xcode project it doesn't recognize that anything is there. How can I get LabVIEW to recognize this? (Xcode used to be called Project Builder in earlier versions). In the documentation it says to link against libvlexports.a. I have included this file in my Xcode project, but does "link against" mean something more than that?

    To create a framework in XCode that you can reference in LabVIEW for Mac OS:
    Open XCode.
    Select File»New Project.
    Select Framework»Carbon Framework as the project type.
    Name the framework when prompted. Click Finish.
    The XCode browser will now appear. Click on main.c to open the file. This is where you will create your functions. For an example open the file main.c in the Call Library Function Node on Mac with XCode zip file.
    After adding your functions, compile the framework. The compiler settings should all be left at default.
    Access your functions via a Call Library Function Node in LabVIEW.
    To access the functions in a framework using the Call Library Function Node in LabVIEW:
    Place a Call Library Function Node on the block diagram by going to All Functions»Advanced»Call Library Function Node.
    Apple-Click on the Call Library Function Node and select "Configue..."
    Click on the Browse button and browse to your .framework file and click Select to select the framework.
    Type the name of the function you want to access in the Function Name field.
    NOTE: Unlike LabVIEW 7.x for Windows, once your framework is selected, the Function Name field DOES NOT autopopulate a list of functions in the framework.  You must type in the name of the function you want to access.
    Specify the return type of the function.
    Add the number of parameters in the function and specify their types.
    The function prototype will appear in the Function Prototype field according to how you have specified the function parameters.
    Click the OK button.
    Your Call Library Function Node will appear with the number of inputs you selected as well as the output. If LabVIEW cannot find the function you specified within the framework, it will show a broken Run arrow.
    The "Call Library Function Node on Mac with XCode.zip" file (attached) contains a simple framework created in XCode along with its source code in main.c.  main.c simply contains two functions both of which multiply two numbers. One function accepts integers and the other doubles. The zip file also contains a VI that references this framework using a Call Library Function Node.  This VI was created in LabVIEW 7.1 for Mac OS.
    Kind Regards,
    Message Edited by AESulzer on 07-08-2005 06:11 PM
    E. Sulzer
    Applications Engineer
    National Instruments
    Attachments:
    Call Library Function Node on Mac with XCode.zip ‏33 KB

  • The headers of the frameworks disappear when I update to OS Maverick.

    I have been working with some Bluetooth low energy applications so I am using IOBluetooth framework. Normally this framework is located in /System/Library/Frameworks and It has a folder call Headers with all the .h files.
    I need this folder because I am using this like a shared library in Labview and suddenly when I update my OS, that folder disappeared.
    I was looking for other options and I saw that I can found the hold framework inside XCODE app, but It does not work as the normal one.

    I get it now.
    There is a difference between frameworks in system locations and those in the SDK. The ones in system locations may not have any headers included. They are only there for the shared library portion. When you include the headers in Xcode, you are able to make a connection to the methods in the SDK version of the library. When the app is installed on a user's machine, all that is required is the dynamic library in the expected location.
    You compile and link against the headers in the frameworks for your targeted platform and OS version. You can target anything that is listed in Xcode. But at runtime, you can only run what is in /System.

  • How to install SFML on xcode?

    Hello people! I am just starting to learn programing. There are some problems with code blocks in mac, so i am still figuring out what are the same things between code blocks and xcode. Like command line tool in xcode is the same as console application in code blocks. What about SFML? Is there anything i can do with it? Also, I had tried to research "how to install SFML on xcode" but non of them work. I had search in here, but there is no finder such as local or lib in my mac; but there is frameworks. I don't really know what to do with it. If possible, I hope that you can show me step by step by images. Thank you, and hope you have a good day!

    I used to work with logic poet systemc package on snow leopard, with xcode 3.2.6. With the new versions of Mac OS X and XCode, logic poet package stopped working. It seems Apple changed a lot of things in XCode 4.x and the LP package didn't work anymore. 
    The solution I've found was to keep using XCode 3.2.6 with logic poet. I'm now running it on Maveriks, and it seems to work fine.
    Since it could not find XCode 3.2.6 to install in Maveriks, I've just copied the binaries I had in Snow Leopard.
    Having SystemC and Logic Poet installed, you just need to set up the library and include paths in the project properties:
    ALWAYS_SEARCH_USER_PATHS = YES
    FRAMEWORK_SEARCH_PATHS =
    HEADER_SEARCH_PATHS = /Library/SystemC/Current/include
    LIBRARY_SEARCH_PATHS = /Library/SystemC/Current
    REZ_SEARCH_PATHS =
    EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* (*) CVS .svn .git
    INCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES =
    USER_HEADER_SEARCH_PATHS =

  • Cant use xCode and Skype crashes

    Hello guys
    i have a strange problem...i think i installed something...
    since the 23rd march skype crashes after 2minutes when i open it and i cant install the "Mobile DEvice Framework" from xcode, when i click install and enter my password it shows "An error occured. See the install log for more details"
    here is the error-log for xcode:
    http://pastebin.com/XnsWfN77
    and here the crash log from skype:
    http://pastebin.com/KRgkGKzU
    pls help me i already reinstalled mac osx lion and instaklled the 10.7.3 combo update..but still not working
    thanks !

    i did that things before i reinstalled lion...
    ok another aspect: MacScan found a malware called DevilRobber (i already googled a little bit but i cant find a file from it to delete) i isolated the "trojan" and then mysteriously skype worked again but today i made a new scan with macscan and there was again the DevilRobber..and skype doesnt work...now i installed the F-Secure and waiting for scan results...i only could remember that i downloaded xcode from torrent because i wasnt able to download it from the macappstore..im sure from there i got this virus i think i have to open a new thread how to remove devilrobber

  • Compiling java in xcode

    I have just started programing in a java class at school and I was wondering if there is a way to compile and run a java file in xcode without having to go and use the terminal.
    If there is this would make my life a lot easier!
    Thanks in advance!

    What kind of project are you creating? If you create a Java Tool project and add files to the project from Xcode, it should just work. In the Xcode project window's detail view, you should see a column of checkboxes on the right side for each file. If the checkbox is selected, that file is part of the target. Make sure the checkbox is selected for all the Java files you added.
    Adding files to Xcode's ant projects is a pain with Xcode 2.4. I have detailed instructions at the following URL:
    http://www.meandmark.com/xcodetips.html
      Mac OS X (10.4)  

  • Linker error while packaging iOS app with my ANE

    While trying to write a iOS Native Extension for ZXingObjC (https://github.com/TheLevelUp/ZXingObjC), the following link error shows up when exporting in Flash Builder 4.x:
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "___divmodsi4", referenced from:
          +[ZXEncoder numDataBytesAndNumECBytesForBlockID:numDataBytes:numRSBlocks:blockID:numDataBytesInBlock: numECBytesInBlock:error:] in libcom.google.zxing.ZXingNativeExtension.a(ZXEncoder.o)
          +[ZXAztecEncoder encode:len:minECCPercent:] in libcom.google.zxing.ZXingNativeExtension.a(ZXAztecEncoder.o)
          +[ZXAztecEncoder generateCheckWords:totalSymbolBits:wordSize:] in libcom.google.zxing.ZXingNativeExtension.a(ZXAztecEncoder.o)
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    This happens in Flash Builder 4.6 or 4.7 using AIR SDK 3.7
    This isn't my first Native Extension for iOS. No amount of fiddling around with adding frameworks or libraries in Xcode to the static library works.
    Looking for guidance on what to try next to resolve this linker error...

    I am also receiving an error related to ___divmodsi4 (using different libraries which use that symbol) which appears to be a compiler level math function. It should be packaged automatically but apparently AIR isn't doing it.  No idea what additional library should be linked, attempts to link the 3rd party libraries (and/or packagedDepenency them) failed.
    Undefined symbols for architecture armv7:
      "___divmodsi4", referenced from: (methods in a third party library)
    My Platform.xml is as such:
    <platform xmlns="http://ns.adobe.com/air/extension/3.7">
        <sdkVersion>6.0</sdkVersion>
        <linkerOptions>
        <option>-ObjC</option>   
        <option>-weak_framework Accounts</option>
        <option>-framework AddressBook</option>
        <option>-framework AddressBookUI</option>
        <option>-weak_framework AdSupport</option>
        <option>-framework CoreAudio</option>
        <option>-framework CoreLocation</option>
        <option>-framework CoreMotion</option>
        <option>-framework CoreTelephony</option>
        <option>-framework EventKit</option>
        <option>-framework EventKitUI</option>
        <option>-framework iAd</option>
        <option>-framework MapKit</option>
        <option>-framework MediaPlayer</option>
        <option>-framework MessageUI</option>
        <option>-framework OpenAL</option>
        <option>-weak_framework PassKit</option>
        <option>-framework StoreKit</option>
        <option>-weak_framework Twitter</option>
        <option>-framework UIKit</option>
        <option>-lsqlite3</option>
        <option>-lxml2</option>
        <option>-lz</option>
        </linkerOptions>
    </platform>
    If the author or anyone manages a solution, please post it in this thread!

  • SUP ObjectiveC API for iPhone

    Hi Guys,
    I am making an application for iPhone that does purchase order approval.
    I am stuck at one point.
    Here is the process I followed.
    I took the generated code from server and added to my Sample project.
    I copied ObjectiveC API-internal and public folder to my Sample project.
    I also copied Settings.bundle and other Debug-iphonesimulator library files to my approval project.
    I added frameworks from existing frameworks.They were 6.
    I changed library path.
    Header Search Paths : /Users/edccoe/Desktop/API/ObjectiveC/includes/**
    Library Search Paths : /Users/edccoe/Desktop/API/ObjectiveC/includes/** "/Users/edccoe/Documents/Projects/XCODE/SampleCode"
    After doing all these things I am getting an error Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    Could any one please help?
    Thank you,
          Snehal Mehta

    Hi Christian,
    Thank you for your reply.
    Here are the details of configuration.
    I am using  Mac OS 10.6 and Base SDK-IOS 4.2.
    My ObjectiveC folder is on my desktop.
    So I gave search paths,
    Header Search Paths: /Users/edccoe/Desktop/ObjectiveC/includes/**
    Library Search Paths :/Users/edccoe/Desktop/ObjectiveC/includes/** /Users/edccoe/Documents/Projects/XCODE/NewProject/"
    Apart from these I copied all external files to my project.
    I copied 3 library files libclientrt.a,libMO.a,libS UBObj.a ,Generated Code from SUP ,two folders from ObjectiveC API that is internal and public.And finally I added all the frameworks not only 6.
    I tried to change deployment version to 10.5 but had same error.
    Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    I tried lots of times with different possibilities but
    Any help would be greatly appreciated.
    Thanks in advance.
    Regards,
        Snehal Mehta

  • AVFoundation Linking Problems

    Hi All,
    I just upgraded from iPhone OS2.1 to 2.2.1 to use the AVAudioPlayer in the AVFoundation Framework, but I cannot get my code to link. I did the following steps to set it up:
    1) Download/install OS2.2.1
    2) Dragged AVFoundation Framework from the finder into my project. I had to do this because every time I tried "Add Existing Frameworks" in XCode, the file would not show up. I got the framework from:
    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/L ibrary/Frameworks/AVFoundation.framework/
    3) Selected the XCode build environment to be "Simulator - 2.2.1 | Debug"
    4) Went to targets/myapplicationname/get info and added AVFoundation.framework
    5) In the relevant file with the AVAudioPlayer, added the header #import <AVFoundation/AVAudioPlayer.h>
    6) Build -> Clean
    7) Build (The code I am using is the reference code from the AVAudioPlayer class reference.)
    Every time I try to build, I get the following error:
    ".objcclass_nameAVAudioPlayer", referenced from:...
    Am I missing something in setting up my environment here?
    Thanks for all your help

    In step 2, did you drag the framework into the Frameworks folder of the Groups & Files tree? In step 4 exactly which field did you edit in the Target Info window? When you were done with step 2 and/or step 4, did AVFoundation.framework show up in the expanded Frameworks folder of the tree?
    Luckily each time I've had trouble adding a framework that didn't show up in Add Existing Frameworks, I was able to find a sample app that used the framework and was then able to add that framework by dragging from one Project window to the other. I sure wish I knew why some frameworks that seem to be in the search path don't appear in the Add list.

  • Using mx components in Action Script project in Flash Builder

    Hi
    I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.
    The as file looks like this:
    package
        import flash.display.Sprite;
        import mx.controls.Button;
        public class as_test_project extends Sprite
            public function as_test_project()
                var btn:Button = new Button();
                btn.label = "test";
                addChild(btn);
    I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.
    I still get errors like :
    Description    Resource    Path    Location    Type
    Unable to resolve resource bundle "core" for locale "en_US".    as_test_project        Unknown    Flex Problem
    Have then tried added various Bundles folders like
    C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles
    to the source path and library path, but I still get the errors.
    WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?
    If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?

    Thank you for your quick reply.
    But how then can I obtain the fl.controls components and use them in an Action
    Script project in Flash Builder 4?
    I don't have CS3 or CS4 (the flash authoring tool) installed.
    Is there an SWC somewhere to be downloaded?

  • RSS Photo Viewer not working

    So in trying to learn CocoaRuby on Xcode 3, I've tried this ADC tutorial and I know I've done it correctly, but I can't get the app to run. (I've done this app from scratch twice, the second time using cut and past for the large chunks of code.)
    .I 'build' the code using Xcode. Then, I hit either 'Go' or double click the .app file. The app icon appears in the Dock for about a second and then disappears. With the 'Go' method, Xcode tells me the application ended with a status of 1. What's going on here?
    Thanks,
    David

    I've managed to get the application to start by linking to the Quartz framework in XCode.
    To do this right click on the "Linked Frameworks" group in XCode, and select "Add -> Existing Frameworks..." in the menu. You'll then be presented with a list of available frameworks, browse through the list for Quartz.framework and double click.
    Unfortunately while the application will run, the image browser view completely fills the window. The other controls will still accept input (try clicking where the url field should be), but I can't see them.
    I have no idea why this is happening, as I'm only just starting out with Cocoa development, but if anyone can shed any light I'll be a happy bunny.

Maybe you are looking for

  • Read values from html response

    Hi, I am trying to make a call to an API using UTL_HTTP POST method over SSL and read the response html page and extract the values from the reponse. I am able to call and get a response back in html format. I have stored the html response in a clob

  • Vendor information against Asset Number

    Hi Gurus, I have a FICO report, in it I want to find a table from where i can get the Vendor Name and address against Asset Number... How Can i link between Vendor Name with Asset Number.. Thanks....

  • Good printers for mb pro and airport

    can anyone recomend a good 3 in 1 printer that works well with mb pro and airport express?

  • State to look like another, but not based on it?

    Hello all, I've a strange request about view states I have a state that initialises a datagrid on load and that works just fine (it shows open issues) Above there is a link button to show closed issues, I tried a new state based on open issues but th

  • Partition of mtl_system_items_b

    Hi All , Here on our site , we're planning to partitioned the MTL_SYSTEM_ITMES_B table . But we're confused about partitioning key . We're thinking on "oraganization_id" as partioning key . BUt most suitable partiton for the "organization_id" is List