Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 48539 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
I'm trying to have a step in my build process to change my plist to allow opening random sites in debug (deactivating ATS)
So I added the following target in my iOS csproj to invoke PListBuddy :
<Exec Command="/usr/libexec/PlistBuddy -c 'Set :NSAppTransportSecurity:NSAllowsArbitraryLoads YES' '$(_AppBundlePath)Info.plist'"
Condition="'$(BuildSessionId)' != '' And
('$(Platform)' == 'iPhoneSimulator' Or
('$(Configuration)' != 'AppStore' And '$(Configuration)' != 'Ad-Hoc'))">
The command seems to run fine but I get an error which prevents a successful build :
2> Executing: /usr/libexec/PlistBuddy -c 'Set :NSAppTransportSecurity:NSAllowsArbitraryLoads YES' 'bin/iPhone/Debug/AppliOrange.iOS.app/Info.plist'
2>D:\Programmation\Xamarin\AppliOrange\AppliOrange\AppliOrange.iOS\AppliOrange.iOS.csproj(449,5): error : JsonSerializationException: Error setting value to 'StdOutEncoding' on 'Microsoft.Build.Tasks.Exec'.
2>D:\Programmation\Xamarin\AppliOrange\AppliOrange\AppliOrange.iOS\AppliOrange.iOS.csproj(449,5): error : InvalidOperationException: Task attempted to log before it was initialized. Message was: "Exec" task received an invalid value for the "StdOutEncoding" parameter.
2>D:\Programmation\Xamarin\AppliOrange\AppliOrange\AppliOrange.iOS\AppliOrange.iOS.csproj(449,5): error :
This looks like an issue with the Visual Studio side of things (serialization to send to the Mac side, perhaps?)
Tried in Tamarin Studio and I get the following :
Executing: /usr/libexec/PlistBuddy -c 'Set :NSAppTransportSecurity:NSAllowsArbitraryLoads YES' 'bin/iPhoneSimulator/Debug/AppliOrange.iOS.app/Info.plist'
/Users/gulogulosoftware/Projects/AppliOrange/AppliOrange/AppliOrange.iOS/AppliOrange.iOS.csproj: error : Error executing task Exec: The parameter 'ConsoleOutput' was not found for the 'Exec' task.
Okay, then the problem is with xbuild and/or its Task implementations.
The iOS targets/tasks don't do anything with the Exec task.
Sylvain, could you please share the project file - `AppliOrange/AppliOrange/AppliOrange.iOS/AppliOrange.iOS.csproj` ? I want to see the exact target definition that you have there.
Also, could you please attach the full diagnostic build log, using https://developer.xamarin.com/guides/android/troubleshooting/troubleshooting/#Diagnostic_MSBuild_Output ?
Created attachment 18757 [details]
iOS Project file
The task is commented out in this version
Created attachment 18758 [details]
Resetting the status