Editing Info.plist in code

Can you, and if so how, edit Info.plist through a class that you've created? I'm thinking of doing something where you can change preferences that edit some settings in Info.plist (for example, LSUIElement). Thank you!

No application should ever modify its own bundle.

Similar Messages

  • Edit Info.plist Within a Published .ipa File to Enable iOS Newsstand Support?

    I'm working on developing a magazine-style app using Flash CS5. I'd like to enable iOS Newsstand support for the exported .ipa file. Anyone have any experience with this? I believe that I'd need to edit the app's info.plist file within the exported .ipa bundle ...
    Experiences / thoughts?
    Ted

    Hi Ted:
    I have not implemented this yet. But as I can read on http://developer.apple.com/library/ios/#documentation/StoreKit/Reference/NewsstandKit_Fram ework/_index.html, editing info.plist might take your app to newsstand but to take advantage of any NewsStand feature  you will also need to write some Native Extension also that provides access to NKLibrary , NKIssue NKAssetDownload.
    I think http://www.viggiosoft.com/blog/blog/2011/10/17/ios-newsstand-tutorial/ this will help you do some newsstand stuff in native code.
    If you ever use newsstand, I would love to see your app, please share your iTunes link.
    best of luck,
    thanks,
    Saumitra

  • Edited Bootcamp's info.plist and now Bootcamp won't open?

    Here is the error report I get. Really want to get this fixed, so any help would be greatly appreciated.
    Process:         Boot Camp Assistant [285]
    Path:            /Applications/Utilities/Boot Camp Assistant.app/Contents/MacOS/Boot Camp Assistant
    Identifier:      com.apple.bootcampassistant
    Version:         ???
    Build Info:      BootCampAssistant-5700000000000000~6
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [129]
    Responsible:     Boot Camp Assistant [285]
    User ID:         501
    Date/Time:       2014-06-22 10:09:56.562 -0700
    OS Version:      Mac OS X 10.9.2 (13C64)
    Report Version:  11
    Anonymous UUID:  7E43C5D1-D2C4-D1E3-F9D7-B8667AAE4BBA
    Crashed Thread:  0
    Exception Type:  EXC_CRASH (Code Signature Invalid)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    VM Regions Near 0x7fff799540a8 (cr2):
        __LINKEDIT             00007fff64f32000-00007fff64f46000 [   80K] r--/rwx SM=COW  /usr/lib/dyld
    --> Submap                 00007fff70000000-00007fff80000000 [256.0M] r--/rwx SM=PRV  process-only VM submap
        unused shlib __DATA    00007fff797a3000-00007fff7bfbd000 [ 40.1M] rw-/rw- SM=COW  system shared lib __DATA not used by this process
    Thread 0 Crashed:
    0   dyld                           0x00007fff64ec0028 _dyld_start + 0
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x000000000000000d  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
      rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x00007fff53ed7d08
       r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
      r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
      rip: 0x00007fff64ec0028  rfl: 0x0000000000000201  cr2: 0x00007fff799540a8
    Logical CPU:     0
    Error Code:      0x020000f4
    Trap Number:     133
    Binary Images:
        0x7fff64ebf000 -     0x7fff64ef2817  dyld (???) <2B17750C-ED1B-3060-B64E-21897D08B28B> /usr/lib/dyld
    External Modification Summary:
      Calls made by other processes targeting this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by all processes on this machine:
        task_for_pid: 159
        thread_create: 0
        thread_set_state: 0
    VM Region Summary:
    ReadOnly portion of Libraries: Total=288K resident=268K(93%) swapped_out_or_unallocated=20K(7%)
    Writable regions: Total=8444K written=0K(0%) resident=12K(0%) swapped_out=0K(0%) unallocated=8432K(100%)
    REGION TYPE                      VIRTUAL
    ===========                      =======
    STACK GUARD                        56.0M
    Stack                              8192K
    VM_ALLOCATE                           8K
    VM_ALLOCATE (reserved)                4K        reserved VM address space (unallocated)
    __DATA                              252K
    __LINKEDIT                           80K
    __TEXT                              208K
    mapped file                         232K
    shared memory                         4K
    ===========                      =======
    TOTAL                              64.8M
    TOTAL, minus reserved VM space     64.8M
    Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2.26 GHz, 8 GB, SMC 1.47f2
    Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x859B, 0x435434473353313036374D2E4D3136464B44
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x859B, 0x435434473353313036374D2E4D3136464B44
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.3f10 13477, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: TOSHIBA MQ01ABD100, 1 TB
    Serial ATA Device: HL-DT-ST DVDRW  GS23N
    USB Device: Built-in iSight
    USB Device: Internal Memory Card Reader
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: IR Receiver
    USB Device: BRCM2046 Hub
    USB Device: Bluetooth USB Host Controller
    Thunderbolt Bus:

    Was Bootcamp code signed after info.plist was updated?
    Please see Enable Bootcamp to install from usb for OSX 10.9**WORKS**

  • Boot Camp keeps crashing after i edited the info.plist

    When I downloaded a Windows Home premium 64x iso file and it said it was 64 bit and it was, I was googling on how to fix it and I came across a topic that said to edit the info.plist file. After I edited the info.plist it stopped working and crashed every time I tried to run Bootcamp. SOMEONE HELP PLS!

    Can you try to put back the original/unmodified info.plist file
    which info.plist file is it ?

  • Finde Info.plist

    I was using PlistEdit Pro to edit the Finder's Info.plist and the app corrupted the file as a result of which Finder can't doesn't start anymore. I know I should have made a backup but didn't as in the past this has never been an issue. But after updating to Mavericks, it seems that certain trivial things are not quite the same anymore. Anyway, the Info.plist is totally f%*$ed and I was wondering whether it is possible to find it online somewhere for download. I already re-installed Mavericks once and it took a bloody 90 mins. I'd rather skip the wait if possible. Thanks.

    thanks R C-R. exactly right.  @tuttle: i don't have Xcode. that being said, PlistEdit Pro let's me add 'LSUIPresentationMode -int 4' to Firefox/Chrome/Terminal etc plist files without any problems. it removes the menubar for Firefox, Terminal and some other non-Apple apps, but crashes Evernote/Mail/Preview/Activity Monitor (in general most Apple apps), and does nothing for Chrome although it used to before the current version.
    but the most interesting point is this: before installing Mavericks, i was running the latest 10.8 OS update and was able to use this trick just fine to show/hide the Finder's menubar with PlistEdit Pro. after updating to Mavericks, the Finder crashes immediately upon relaunch after adding LSUIPresentationMode -int 4 to its plist.
    so since i demonstrated that PlistEdit Pro can be used successfully to edit some user apps on Mavericks, and it also was working fine on Finder before the OS update, isn't the logical conclusion that something connected to the Finder and the new OS code has changed in regards to how plists are handled for system apps? the error message spews forth some complaint about Finder.app having the wrong code signature or some such after the edit is saved to the plist and Finder is relaunched (can't remember the exact wording now, but that's the gist of it).
    does Mavericks do something like recompute some sort of hash every single time any file associated with a system app has changed and since plist changed, it screws up the hash, causes the OS to falsely conclude the app has been modified 'illegally' and thus may be a security breach and blocks it from running?

  • Meaning of "Localization native development region" entry in info.plist?

    Hi,
    I don't know if I really understood the function of the "Localization native development region" entry in info.plist file. Somewhere I read that this entry allows to specify the app language when there is no matching with a language resource dir. I have an app localized in three languages: english, italian and spanish (en.lproj, it.lproj and es.lproj) and I set "Localization native development region" entry to Italy. When I change the language and locale in "Settings" (for example by chosing the arabic language and a proper region), the app language is english. Shouldn't be it italian as I set "Localization native development region" to Italy in the info.plist?
    Thanks,
    Fran
    Message was edited by: sefran2

    Was Bootcamp code signed after info.plist was updated?
    Please see Enable Bootcamp to install from usb for OSX 10.9**WORKS**

  • 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.

  • 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.

  • 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.

  • Creating a Widget: Info.plist help

    Hello, I'm currently looking into designing widgets for use on the dashboard, but I'm having some problems. I already have a good understanding of HTML, CSS, and JavaScript, so the problem isn't in the creation of a widget itself, but rather the assembly of it.
    I have a folder that I am using for a widget, entitled "Sample."
    I have all of the necessary files within it:
    -Default.png
    -Icon.png
    -Sample.html
    The HTML file:
    <html>
    <head>
    <title>Basic</title>
    </head>
    <body>
    <h 1>Basic</h 1>
    </body>
    </html>
    -Info.plist
    The Info file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CFBundleDisplayName</key>
    <string>Sample</string>
    <key>CFBundleIdentifier</key>
    <string>com.apple.widget.sample</string>
    <key>CFBundleName</key>
    <string>Sample</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>CloseBoxInsetX</key>
    <integer>16</integer>
    <key>CloseBoxInsetY</key>
    <integer>14</integer>
    <key>MainHTML</key>
    <string>Sample.html</string>
    </dict>
    </plist>
    However, when renaming the folder with a .wdgt extension, I receive an error that says the widget is not valid. I think I am saving the info.plist file incorrectly: according to the Dashboard programming guide, it can be made in any text editor, so when saved from TextEdit, the file name becomes "Info.plist.txt". Is this incorrect, or does it matter? I jhaven't found a guide that goes in depth about the saving of the file, so I want to make sure I know what I'm doing wrong. Have I set up the Info.plist file incorrectly? Or is it something else?
    Thanks for your time.
    iMac G5   Mac OS X (10.4.3)  

    Everything looks okay, except for the name on the Info.plist file. Also, make sure when you create the Info.plist file in TextEdit that you're editing it in Plain Text mode and not Rich Text. When you save it, if it wants to append ".txt" onto the end, uncheck the checkbox that says "If no extension is provided, use ".txt"", then give it an extension of ".plist" and click Save. In any case, the name of the file must be "Info.plist" (w/o the quotes, capital i) exactly.
    Anatomy of a Modern Bundle talks more about how the Info.plist file is used in other aspects of OS X.
    Hope this helps...
    Dual 2.7 GHz PowerPC G5 w/ 2.5 GB RAM   Mac OS X (10.4.3)  

  • I need bootcamp assistant original Info.plist please

    Hello,
    I am currently trying to run windows 7 on my mac through bootcamp. I have a 2010 macbook pro and so it requires a CD to install windows 7. I know you can alter the Info.plist file so that bootcamp assistant can recognize a USB version of windows 7 for the install.
    I was correctly fixing the Info.plist code, saved it to my desktop, all that good stuf...until, like a moron, I dragged it from my desktop right over the original Info.plist file which I had named InfoOLD.plist so I knew which was which. By doing this I think it like combined the two and there are duplicate lines of code, and I am not great with coding stuff unless im following strict guidlines, or a tutorial walking me through it.
    If someone can give me the correct bootcamp assistant Info.plist I can copy and paste that so that it reverts it to the one it came with. Then when I alter it, I will drag it into the white space of the finder folder so I will have two info.plist folders, the original one and the modified one with the USB radio button coded in.
    Whoever decides to help, I am happy to answer any questions you need regarding what type of macbook pro I have exactly, to ensure I am getting the right bootcamp assistant Info.plist.
    Thank you!

    HI and welcome to Apple Discussions...
    Try posting in the BootCamp Forum
    Carolyn

  • Boot Camp Assistant doesn't open (Info.plist)

    Dear All!!
    I just have changed my Boot camp Info.plist to make it support making USB installing drives on my Mac, after i changed Info.plist Boot camp crashes and then it didn't run after several attempts, then after searching for solutions i open terminal and write the code sudo codesign -fs - /Applications/Utilities/Boot\ Camp\ Assistant.app, then it appears as /Applications/Utilities/Boot Camp Assistant.app: replacing existing signature. After that i still can't open my boot camp assistant app, every time i try to open it, a message pop up like, "Boot Camp Assistant can't be open error -1712
    I'am beginner here using Macbook Pro 13,, OSX 10.9.4 Mavericks
    P.S Help me in his regards if you can, I'll be thaksfull to you :-|

    Put the .plist you altered on the Desktop, restart and test.

  • Basic question about the Info.plist

    I have a whole bunch of appilcations I am developing. I when I generated my certificates I got a prefix. Do I put this prefix in my Bundle Identifier field in my Info.plist file?
    At present my Bundle Identifier says:
    com.yourcompany.$(PRODUCT_NAME:identifier}
    I imagine I change "yourcompany" to my company's name.
    But where is the PRODUCT NAME:identifier coming from? Where is this defined?
    It seems to take the app name as specified in the main project file.

    Ah, i didn't realize that the Get Info on the project file would yield slightly different results than the Get Info on the target; they both have long lists of C++ options, etc., but at the end the target has the product name, and that is where I can edit it.
    Thank goodness for the forums, the system is complex and the documentation weak.

Maybe you are looking for