Skip to content

Fixed MacOS and iOS projects not building properly - #52

Merged
michael-hawker merged 4 commits into
mainfrom
fix/macos-ios-building
Mar 25, 2022
Merged

michael-hawker merged 4 commits into
mainfrom
fix/macos-ios-building

Conversation

@Arlodotexe

@Arlodotexe Arlodotexe commented Mar 21, 2022 •

Copy link
Copy Markdown
Member

Closes unoplatform/uno#51

  • Overrides the Platform variable with a valid value for the source generators project to allow building again.
  • Adds validation for the override.
  • Reuses the existing PlatformTarget value from the macOS head to define the actual platform.
  • Both iOS and MacOS have been tested and build under Debug and Release mode

@michael-hawker

Copy link
Copy Markdown
Member

Updated unoplatform/uno#43 to rebase off this to see if it resolves in CI too (though checking fix for Uno too, so we'll see if first one builds).

@Arlodotexe

Copy link
Copy Markdown
Member Author

Looks like this resolved *a* problem, but not the whole thing. Visual Studio and MSBuild aren't showing these errors correctly.

Old error message

  MSBUILD : error : Failed to read [D:\a\Labs-Windows\Labs-Windows\Common\CommunityToolkit.Labs.Core.SourceGenerators\bin\iPhoneSimulator\Release\netstandard2.0\CommunityToolkit.Labs.Core.SourceGenerators.dll], Could not find a part of the path 'D:\a\Labs-Windows\Labs-Windows\Common\CommunityToolkit.Labs.Core.SourceGenerators\bin\iPhoneSimulator\Release\netstandard2.0\CommunityToolkit.Labs.Core.SourceGenerators.dll'. [D:\a\Labs-Windows\Labs-Windows\Platforms\CommunityToolkit.Labs.iOS\CommunityToolkit.Labs.iOS.csproj]

New error message

MSBUILD : error : Failed to read [D:\a\Labs-Windows\Labs-Windows\Common\CommunityToolkit.Labs.Core.SourceGenerators\bin\x64\Release\netstandard2.0\CommunityToolkit.Labs.Core.SourceGenerators.dll], Could not find a part of the path 'D:\a\Labs-Windows\Labs-Windows\Common\CommunityToolkit.Labs.Core.SourceGenerators\bin\x64\Release\netstandard2.0\CommunityToolkit.Labs.Core.SourceGenerators.dll'. [D:\a\Labs-Windows\Labs-Windows\Platforms\CommunityToolkit.Labs.macOS\CommunityToolkit.Labs.macOS.csproj]

@Arlodotexe

Copy link
Copy Markdown
Member Author

@michael-hawker This should be ready to give another go

@michael-hawker

Copy link
Copy Markdown
Member

Yup, this builds in the CI now! 🎉🎉🎉

@michael-hawker
michael-hawker merged commit 566d1e4 into main Mar 25, 2022
@delete-merged-branch
delete-merged-branch Bot deleted the fix/macos-ios-building branch March 25, 2022 18:05
Martin1994 pushed a commit to Martin1994/Labs-Windows that referenced this pull request Sep 2, 2023
…suppress-uno-idisposable

Suppress warnings for IDisposable exposed by Uno
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

Successfully merging this pull request may close these issues.

Migrate to Wasm TFM when available from Nuget

2 participants