Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 02 2016 16:31
    @chamons banned @IfErrThrowBrick_twitter
pm64
@pm64
Did anyone attend Build this year and receive a "Microsoft employee store discount from Microsoft Build" email? I can't tell if this is spam/fraud or not.
The email comes from the domain "microsoft.regsvc.com" and links to a web site under the domain "store.ecompanystore.com"
Jeffrey Stedfast
@jstedfast
there is a legit Microsoft store at store.ecompanystore.com
but I do not know if the email you got was spam or not
(s/spam/legit/)
Romil
@theromie
Error MT2002: Failed to resolve "AuthenticationServices.IASAuthorizationControllerDelegate"
gonzobrains
@gonzobrains
@pm64 I attended and did not get that email.
@dalexsoto Why are the Xamarin.iOS versions available to VS 2019 Windows not in sync with VS 2019 Mac? It seems that Mac is ahead, causing my Windows machine to always want to downgrade when it connects to the Mac.
Alex Soto
@dalexsoto
mmm interesting, they should be in sync, what version do you see on Windows?
gonzobrains
@gonzobrains
It depends on whether I use VS 2019 or 2019 Preview. I just installed the latest VS 2019 updates and it wants to install Xamari.iOS 13.18.2.1 whereas my Mac installed 13.20.0.22. I know it went up from .20 to .22 because I'm on Preview with the Mac, mostly because I'm working with an MS support engineer to get storyboards working again. Otherwise I wouldn't want to use Preview at all on either platform.
I just installed VS 2019 v16.6.2 a few minutes ago.
Alex Soto
@dalexsoto
Make sure you are using Visual Studio 2019 version 16.6.1/2 both should serve Xamarin.iOS 13.18.2.1 which is the latest stable release
which matches the one available in Visual Studio For Mac stable
As for 16.7 Previews it should be serving Xamarin.iOS 13.20.0.22 on both windows and mac
So if you want to keep them in sync you would need to have both windows and mac in the same preview channel
or both in stable
Alex Soto
@dalexsoto
That said IIRC if you just hit cancel in the pair dialog on windows that prompts you to install a different Xamarin.iOS it will just connect to it anyways and may or may not work fine, it is an unsupported configuration since they should always be in sync.
gonzobrains
@gonzobrains
okay, I'm reverting to stable Mac and it looks like it will install 13.18.2.1
Ideally, I would like to keep everything in sync and stable but we are in the middle of diagnosing Visual Studio bugs and have been asked to try the preview versions.
Romil
@theromie
How can i add apple account in VS 2019 as i have enabled Two step verification
where as in xcode it allow to select call or text option where as no feature is available in VS for mac
gonzobrains
@gonzobrains
@dalexsoto I am in a position now where I have to share a cloud mac with multiple developers. Is there a way I can install Xamarin.iOS and VS 2019 Mac in each developer's user application folder so as to isolate dev environments and avoid conflicts?
Alex Soto
@dalexsoto
Not that I am aware of
gonzobrains
@gonzobrains
would there still be problems with concurrent SSH connections? so far we are able to share the mac as long as only one developer connects at a time.
Alex Soto
@dalexsoto
About that please post your question on https://gitter.im/xamarin/VisualStudio
I am not sure about the answer to that one :smile:
juepiezhongren
@juepiezhongren
@dalexsoto hello, is there any progress for swiftui binding?
Chris Hamons
@chamons
There has not been much progress on that front, and give Xcode 12 just hit Beta 1 I suspect we’ll have our hands full w\ that for awhile
The general tool to bind swift has had significant progress though, but that isn’t SwiftUI specific (or targetted)
juepiezhongren
@juepiezhongren
i just wander if swiftui instance is simply stack allocated (i cant believe) or heap boxed
Damian Mehers
@DamianMehers
@chamons is there any way for me to use Swift in a WatchOS app that calls into my Xamarin .NET code? If I could drive from Swift but reuse my .NET code then I’d still be able to benefit from creating a NetStandard library that I can reuse across all my platforms which I currently do. The Embedinator 4000 project seems to have lost momentum ...
If you decide that SwiftUI can’t map effectively to .NET then an alternative would be to let me at least embed .NET code into a Swift/SwiftUI app and invoke it
Csaba8472
@Csaba8472
@chamons I'd like to know this too, I tried the other way, binded a swift library which contained swiftui views, it worked on iOS but didn't work on watchOS
David Ortinau
@davidortinau

working in Swift/SwiftUI and .NET in the same project is on our radar to be being further investigated, primarily for WidgetKit and App Clips. The same concepts could be applied to watchOS.

The Embeddinator experiment is one idea, but as you note it's not actively in development and is a complex solution. Another solution is to initially offer the build/bundling of the Swift artifact (the watch app for example) with the .NET app for iOS, and provide a communication solution for passing messages between them.

Chris Hamons
@chamons
I’ll be sure to poke you folks if/when we have news. Would either of you be interested in opening an issue at https://github.com/xamarin/xamarin-macios/issues/new with details on your specific use case (SwiftUI, swift-only extensions, etc)
Damian Mehers
@DamianMehers
@chamons I'll try to draft something and pass it by you to see if it would help as an issue. I suspect I'm an edge-case. But then a lot of people are, each just in their own way.
kiddailey
@kiddailey
Silly question and apologies in advance - I've found and fixed an issue that includes minor changes to both the root Xamarin.MaciOS repository and the Xamarin.MacDev submodule and trying to figure out how to handle submitting the pull request(s). I assume that I should issue one on MaciOS and one on MacDev and cross-reference them in the descriptions. Is this correct? Thanks!
Rolf Bjarne Kvinge
@rolfbjarne
first create one in the Xamarin.MacDev submodule
then create the one in xamarin-macios once the first one has been merged
kiddailey
@kiddailey
Awesome, thanks!
juepiezhongren
@juepiezhongren
@davidortinau , do u mean that "call from native to .net " abilities r in development? .net6?
Chris Hamons
@chamons
Hey @DamianMehers @Csaba8472 - Super early work suggests we can embed arbitrary iOS extensions (written in Swift) into a Xamarin.iOS main application
I’ve got a PR up suggesting a possible extension point
However, it would involve some other party (json file, web server, shared uidocument/cloudkit data) shoving the data between C# iOS app and Swift extension
I think using something like Embeddinator would be difficult to make work to the level of reliability needed here
I’m poking you both since you expressed interest and concerns
Damian Mehers
@DamianMehers

@chamons sounds like a clean workaround, but since my main Xamarin platform is WatchOS, I personally would need support there too ... from what you are saying would I be right in assuming that the extension and the main app could run at the same time, and you'd use a IPC mechanism to communicate?

I've been all-in on Xamarin since 2012, but I'm looking seriously to moving to Swift/SwiftUI on Apple platforms because I can't do some things such as SwiftUI/complications on WatchOS. I was recently taken aback when I found I could not use RealityKit with Xamarin at one of my consulting clients (I'd created a scene in Reality Composer and wanted to export it as a .reality file and use it from Xamarin). I know I am not typical because WatchOS is where 90% of my app sales are (Android, Tizen, WearOS, UWP, xBox and MacOS are the other platforms I support, using Xamarin and a NetStandard library to share almost all my code https://www.youtube.com/watch?v=TOaJ1R4eLSw

There are other factors - when I started, C# was so far ahead of Objective C that it was a no-brainer. Swift is definitely behind C# (IMO - e.g async/await), but not too far behind. I'm also worried that Microsoft won't be able to track new APIs/technologies that are exposed purely in Swift/SwiftUI - I can't rely on doing everything from C# that can be done natively - I used to push that when selling Xamarin a few years back.

I'm not saying Microsoft would be wrong to stop updating support for WatchOS, I'm just an unintended casualty, and I can live with that. Swift/SwiftUI would be "as well as" .NET/C# not "instead of"

Damian Mehers
@DamianMehers
I've just checked out your pull request - I'd assumed (incorrectly) that you were allowing a C# extension to be embedded in a Swift iOS app, so that I could re-use my C# business logic from a Swift app, meaning I could do all the Swift/SwiftUI stuff in my main app, but still re-use a C# library/business logic/engine.
Damian Mehers
@DamianMehers
I thought there might be a generic extension type that I had not come across that just contained code.