Is it possible to connect Xamarin ios App to swift watchOS Extension

爱⌒轻易说出口 提交于 2019-12-02 07:11:14

问题


I already have a WatchOSExtension developed under swift, is it possible to connect it to a newely developed xamarin ios project?


回答1:


No, it is not possible to use a Swift extension with a Xamarin app - this also applies to any form of iOS extension.

You will need to redo your extension with Xamarin. Documentation for watchOS can be found here: https://developer.xamarin.com/guides/ios/watch/getting-started/




回答2:


I think the watch extension needs to be compiled into the the app bundle so I dont think this can be done (compile swift code into c#, i may be wrong). They also need references to each other see here.

Its like saying "I have found some swift code can I just put this into my xamarin app and it will work?"



来源:https://stackoverflow.com/questions/42276389/is-it-possible-to-connect-xamarin-ios-app-to-swift-watchos-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!