Search Unity

iOS Xcode Api / PostBuildProcessor: Root of PlistDocument is null

Discussion in 'Scripting' started by chrs1885, Oct 9, 2015.

  1. chrs1885

    chrs1885

    Joined:
    Jun 4, 2015
    Posts:
    4
    Hi,

    I'm trying to add URL Schemes to my Info.plist.

    While adding frameworks is working just fine, accessing the root dictionary of my plist doesn't seem to work as expected:

    Code (CSharp):
    1. // Add url schema to plist file
    2. string plistPath = path + "/Info.plist";
    3. PlistDocument plist = new PlistDocument();
    4. plist.ReadFromString(File.ReadAllText(plistPath));
    5.            
    6. // Get root
    7. PlistElementDict rootDict = plist.root;
    When I step debug the code, Mono Develop shows me

    FYI, the plistPath is correct.

    Am I doing anything wrong?