V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
byte10
V2EX  ›  iPad

ipados/IOS 上运行 macos 应用的可能性分析

  •  
  •   byte10 · 2021-06-14 21:01:00 +08:00 · 897 次点击
    这是一个创建于 1037 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目前 ipad pro M1 出来了,M1 笔记本的性能却得不到完全的释放。本来我打算买了后越狱,然后 vscode 远程到 ipad 服务上进行开发的。但是目前感觉不太可能了。。。

    今天进行验证,把 iphone7 ios14.2 越狱了然后安装了 openssh 后,vscode 远程到手机上,结果报错了:vscode host's architecture is not supported. 原因估计很多吧。

    在 iphone7 上查看内核版本: Darwin 0Iphone310 20.1.0 Darwin Kernel Version 20.1.0: Fri Oct 30 00:34:15 PDT 2020; root:xnu-7195.42.3~1/RELEASE_ARM64_T8010 iPhone9,1 arm64 D10AP Darwin

    macos m1 上内核版本:Darwin doctor-MacBookAir.local 20.4.0 Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:41 PDT 2021; root:xnu-7195.101.2~1/RELEASE_ARM64_T8101 arm64

    两个内核版本看起来就很像,相差的版本不大,但是 2 者的应用程序貌似还是无法很好的兼容。

    使用 macos 上的 jdk8 拷贝到手机上执行:

    dyld: warning: could not load inserted library '/usr/lib/substitute-inserter.dylib' into hardened process because no suitable image found. Did find:
    /usr/lib/substitute-inserter.dylib: mach-o, but not built for platform macOS
    /usr/lib/substitute-inserter.dylib: mach-o, but not built for platform macOS
    dyld: Library not loaded: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    Referenced from: /private/var/root/jdk8/bin/./java
    Reason: image not found
    Abort trap: 6

    上面的问题,我估计是越狱携带的库有问题,后来群里也有人说,即使是 hello world 也不能完全在 ios 上执行,因为大概就是系统的 API 不相同。这个我没法测试,不太会写 hello world 。

    不过在网上找到一个大神的尝试,也是 ios 上运行 macos 的程序,貌似跑起来了。https://worthdoingbadly.com/macappsios/

    不确定是 ios 15,ipados 15,macos12 后,版本是否打通了,如果打通了,底层的应用和库是否能想通?。。上面的大神的实验 有说明 2 者的差异在哪里,如何解决这些问题来做到 ios 跑 macos 软件。

    v 友 有研究过这块的东西吗? ipad os 运行 mac app 不知道啥时候才能落地,感觉年内不太可能了。
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3271 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:13 · PVG 22:13 · LAX 07:13 · JFK 10:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.