Skip to content

Conversation

@spouliot
Copy link
Contributor

@spouliot spouliot commented Jun 8, 2021

The entire .framework directory needs to be copied back to Windows
when a native reference is a [xc]framework. Otherwise important files
will be missing and the app bundle will be unusable.

Fix https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1339824

… a framework

The entire `.framework` directory needs to be copied back to Windows
when a native reference is a [xc]framework. Otherwise important files
will be missing and the app bundle will be unusable.

Fix https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1339824
@spouliot spouliot requested review from emaf and rolfbjarne as code owners June 8, 2021 20:52
@spouliot spouliot added the bug If an issue is a bug or a pull request a bug fix label Jun 8, 2021
namespace Xamarin.iOS.Tasks
{
class CustomMTouchTask : MTouchTaskBase
class CustomMTouchTask : MTouch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GetAdditionalItemsToBeCopied I modified (and added tests to) is not part of MTouchTaskBase, only from theMTouch subclass.

@emaf will correct me if needed :)

*Base tasks generally have all the logic required for running on the Mac.

The version running on Windows subclass them to add the behaviour required to remote the execution.

The version running on Mac also subclass *Base but it's empty (on purpose). That makes the msbuild target files identical (same names for tasks).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct, but there are no more empty subclasses now :). Because of .NET6 we "unified" both task implementations (Windows and Mac) on this repo, but what Sebastien said is still valid:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thank you so much @spouliot and @emaf for those very detailed responses! Makes more sense now!

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Pipeline on Agent
Merge 4016cc5 into 3d9c377

@spouliot
Copy link
Contributor Author

spouliot commented Jun 8, 2021

Package source with Name: local-dotnet-feed added successfully.
/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/common.csproj(52,3): error : Failed to resolve SDK 'Microsoft.DotNet.SharedFramework.Sdk/6.0.0-beta.21212.6'. Package restore was successful but a package with the ID of "Microsoft.DotNet.SharedFramework.Sdk" was not installed.
/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/common.csproj(52,31): error MSB4236: The SDK 'Microsoft.DotNet.SharedFramework.Sdk/6.0.0-beta.21212.6' specified could not be found. [/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/Microsoft.tvOS.Runtime.tvossimulator-x64/package.csproj]
/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/common.csproj(52,3): error : Failed to resolve SDK 'Microsoft.DotNet.SharedFramework.Sdk/6.0.0-beta.21212.6'. Package restore was successful but a package with the ID of "Microsoft.DotNet.SharedFramework.Sdk" was not installed.
/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/common.csproj(52,31): error MSB4236: The SDK 'Microsoft.DotNet.SharedFramework.Sdk/6.0.0-beta.21212.6' specified could not be found. [/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/Microsoft.iOS.Runtime.ios-arm64/package.csproj]
/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/common.csproj(52,3): error : Failed to resolve SDK 'Microsoft.DotNet.SharedFramework.Sdk/6.0.0-beta.21212.6'. Package restore was successful but a package with the ID of "Microsoft.DotNet.SharedFramework.Sdk" was not installed.
/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/common.csproj(52,31): error MSB4236: The SDK 'Microsoft.DotNet.SharedFramework.Sdk/6.0.0-beta.21212.6' specified could not be found. [/Users/builder/azdo/_work/1/s/xamarin-macios/dotnet/package/Microsoft.iOS.Runtime.iossimulator-x86/package.csproj]
make[1]: *** [nupkgs/Microsoft.tvOS.Runtime.tvossimulator-x64.14.5.100-ci.pr.gh11868.990+sha.9d25d1f2a.nupkg] Error 1
make[1]: *** Waiting for unfinished jobs....

@spouliot
Copy link
Contributor Author

spouliot commented Jun 8, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build] Tests passed on Build. ✅

Tests passed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

🎉 All 110 tests passed 🎉

Pipeline on Agent XAMBOT-1100.BigSur'
Merge 4016cc5 into 3d9c377

@spouliot spouliot merged commit 7916e74 into dotnet:main Jun 9, 2021
@spouliot spouliot deleted the azdo1339824 branch June 9, 2021 13:21
@spouliot
Copy link
Contributor Author

spouliot commented Jun 9, 2021

/sudo backport d16-10

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Backport Job to branch d16-10 Created! The magic is happening here

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Hooray! Backport succeeded! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=4852658 for more details.

@dotMorten
Copy link
Contributor

@spouliot I might still be hitting this with VS17.1preview and .NET MAUI: https://developercommunity.visualstudio.com/t/remote-deploy-to-iphone-fails-with-packageinspecti/1600912

@spouliot
Copy link
Contributor Author

spouliot commented Dec 1, 2021

@dotMorten I'm no longer working for Microsoft. You better file a bug report and link it to this PR. FWIW it'a more likely a similar issue then the same one since there tests were added, in the same PR, for the original problem.

@dotMorten
Copy link
Contributor

@spouliot Thanks and best of luck in your new adventure. Bug already logged (link right above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug If an issue is a bug or a pull request a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants