Closed roxk closed 1 year ago
Was moving the sample code to shared project, then found the xaml files in maui contain maui specific reference, so cannot use the same xaml unless we do code-gen before build (replacing namespace, etc). To make it work first, will duplicate the sample code.
Note for MAUI doc: For android, would need to add the following to manifest to use custom tab to prevent NRE:
<queries>
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
</queries>
Facing https://github.com/xamarin/xamarin-macios/issues/16223. Can't test right now unless downgrading to an older xamarin.iOS version (it assumes my machine uses xcode 14, which has a breaking change that xcode 13 doesn't understand). Will try the downgrade.
Installing old xamarin.ios for some reason doesn't work. VS for mac still pickup 16.x when I installed 14.x. Perhaps it's a preview thing. Tried to upgrade xcode, but that in turn requires me to upgrade the OS from 12.3 to 12.5. It's not possible to test iOS today.
Found the culprit. Seems net6 onwards (or VS for mac preview) is using Microsoft.iOS.Sdk
. The usual /Library/Frameworks/Xamarin.iOS.Frameworks
isn't used:
Using 6.0.3xx
instead of 6.0.4xx
the ios workload would use older version and thus could build the sample :tada:
Can compile now. Need to add maui sample app.