Skip to content

Tokenized Manifest for iOS does not have its tokens replaced #308

Description

@zeib

Description

The tokenized values in the Info.plist are not be replaced. Enabling the debug for the BuildTools will show that the "'Info.plist' could not be found at the path 'obj/iPhoneSimulator/Debug/mbt/Info.plist'". The mbt folder is not created.

Warning as shown:
Target _CollectAppConfigs: No input config files were found Target ConfigurationManagerTransformAndCopy: No input config files were found Target HandleTokenizedInfoPlist: /Users/myuser/.nuget/packages/mobile.buildtools/2.0.245/build/AppleManifests.targets(23,5): warning : Unable to process Manifest Tokens, no manifest was found at the path 'obj/iPhoneSimulator/Debug/mbt/Info.plist' Done building target "HandleTokenizedInfoPlist" in project "MyProject.App.iOS.csproj". Target AutomaticBuildVersioning: Executing Automatic Version Generator /Users/myuser/.nuget/packages/mobile.buildtools/2.0.245/build/AppleManifests.targets(40,5): warning : The 'Info.plist' could not be found at the path 'obj/iPhoneSimulator/Debug/mbt/Info.plist'. Done building target "AutomaticBuildVersioning" in project "MyProject.App.iOS.csproj".

Reproduction Steps

Steps to reproduce the behavior:

  1. Tokenize any value in the Info.plist with a "$tokenname$".
  2. Create a "Manifest_tokenname" entry with its value in appsettings.json.
  3. Configure the buildtools.json as shown here https://mobilebuildtools.com/manifests/
  4. Select Debug | iPhoneSimulator on Visual Studio for Mac.
  5. Run the project.
  6. Confirm that the tokenized values in the Info.plist were not replaced.

Expected Behavior

The tokens should be replaced with their values. For the exact same tokens, the values are placed on the Android build.

Actual Behavior

The tokens were ignored.

Environment

  • OS: [macOS Monterey]
  • IDE: [Visual Studio for Mac]
  • BuildTools Version: [2.0.245]
  • IDE Version: [17.0.3(build 21)]
  • Build Target Framework: [netstandard2.1|Xamarin.iOS(using Xamarin.Forms)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions