The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
AppJun

golang/mobile 真好用

  •  
  •   AppJun · Aug 11, 2023 · 3203 views
    This topic created in 1014 days ago, the information mentioned may be changed or developed.
    iOS Swift 生态里找不到靠谱的月亮月相 + 月亮升落的轮子。

    最后找来照去是找了个 go 语言的 repo ( https://github.com/Starainrt/astro

    通过 golang/mobile 转成 iOS xcframework ,整个 xcframework 基础体积消耗 10M+,但是编译出来的影响没这么大。

    非常满意,奔跑着歌颂。
    Supplement 1  ·  Aug 15, 2023
    用到上面说的 go 库的 App 站内地址: https://v2ex.com/t/964739
    7 replies    2023-08-18 11:49:20 +08:00
    simonCN
        1
    simonCN  
       Aug 11, 2023
    xcframework 是包含所有架构的包,具体某个机型上肯定就没这么大了,也可以在上传 AppStore 时手动指定下
    AppJun
        2
    AppJun  
    OP
       Aug 11, 2023
    @simonCN 这我知道的,只是稍微这么提一嘴。

    体积影响差不多是这样:

    DEVICE TYPE: Universal
    DOWNLOAD SIZE: 308 KB -> 1.76 MB
    INSTALL SIZE: 583 KB -> 2.43 MB
    wenjie0032
        3
    wenjie0032  
       Aug 11, 2023
    sing-box 的 android / ios 客户端的核心也是基于原始的 go 核心 用 gomobile 转换的, 看来生产可用

    https://github.com/SagerNet
    cooltechbs
        4
    cooltechbs  
       Aug 11, 2023 via Android
    应该是 Go 的运行时占了空间。。
    lance6716
        5
    lance6716  
       Aug 11, 2023 via Android
    来自 D 版?
    SilenceLL
        6
    SilenceLL  
       Aug 18, 2023
    我们项目之前也玩过,编译 Android 和 iOS sdk ,之前有个问题没解决后面放弃了,就是写入几百 M 的 sqlite 文件的时候容易出问题。当时太急了就没接着看了,
    AppJun
        7
    AppJun  
    OP
       Aug 18, 2023
    @SilenceLL 感觉比较适合小轮子,大轮子可能有点难解决这种问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3602 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 05:01 · PVG 13:01 · LAX 22:01 · JFK 01:01
    ♥ Do have faith in what you're doing.