Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

How can you add items to the Xcode project targets Info.plist using the XcodeAPI?

Discussion in 'Unity Build Automation' started by Simurr, Jun 3, 2015.

  1. skoteskote

    skoteskote

    Joined:
    Feb 15, 2017
    Posts:
    87
    tonemcbride likes this.
  2. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    476
    how the hell do you do this for MacOS ? ie, target == BuildTarget.StandaloneOSX

    @David-Berger ?!?
     
    Cromfeli and LucidSloth like this.
  3. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    298
    trying to add the following

    Code (CSharp):
    1.         plist.root.SetString("NSAdvertisingAttributionReportEndpoint", "https://postbacks-app.com");
    2.  
    But it does not get added to the pList If I replace URL with other string it works fine. Any workarounds?
     
    rbitard likes this.
  4. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    197
    I'm doing that with unity cloud build too, did it worked finally ?
     
  5. fdart

    fdart

    Joined:
    Jan 4, 2019
    Posts:
    17
    It's 2023, is this still the recommended approach for adding things to the generated info.plist, or is there an easier way? Thanks!