Info.plist & DYLD_LIBRARY_PATH

Hello everyone,
I am preparing for deployment an application. This uses a series of dylibs which are opened by the application using dlopen. The dylibs are within the application's bundle (specifically, inside Contents/libs).
I have successfully run the application by setting the env variable DYLDLIBRARYPATH to /Applications/MyApp.app/Contents/libs, achieving this either by terminal or by the means of /etc/launchd.conf. I am not trying to modify the info.plist file to avoid any external file to the bundle.
Here's the file content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSEnvironment</key>
<dict>
<key>DYLDLIBRARYPATH</key>
<string>/Applications/MyApp.app/Contents/libs</string>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>BareBones</string>
<key>CFBundleIconFile</key>
<string>App.icns</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.MyApp</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>BareBones</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CSResourcesFileMapped</key>
<true/>
</dict>
</plist>
However this does not work. I have tried rebooting the system but with no luck.
Could anyone shed some light on this?
Moreover, will this work for Mac OS X 10.3 - 10.6?
Thanks for the assistance,
Best Regards,
Joe

I'm not quite sure what is going wrong, my best guess is that your bundle is not packaged correctly or you have removed some SDK files from the application when you used the terminal. What OS are you currently using and have you tried building a sample project to make sure it isn't affecting other builds?

Similar Messages

  • Dyld_library_path and info.plist

    Hello
    I am developing a project which use some libraries.
    I have locate my libraries inside the application.app/Contents/MacOS/.
    So i am opening the info.plist inside the .app folder and add an environment variable DYLDLIBRARYPATH and set the variable to point to the "./Contents/MacOS/" and the system cant locate the libs.
    When use full path (/Users/Desktop/application.app/Contents/MacOS/) the system locating the libs and work fine. I want my app to be portable so i have to use the current directory.
    This is my info.plist
    http://img44.imageshack.us/img44/397/picture1sdk.png
    Thanks in advance!

    You shouldn't have to use DYLDLIBRARYPATH on MacOS X. Create a new build script phase in your target. In that script, run the 'installnametool' to change the path to your included dynamic libraries to be @executable_path. Then, when you run the app, it will use the libraries inside your application bundle.

  • RCP, Environment Variables, OS X, Info.plist and LSEnvironment

    I've got a somewhat challenging problem here.
    I've got an RCP application that relies upon some shared dynamic libraries which might not be in standard locations (as this is OS X and they are user installed).
    One of the things we need to configure is DYLD_LIBRARY_PATH in order for the shared libraries be discovered. The problem here is OS X doesn't have a simple way to set environment variables that applications launched from the Finder can "see".
    One of the thing that I've found, but not had any success with, is to dynamically modify the RCP's Info.plist to have an additional key LSEnvironment whose value is a dictionary to set environment variables only visible to that application - okay this seems ideal for me. But it's not working.
    I also found that I could use launchctl setenv to set a user global Environment variable, however it's not persistent across launches, and each time I set, I must restart the app. I really need this persistent.
    Does anyone have any solution for setting Environment variables that are visible from the RCP app (and it's children) that works in OS X without having to launch the RCP app from a terminal?
    Thanks in advance!

    Brian de Alwis wrote on Wed, 05 August 2015 19:54Sounds like you want to use System.loadLibrary() with absolute paths?
    That doesn't quite work, as we aren't using JNI. Unfortunately the use-case details get pretty complicated - so I omitted in an effort to make it simpler to understand the problem.
    Basically we have built an IDE that uses the Prolog interpreter, XSB. XSB natively connects to MySQL using the shared MySQL libs. Unfortunately on OS X, MySQL can get installed into possibly one of many locations, and it certainly doesn't install it's libs in /usr/local/lib or /usr/lib. We access XSB via a Java library called Interprolog, which I believe, is just a pipe interface to the command line shell - hence when the Interprolog engine object is instantiated, it fires up a shell process for XSB - which needs to locate those MySQL libraries. Hence, DYLD_LIBRARY_PATH needs to be set to have the path for /usr/local/mysql/lib (or wherever the user installed it) defined in the parent process in order for Interprolog's sub-process to pick up the environment variable.
    Right now there are only 2 reliables ways I have found to get this to work.
    1. Launch Terminal, export the environment variable. Then launch our RCP app from the Terminal. - cumbersome and unintuitive; bad user experience.
    2. Launch Terminal, use `launchctl setenv DYLD_LIBRARY_PATH /usr/local/mysql/lib`. And then one can lacuna our RCP app using Finder. - problem is that DYLD_LIBRARY_PATH is now global to the environment and will not persist between reboots.
    I've tried added the LSEnvironment dictionary to the Info.plist within the RCP application, but that just doesn't seem to work - and I'm not sure if that is because the OS X eclipse launcher doesn't propagate the environment forward or what. For the time being I have a way for the user to click a button which runs launchctl setenv and then prompts the user to exit the app, and then launch again from finder [IWorkbench.restart() doesn't work because new process is a child of the current] - which works but is undesirable workflow as it doesn't persist across a login/reboot.
    My next step is to try what is outlined here: http://stackoverflow.com/questions/829749/launch-mac-eclipse-with-environment-variables-set
    However it feels even more sketchy than just modifying the Info.plist to contain the right environment variables.

  • How can I convert the download.m4a and Info.plist into the right audio file

    The topic is actually the problem that I have.
    I have bought music and it was downloaded successful (all of it) but iTunes had a strange freeze while converting the files into the right audio file. Some files were converted but after the freeze no more.
    I'm now left with these .tmp folders in the downloads folder which have the download.m4a and Info.plist files.
    My iTunes is able to play these download.m4a files, but they show no information and covers and this is really annoying. I could write and change it all by myself, but than I would still miss some information (and covers).
    Is there any way for me to convert or combine these files?
    Note: I'm not able to restart any downloads, because they were successful.

    Hello ed2345,
    Thanks for the help, but this is not the problem.
    It's hard to describe the problem, but I'll try it again, this time with pictures.
    I was left with the following folders in the iTunes Downloads folder.
    http://www.picfront.org/d/7yb3
    These TMP Folders have a download.m4a and a Info.plist file.
    After moving the audio files in iTunes a bit I get this.
    http://www.picfront.org/d/7yb2
    As you can see no other Information for the download.m4a than the length.
    That's how the .m4p file looks like
    http://www.picfront.org/d/7yb1
    And this is how the same .m4a file currently looks
    http://www.picfront.org/d/7yb0
    Like I said, I could edit all these download.m4a files by myself but that would leave some information out.
    Note: Sorry, I hope the links do not spam you with annoying ads. I don't get any but I was told that there can be some annoying one.

  • How do I renew the integrity of a possibly corrupted info.plist?

    When I try to install Messenger 6.0.3, I get the following error message:
    "The Finder cannot complete the operation because some data in
    Info.plist could not be read or written. (Error code -36)."
    How do I renew the integrity of the info.plist file (ideally without screwing everything else up)? Or is something else at work here?

    welbike wrote:
    Is there a solution to this problem?
    I don't know. It might help if you told me what the message was, and what was the "failing" message you mentioned earlier?
    How is it you are now able to install Messenger? Did you repair the disk? Did you download a new copy?
    One thing you can do is to open the Console application, from your Utilities folder, and have console.log in one window and system.log in another. Use the "broom" to clear both windows, then try to start a chat session. When it quits, there will be a message in one or both of the console windows.
    Copy and paste what you get from these windows (and say which is which). I need to see the exact message to take this further.

  • Iphoto won't launch after 10.6.8 update, info.plist lost

    After I updated, iPhoto would seem to start--it was in the menu bar, but most commands were greyed out and no library was visible or available.  I remembered it was a good idea to trash preferences, so I trashed the Info.plist file.  I also moved com.apple.iphoto.plist or the like.  Then iPhoto's icon turned into a generic app icon and I can't even get the menu bar to become iPhoto.  I found this:
    iPhoto[1303]: No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
    com.apple.launchd.peruser.501[97] ([0x0-0xcb0cb].com.apple.iPhoto[1303]): Exited with exit code: 1
    I may have lost the Info.plist forever in my (ironic) efforts to get iPhoto to work again!
    Help?

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • I'm trying to install the new version, but each time during the installation, "Error writing to file: C:/Program Files (x86)/Common Files/Apple/Mobile Device/Support/AppleMobileDeviceHelper.resources/Info.plist." Keeps popping up. What am I doing wrong?

    I'm trying to install the new version, but each time during the installation, "Error writing to file: C:/Program Files (x86)/Common Files/Apple/Mobile Device/Support/AppleMobileDeviceHelper.resources/Info.plist." Keeps popping up. What am I doing wrong?

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Uploading AIR for IOS thru Application Loader I get the following error - The package does not contain an Info.plist.

    I'm publishing an .fla in AIR for IOS.
    I'm in CC 2014 so first I need to know which AIR should I publish in?
    newest is AIR 14.0.0.178 for IOS
    IOS deployment type is App Store
    publishes with no error.
    I see the following files included .swf and app.xml
    I convert the .ipa to a zip file
    Upload that thru the Application Loader I get the following error
    The package does not contain an Info.plist.
    Where is the infoplist for this and do I convert the .ipa and the info to a zip file?
    I converted the .ipa to a .zip and the intoplist file is NOT THERE  how do I generate this?
    Any help here?

    Ok this is becoming very very frustrating as I have been at this for hours now. So the only way to explain this is to write what I did step by step as I have to be doing something wrong, just to recap:
    I was publishing from Flash CC 2014 using AIR 14.0 and getting Digital Certificate is not valid message.
    Was instructed to download new AIR 17 , I did this installed into Flash and used to publish.
    I used my previous p12, app ID and distribution certificates all generated properly.
    The file worked ONCE but I got an app ID error ( I understood I used the wrong app ID)
    I changed it to the right app ID and the very next time and after 10 attempts I got the same error  Digital Certificate is not valid
    SO I then downloaded AIR 16.0
    RE DID ALL MY CERTIFICATES AND P12'S
    went to publish and I STILL GET THE SAME MESSAGE   Digital Certificate is not valid

  • ERROR: "info.plist does not validate against DTD"

    Hi! I got this error if anyone has it solved Please HELP.
    I am trying to package a WRT widget using Nokia WRT extension for Adobe Dreamweaver. This is the place for info on the extension: http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Runtimes/Web_Runtime/
    I figure developer from here who use DW to develop mobile content might know the error.
    When come to the step of 'Package Nokia WRT Widget' I got this error: info.plist does not validate against DTD
    and a page of error info shown like this:
    DTD validated at: Wed Jun 17 2009 19:03:00 GMT+0800 (Malay Peninsula Standard Time)
    DTD used for validation: http://www.nokia.com/DTDs/plist-1.0.dtd
    Line
    Column
    Message
    Explanation
    Source
    2
    95
    DTD did not contain element declaration for document type name
    3
    16
    Attribute "version" exists, but can not be used for this element.
    3
    21
    element "plist" undefined. Did you mean "applet" or "strike"?
    4
    7
    element "dict" undefined. Did you mean "strike" or "input"?
    5
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    6
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    7
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    8
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    9
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    10
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    11
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    12
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    13
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    14
    9
    element "true" undefined. Did you mean "textarea" or "tr"?
    Can anyone knows what this means and how i can solve it?
    Please help. Thankyou.
    note: I am new here and knows that keep asking quesion without giving back is not good but I have a deadline here and wanted to finish the job. I will read some other post and try to help in return when I am able to do so.

    Hi pziecina,
    Thanks for your reply,
    I suspect my problem is the installation or setup of my system or software. as the result i tested is not by doing any scripting at all. All I did is following one of their example exactly (http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Runtimes/Web_Runtime/Dreamweaver_Exte nsion/QuickStart.xhtml) and package strightaway without modifying the code. because I want to make sure i got the extension install correctly. even so by packaging one of their ready make example already yield this error.

  • When ever I reboot my device, I get an error message that says, "runtime error info.plist not found". What is this, how does it effect my ipod and how do I correct this error?

    I have an ipod touch 64gb. Lately, I discovered an error message on the lockscreen that says "Runtime Error Info.plist not found". What is this, will it effect my ipod, how does it effect my ipod and how do I correct the error? (I see the error message when I power up my ipod and when I reboot).

    Follow  this article:
    How to restart the Apple Mobile Device Service (AMDS) on Windows

  • Macbook Pro Hard drive partition and Bootcamp Info.plist

    Okays, so i was planning on installing windows through USB bootcamp as my CD is broken. I tried editing the Info.Plist and i managed to stuff it up and lost original now it doesnt work, how do i redownload my original one.
    THEN i tried to partition the hard drive with disk utility, i accidentally didnt resize each partition and force quit the app and now my hard drive shows 249.56 GB FULL instead of 129.45 full, what do i do to fix my hard drive. in the "about this mac" it shows half my hard drive used as "Other". Please help
    Its a Macbook pro 2010 13inch
    running 10.9 Maverick

    Hi Michele,
    Sounds like a corrupted partition map. Can you run the Bootcamp Setup Assistant again to restore the drive to a single volume? Otherwise, I'd backup the OS X side and then re-partition the drive and start from scratch, then restore your backup so at least you'll be back up and operational on the OS X relatively quickly.

  • Help! No info.plist, manifest.plist, or status.plist on Iphone backup...data can not be recovered

    I'm at a lost here, I created a backup of my iphone before I updated my firmware.  When I went to go restore from backup, I noticed it did not backup completely.  I checked the 'C:\Users\Name\AppData\Roaming\Apple Computer\MobileSync\Backup' and noticed that the folder that carries my backup does not have the info.plist, manifest.plist, or status.plist files??  All the data seems to be intact, just no way to extract it.  I already tried to use iPhone Backup Extractor, did not work.  Somebody please help me out, I don't want to be out of luck.  I'm missing all my past important SMS history, curcial Notes and emails. 
    Thanks ahead of time,

    gdgmacguy wrote:
    If your backup is corrupted you cannot retrieve data from it.
    I've been working on a tool that repairs most iPhone (iPad, iPod Touch) backups that iTunes reports as corrupted -- it seems to be working fairly well for people we've had using it lately! If someone stumbles on this post and wants to try it out, the program is Decipher Backup Repair, and you can try it here:
    http://deciphertools.com/download-decipher-backup-repair.html
    As other people in the thread have mentioned, you can also try some third-party programs to read the backup and pull-out the important data so you at least have it in some capacity. We have one on the website I've linked above, in addition to the repair software.
    I hope this helps someone who finds this thread! Dealing with iTunes backups can be really painful, and I know it's horribly depressing to wait through a restore to get the corrupted message after SEVERAL minutes.
    (Note: As I mentioned, I work on the backup fixing software I linked to, so I stand to benefit, financially or otherwise, from the links I've provided.)

  • Is there anyway to change Info.plist settings and use Flash Builder 4.6 to package the iOS app?

    Hi there,
    I've tried to package my app with the latest Xcode 4.5 (version 19 Sep 2012) iOS 6 SDK, Flash Builder 4.6, Flex SDK 4.6 with Air 3.5 Beta overlay.
    and unzip the .ipa file and i found the following automated settings on the Info.plist file was wrong:
    <key>DTPlatformVersion</key>
            <string>5.1</string>
            <key>DTSDKBuild</key>
            <string>9B176</string>
            <key>DTSDKName</key>
            <string>iphoneos5.1</string>
    According to the Adobe specs, these settinsg are unchangeble, is there anyway to change these values to produce .ipa file that with iOS 6.0 settings with Flash Builder 4.6?
    I believe this cause the following appstore submission issue with the iPhone 5 4-inch display splash screen image [email protected]:
    Invalid Launch Image - You app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later.
    Many thanks,
    A

    Not everyone here was involved in the conversations that led up to this file, so here are some extra clues:
    In your AIR3.5 folder (or whatever you named the folder) is a lib folder. Inside that is the current adt.jar file. Rename that in case you have to go back to it, and drag the supplied adt.jar file into the lib folder. Now publish your app.
    You won't even need to quit Flash or Flash Builder.
    Once you have the new IPA, go through the usual upload steps to the App Store, using Application Loader, and the file should process ok in iTunes Connect. Note, you will be asked to provide iPhone 5 screenshots.

  • My backup file missing (info.plist)

    I did upgrade from 4.2.1 to 4.3.3
    but my 4.2.1 backup file missing.
    missing is only 5 files ( Info.plist Manifest.mbdb Manifest.mbdx Manifest.plist Status.plist )
    I was recorver HDD so got 4 files ( Manifest.mbdb Manifest.mbdx Manifest.plist Status.plist )
    but Info.plist file is dont found.
    please help me.
    how can I restore from my backup file?
    (orry, my english not good. )

    When you look for the backup it could be possible that its saved as loaderbackup instead of just backup.  What version of the desktop software do you have?

  • Activity monitor: no info.plist file in application bundle

    hello, i deleted the activity monitor....
    now, i can't open the activity monitor in utilities,
    it says:
    No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting

    I would download and run the OS X 10.6.8 Combo update.
    I peeked into it with Pacifist, and it contains an update for Mail.app, including replacements for the executable and the info.plist:

Maybe you are looking for

  • My iPod touch 5th gen can't play videos?

    I've had my iPod touch 5th gen since Christmas Eve and I haven't had any problems with it, but a few days ago it stopped playing videos and now - even though I have turned it off and back on and turned the wifi off and back on again - it still can't

  • How do I transfer apps from computer to Ipad?

    I just upgraded to OS5.01 all my apps were erased from my Ipad I want to download them from my computer back to IPAD, how do I do that?

  • Phone Line and Broadband Cancelled by BT by their ...

    Hi, Just a bit of a sound off and if anyone can advise of anything I can do to speed this up at all. At 10am this morning, I got an email saying that someone had cancelled my Line and Broadband, the charge for this was to be £142.50, as I was still w

  • Apple Software Update 2.1.3

    Looked for a definitive answer but found none. I'm a Mac user who has to run Windows 7 under Parallels for a  non-Apple program I need for my work. It all runs like clockwork (well, better, as it doesn't need winding up). Like many other people, I've

  • Files grayed out when "saving as"

    Hello everybody, I've moved from windows to mac recently and i'm doing my best to understand the way this OS works. There are some things that really do not make sense to me as a beginner. Anyways my problem is that when i want to "save as" a file ev