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

The "CreateAssetPack" task was not given a value for the required parameter "Source". #20367

Open
rolfbjarne opened this issue Mar 22, 2024 · 0 comments
Labels
enhancement The issue or pull request is an enhancement
Milestone

Comments

@rolfbjarne
Copy link
Member

Repro by applying this diff:

diff --git a/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj b/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj
index 86d408734a..da99e53a0b 100644
--- a/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj
+++ b/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj
@@ -2,6 +2,12 @@
 <Project Sdk="Microsoft.NET.Sdk">
        <PropertyGroup>
                <TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)-ios</TargetFramework>
+               <CodesignKey>Apple Distribution: Luis Aguilera (DPXCPAGVTZ)</CodesignKey>
+               <CodesignProvision>WildCardiOSDistribution</CodesignProvision>
+               <EnableOnDemandResources>true</EnableOnDemandResources>
+               <BuildIpa>true</BuildIpa>
+               <RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
+               <EmbedOnDemandResources>false</EmbedOnDemandResources>
        </PropertyGroup>
        <Import Project="..\shared.csproj" />
 </Project>

and then:

make build -C tests/dotnet/MySimpleApp/iOS

results in:

tools/msbuild/iOS/Xamarin.iOS.Common.targets(569,3): error MSB4044: The "CreateAssetPack" task was not given a value for the required parameter "Source".

binlog:
build-2024-03-22-175439.binlog.zip

Ref: https://developercommunity.visualstudio.com/t/MAUI-Net-Release-build-for-iOS-hangs/10615810#T-N10617287-N10617988

Workaround:

  • Set EmbedOnDemandResources=true (or remove the property).
@rolfbjarne rolfbjarne added the enhancement The issue or pull request is an enhancement label Mar 22, 2024
@rolfbjarne rolfbjarne added this to the Future milestone Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue or pull request is an enhancement
Projects
None yet
Development

No branches or pull requests

1 participant