-
Notifications
You must be signed in to change notification settings - Fork 516
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
macOS app not available for testing in TestFlight #16189
Comments
I don't think the duplicated entitlements are the problem (they're not really duplicated, because the come from different executables, and that's an expected difference in .NET). However, I wonder if it's because you're missing the |
Hi @tipa. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@rolfbjarne there is indeed a difference with the |
I also tried to add the |
I can reproduce this, it seems related to the In any case, you should be able to stop us from adding the <Target Name="RemoveCreateDump" BeforeTargets="_ComputePublishLocation" AfterTargets="ComputeFilesToPublish">
<ItemGroup>
<_CreateDump
Include="@(ResolvedFileToPublish)"
Condition=" '%(ResolvedFileToPublish.Filename)' == 'createdump' And
'%(ResolvedFileToPublish.Extension)' == '' And
'%(ResolvedFileToPublish.AssetType)' == 'native'
"
PublishFolderType="Assembly"
/>
<ResolvedFileToPublish Remove="@(_CreateDump)" />
</ItemGroup>
</Target> @tipa can you try that and see if it works? |
Note to self: the problem is that the |
Does the .NET 8 milestone mean that I should not expect to be able to test my .NET 6 macOS app via TestFlight before end of 2023 and better downgrade to legacy Xamarin? |
@tipa the workaround didn't work for you? |
At least for now (5 hours after upload) the app is still stock in the "Processing" status. So that's different from going to "Not available for Testing" but usually the processing doesn't take as long and my apps become available in TestFlight maybe 20 minutes after I uploaded them. |
I uploaded another build and this one it works and the app became available to test. Thanks for the workaround! |
Note: this issue duplicates dotnet/runtime#83613 but in the right repo |
This might be relevant:
|
…n#16189. We can't use the entitlements for the main executable as-is for the createdump executable (that brings in entitlements that are only valid for the main executable) so implement logic to compile entitlements for createdump separately, and only include a very specific list of entitlements (ones that are listed as required by .NET + one that the App Store complains about if it's not there). This also means adding support to the CompileEntitlements task to not embed any default entitlements or entitlements from the provisioning profile. Also add a property to opt out of bundling createdump in the app bundle (`BundleCreateDump`). Fixes xamarin#16189.
…perty. Make it possible to not bundle 'createdump' by setting BundleCreateDump=false. Ref: xamarin#16189
I looked into this, and it seems rather complicated to get <PropertyGroup>
<BundleCreateDump>true</BundleCreateDump>
</PropertyGroup> For the record, this is more or less what I found out:
Also interesting: https://developer.apple.com/documentation/xcode/embedding-a-helper-tool-in-a-sandboxed-app An alternative approach seems to be to embed the Ref: dotnet/runtime#84864 |
Has this bug been fixed with .NET8? I just updated to .NET8, removed the workaround, built & uploaded a new package using the "Transporter" app. The package was "delivered with warning": Or do we now have to set the new Edit: I just tried to only use the |
@tipa please try again with .NET 8 RC 2 which was just released. Don't set |
Now it works - thanks!! |
Steps to Reproduce
dotnet publish -c Release
)Expected Behavior
App becomes available for TestFlight.
Actual Behavior
The app is not available for TestFlight.
It is worth noting that the entitlements show up twice, which is likely related to this issue: #15632
My other MacOS (legacy Xamarin) apps (which also support both ARM64 and x68) have the entitlements only shown once in App Store Connect and the TestFlight works perfectly fine for them
Environment
These are my current build settings. Are they wrong? It's trial-and-error to find what out what is necessary to get the app building correctly...
Version information
Build Logs
The text was updated successfully, but these errors were encountered: