Cannot use Info.plist

I am trying to do something simple (which I have successfully done before lots of times in previous Xcode versions):

Set the UIAppFonts (Fonts provided by application) key in the Info.plist.

In this new version though, which seems to be godforsaken, I just can't get any Info.plist setup working.

If I try to set the key via the iOS target's Info tab, it automatically creates the Info.plist file for me and everything is fine. Except that it's not even included in the target's membership and (I think that's why) doesn't even get read and I can't use my custom fonts.

As soon as I add it to the target's membership (which seems to be equivalent to having it in the "Copy Bundle Resources" phase, since it is always in sync with the target membership), I get the old "Multiple commands produce" error.

I also tried setting the "Generate Info.plist File" key in the target's Build Settings to "No", but that doesn't work either.

I'm now totally stuck at this "Set a key in the Info.plist file" procedure that used to be extremely simple. I just don't seem to be able to get around this.

I'm on Xcode Version 14.2 (14C18).

I'm on Xcode Version 14.2 (14C18). The project was created on the 12th, but I recently upgraded. When I try to add Google AdMob to my app. I get to the step in which: Update your Info.plist

Update your app's Info.plist file to add two keys: A GADApplicationIdentifier key with a string value of your AdMob app ID (identified in the AdMob UI). A SKAdNetworkItems key with SKAdNetworkIdentifier values for Google (cstr6suwn9.skadnetwork) and select additional buyers who have provided these values to Google.

from https://developers.google.com/admob/ios/quick-start#update_your_infoplist

I save the changes to the file with an external editor but Xcode does not read them.

P.S. Happy New Year!

What happens if you open the info file of the project and add the key there ?

I can confirm that Info.plist management is totally screwed in Xcode 14. While I didn't seem to have issues in the Target Properties section, the Document Types section is simply dysfunctional. I submitted bugs to Apple.

Yeah there's something flakey about the Xcode 14.2 version of the info.plist. Added custom fonts, registered in info.plist. Referencing them programmatically was failing. So I tried to add a label to my LauncherScreen(Fonts show in Storyboard fonts list) and set the custom font on it. After that referring them programmatically worked. Quite odd.

Cannot use Info.plist
 
 
Q