# Add info to info.plist does not work anymore ?

**URL:** <https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940>\
**Category:** iOS\
**Created:** [October 15, 2016, 6:21pm UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940 "2016-10-15T18:21:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [October 15, 2016, 6:21pm UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940/1 "2016-10-15T18:21:26Z")

</div>

Have I dreamt it, or was it that in early Xojo iOS days dragging a file called info.plist in the project merged its content with the app info.plist ?

I just tried, and it generates an error.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [October 15, 2016, 6:51pm UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940/2 "2016-10-15T18:51:25Z")

</div>

Continuing to try and find a workaround again, as usual one of the gazillion failings of Xojo iOS, I am now trying to apply the same build script as what is used in Mac OS :

`Dim App As String = CurrentBuildLocation + "/""" + CurrentBuildAppName + ".app"""
  Call DoShellCommand("/usr/bin/defaults write " + App + "/Contents/Info ""NSUIElement"" 1")`

To adapt to Xojo iOS,  
1 - I discovered that CurrentBuildAppName already contained “.app”  
2 - Info.plist is not in /Contents, it is in the root directory of the bundle.

So I came up with this :

`Dim App As String = CurrentBuildLocation + "/""" + CurrentBuildAppName
  Call DoShellCommand("/usr/bin/defaults write " + App + "/Contents/Info ""NSUIElement"" 1")`

But the key never gets written ☹

Besides, what I need to add to the Info.Plist is more complex :

`<key>UIAppFonts</key>
<array>
<string>Zz.ttf</string>
</array>
`

This probably means I will have to extract the Info.Plist manually, modify it, and put it back with a copy files 😕

Have I already said Xojo iOS is a pain in the you know what ?

---

<div class="post-metadata">

**Author:** ![Jason\_King](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@Jason\_King](https://forum.xojo.com/u/Jason_King)\
**Post date:** [October 15, 2016, 7:21pm UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940/3 "2016-10-15T19:21:58Z")

</div>

You have to use PlistBuddy to edit the info.plist for iOS. Defaults write does not work.

---

<div class="post-metadata">

**Author:** ![Jason\_King](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@Jason\_King](https://forum.xojo.com/u/Jason_King)\
**Post date:** [October 15, 2016, 7:23pm UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940/4 "2016-10-15T19:23:34Z")

</div>

[https://forum.xojo.com/conversation/post/203397](https://forum.xojo.com/conversation/post/203397)

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [October 15, 2016, 7:40pm UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940/5 "2016-10-15T19:40:25Z")

</div>

Thank you Jason, I had forgotten about that post.

---

<div class="post-metadata">

**Author:** ![Grant\_Singleton](https://forum.xojo.com/letter_avatar_proxy/v4/letter/g/b38774/32.png) [@Grant\_Singleton](https://forum.xojo.com/u/Grant_Singleton)\
**Post date:** [August 14, 2018, 10:08am UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940/6 "2018-08-14T10:08:01Z")

</div>

Worked for me.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:30pm UTC](https://forum.xojo.com/t/add-info-to-info-plist-does-not-work-anymore/33940/7 "2020-10-29T18:30:33Z")

</div>


