Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zeib opened this issue Jul 8, 2022 · 3 comments
Open

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

zeib opened this issue Jul 8, 2022 · 3 comments

Comments

@zeib
Copy link

zeib commented Jul 8, 2022

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)]
@dansiegel
Copy link
Owner

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

@karls4
Copy link

karls4 commented Nov 20, 2023

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

@dansiegel
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants