bitcoin-kmp icon indicating copy to clipboard operation
bitcoin-kmp copied to clipboard

Enable MacOS, WatchOS and tvOS platforms

Open goncalo-frade-iohk opened this issue 3 years ago • 5 comments

Hi.

So I was wondering if there is a chance to enable this in the library. From a look into the library I believe your iOS code doesn't need any change and there is just the need to add this platforms to your build.gradle.kts.

watchOS | watchosArm32, watchosArm64, watchosX86, watchosX64, watchosSimulatorArm64 tvOS | tvosArm64, tvosX64, tvosSimulatorArm64 macOS | macosX64, macosArm64

Have you tried this and is there an issue?

goncalo-frade-iohk avatar Jan 18 '22 10:01 goncalo-frade-iohk

We haven't tried yet, but we would need to make https://github.com/ACINQ/secp256k1-kmp available on these platforms and there may be issues with arm targets.

sstone avatar Jan 19 '22 08:01 sstone

Oh I see. Well iOS is arm64 since a long time, just the iOS simulator was x86_64.

Mac is actually playing catch up at this point with the new M1's.

So if you guys have problems with macosx64 just activating the macosArm64 should work I think (same for Apple TV and Watch OS).

FYI you can also enable the iosSimulatorArm64. As apparently it's not added when you just target 'ios'. I went to do some digging.

goncalo-frade-iohk avatar Jan 19 '22 11:01 goncalo-frade-iohk

If that's a feature that's useful to you, feel free to open a PR for it!

t-bast avatar Jan 19 '22 11:01 t-bast

Perfect will do so :)

goncalo-frade-iohk avatar Jan 19 '22 11:01 goncalo-frade-iohk

Perfect will do so :)

Did you have any luck with iosSimulatorArm64 yet? I have the same issue, converted my KMM project to support it, but now I am stuck being unable to use this project. Not quite sure what the issue is. But probably related to me not understanding the nitty gritty of gradle plays a large role :)

jensmoes avatar Feb 23 '22 16:02 jensmoes

We support macos (x64 and arm64) and iosSimulatorArm64, but we don't have plans to support WatchOS and tvOS.

sstone avatar Aug 22 '24 15:08 sstone