timsims
V2EX  ›  iOS

新手关于上架多设备适配应用的问题

  •  
  •   timsims · Jun 13, 2024 · 1121 views
    This topic created in 735 days ago, the information mentioned may be changed or developed.

    如图,我最终想上架的是这种一个 app 包含多端的应用

    Screenshot-2024-06-13-at-16-54-21.png

    经过研究,现在有两个选择,Multiplatform 或者 Multi Target ,这也是我有疑问的地方

    Multi Target

    这个方案下,iPhone, iPad, Mac 都是独立的 Targets , 那我能作为统一一个 app 去上架吗?共用一个 bundle identifier 以及内购也共享?

    Multiplatform

    如果选择这个方案,除了大量的 #if os(macOS) #else 以外,还有更好的办法在代码上去组织不同设备的 View 吗?如果多套设备风格差异巨大,我唯一能想到就是在 @main 里 #if os #else

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2621 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:23 · PVG 17:23 · LAX 02:23 · JFK 05:23
    ♥ Do have faith in what you're doing.