Mobile.BuildTools icon indicating copy to clipboard operation
Mobile.BuildTools copied to clipboard

Tokenized Manifest for iOS does not have its tokens replaced

Open zeib opened this issue 2 years ago • 3 comments

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)]

zeib avatar Jul 08 '22 23:07 zeib

This is accurate. There was a break in the iOS SDK. Thanks for reporting.

dansiegel avatar Jul 08 '22 23:07 dansiegel

@dansiegel Did you ever get a chance to have a look at this?

karls4 avatar Nov 20 '23 20:11 karls4

sorry I haven't you hit me when I was on vacation and I haven't had time to do much with the Build Tools since I came back. I should have more time hopefully once Prism 9 ships. But if this is something that you would like to see fixed I do take PRs

dansiegel avatar Nov 21 '23 03:11 dansiegel