iLifeControls Framework Problems

Discussion in 'Mac Programming' started by tominated, Jan 21, 2007.

  1. macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #1
    I have downloaded the iLifeControls framework so i can have black widgets and windows/panels. I have built the framework and added it to a project, but...
    A. It spits out an error in the log window saying
    Code:
    dyld: Library not loaded: @executable_path/../Frameworks/iLifeControls.framework/Versions/A/iLifeControls
      Referenced from: /Users/thomasbrunoli/ilifewidgets/build/Debug/ilifewidgets.app/Contents/MacOS/ilifewidgets
      Reason: image not found
    
    ilifewidgets has exited due to signal 5 (SIGTRAP).
    (where 'ilifewidgets' is the project name)
    B. I have no idea how to actually impliment them. do i have to do it programmatically?

    Anybody know?
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Given the path that it's trying to load from it looks like the framework has been compiled to load as an embedded framework. To make this work you have two options:

    1) Alter the executable path in the settings of the framework. This is not a good idea as it'll make installing the app tricky.

    2) Put the framework in the correct place. That's <AppName>.app/Contents/Frameworks/<FrameworkName>.framework

    To do 2) you need to add a new build stage to the application project and set it to copy the framework to the correct location. If you grab a copy of the source to any of the apps in my signature you can see an example of this build stage.
     
  3. thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #3
    Thanks a million! it works now!
     
  4. thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #4
    does anybody know where i can get a dark NSSearchFeild suitable for a HUD window (like the keyword search in apeture)?
     

Share This Page