-
Notifications
You must be signed in to change notification settings - Fork 515
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
MacCatalyst build on mac results in "Unknown Scheme", but iOS build working fine. #20714
Comments
From @github-actions[bot] on Sun, 09 Jun 2024 18:03:58 GMT Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
From @drasticactions on Mon, 10 Jun 2024 04:08:55 GMT @rolfbjarne Would this be specific to the MAUI tooling? @caliberdigitalllc If you try building a Mac Catalyst app ( |
From @rolfbjarne on Mon, 10 Jun 2024 09:36:36 GMT
I don't think so, if this turns out to be a bug, it would probably belong to xamarin-macios. |
From @caliberdigitalllc on Mon, 10 Jun 2024 10:35:06 GMT
That also went to "Unknown Scheme". I did assign the bundle that matched the certificate of course, that was the only change I made to the dotnet new template that was generated. |
From @caliberdigitalllc on Tue, 11 Jun 2024 11:42:30 GMT Just a ping @drasticactions, this has us pretty blocked up. |
From @drasticactions on Tue, 11 Jun 2024 11:52:27 GMT @caliberdigitalllc This needs to get moved to xamarin/xamarin-macios. This isn't a MAUI UI bug but seems like an underlying tooling bug and can't be fixed here. I don't have the power to do that. @rolfbjarne (Or anyone with that power) Could you please move this? |
@caliberdigitalllc can you try adding this to the Info.plist file for Mac Catalyst: <key>DTPlatformName</key>
<string>macosx</string> It won't solve the "Unknown Scheme" part, but for me it at least lets me distribute the app. |
…archives. * Don't set SolutionName/SolutionPath anymore. Xcode doesn't, and in any case we don't get the solution path when building MSBuild projects anyways, so we weren't setting these values to anything sensible (we'd get "*Undefined*" for some reason). * Set the Architectures array, which Xcode does. This requires passing RuntimeIdentifier(s) to the task, so do that. * Set SchemeName, which Xcode does. This is a partial fix for xamarin#20714.
…yst. Change how we compute DTPlatformName so that it's 'macosx' for Mac Catalyst. The PlatformUtils.GetTargetPlatform returns SdkPlatform for all platforms except Mac Catalyst, where it returns the same as for macOS (i.e. 'macosx'). It also returns a lowercased value, so we don't need to do that either. This is a partial fix for xamarin#20714.
Just keeping this one alive, I'll be testing this idea later today, will update with results. |
This did indeed let me distribute to test flight. So at least there’s that. Perhaps adding that into the default info.plist for preview 6 would be good :-) hopefully you guys can figure out the unknown scheme too. |
Yes, I have a pull request in progresse that fixes this as well. |
…yst. (#20720) Change how we compute DTPlatformName so that it's 'macosx' for Mac Catalyst. The PlatformUtils.GetTargetPlatform returns SdkPlatform for all platforms except Mac Catalyst, where it returns the same as for macOS (i.e. 'macosx'). It also returns a lowercased value, so we don't need to do that either. This is a partial fix for #20714.
Do I have to change anything on my end once Preview 6 comes out with this fix for your unknown scheme fix to take effect? |
No, there are no changes required on your part. |
Note that it's probably not going to be fully fixed in preview 6, only in preview 7. |
From @caliberdigitalllc on Sun, 09 Jun 2024 18:03:29 GMT
Description
When I build my Maui app (.net core 9 preview 4), the iOS build loads into organizer for test flight deployment fine, but the Mac build loads in as "Unknown Scheme".
Steps to Reproduce
My iOS build command is:
dotnet publish -f net9.0-ios -c Release -p:ArchiveOnBuild=true -p:CodesignKey="ACAA1377B9F55A124AF8FB28BB218352AA3DC7B9" -p:CodesignProvision="ad3e7c5a-dcb6-4834-9841-12e2e79b4f81" -p:CodesignTeamId="8DVSMQ7G8N"
Which is working perfect. I get a build I can send to TestFlight, and all is well.
The Mac command, I have tried countless iterations of this command with various parameters being changed based on googling, and no luck.
dotnet publish -f net9.0-maccatalyst -c Release -p:MtouchLink=SdkOnly -p:UseHardenedRuntime=true -p:CreatePackage=true -p:EnableCodeSigning=true -p:EnablePackageSigning=true -p:ArchiveOnBuild=true -p:CodesignKey="Apple Distribution: AlzBetter LLC (8DVSMQ7G8N)" -p:CodesignProvision="0d81ee50-7a46-44e6-8f61-5671fa4a92fa" -p:CodesignTeamId="8DVSMQ7G8N" -p:CodesignEntitlements="Platforms/MacCatalyst/Entitlements.plist"
My iOS Info.plist (again, this build works great)
LSRequiresIPhoneOS UIDeviceFamily 1 2 UIRequiredDeviceCapabilities arm64 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UILaunchStoryboardName AlzBetterAI XSAppIconAssets Assets.xcassets/appicon.appiconset CFBundleIdentifier com.alzbetterai.app CFBundleShortVersionString 2.0.0 MinimumOSVersion 15.0 NSMicrophoneUsageDescription This app requires access to the microphone to provide voice interaction features. NSCameraUsageDescription This app requires access to the camera to capture photos and videos for app features.versus my mac info.plist:
Link to public reproduction project repository
No response
Version with bug
9.0.0-preview.4.10690
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
I get no errors. The build comes out successfully with no warnings provided. I see the .pkg file in the release folder.
Copied from original issue dotnet/maui#22942
The text was updated successfully, but these errors were encountered: