Macos 13 用 xcode 15 调试 ios 17 .4

Macos13.6.6 ventura 如何使用xcode 15.2 日志调试真机 iphoneXR 最新系统 ios 17.4

  • 版本准备:

    1. xcode: Version 15.2 (15C500b)
    2. macos: 13.6.6 (22G630) ventura(从13.0升级上来的)
    3. 手机iphoneXR OS 17.4
  • 方案

    1. 官方xcode 和 macos系统关系: https://developer.apple.com/support/xcode

    2. 根据macos系统下载xcode版本 推荐15系列: https://xcodereleases.com/alpha.html
      Xcode 15.2 Release

      IOS 17后已经不支持 device support 最新的xcode包device support只是16.4, 需要启动xcode15后在单独运行17+的运行环境, 两种运行环境安装

      https://github.com/alibaba/tidevice/issues/337
      按照苹果社区官方人员的说法 https://developer.apple.com/forums/thread/730947 iOS 17 之后不再提供 device support 文件
      3.默认xcode第一次打开后

      1. 在这个位置获取最新的ios 17+支持
        在这里插入图片描述
      2. 由于这边最高支持17.2
        安装完后需要去官网获取 17.4的dmg运行环境:
        https://developer.apple.com/download/all/
        iOS 17.4 Simulator Runtime
        在这里插入图片描述
        先下载红色的 iOS 17.4 Simulator Runtime.dmg
        然后去安装该17.4环境即可:
        选中需要安装17.4的xcode, 然后模拟第一次运行(不模拟的话需要手动点下载17.2的包在上一副xcode的设置图), 最后把刚下载的iOS 17.4 Simulator Runtime.dmg地址用xcrun simctl runtie add xxx17.4.dmg即可
        xcode-select -s /Applications/Xcode-beta.app
        xcodebuild -runFirstLaunch
        xcrun simctl runtime add “~/Downloads/watchOS 9 beta Simulator Runtime.dmg”
        在这里插入图片描述

    3.run跑起来又发现奇奇怪怪的问题
    The operation couldn’t be completed. (OSStatus error -10814.)在这里插入图片描述
    运行不了的话(已经添加了信任该app了)
    只能使用最终如标题所说的(profile的)日志调试大法了(至少解决debug的燃眉之急…)
    在这里插入图片描述
    在这里插入图片描述
    至此 勉强解决 macos13 用 xcode15.2 日志调试最新的17.4 iphoneXR机子
    (心累, 差点想升级 macos14 sonoma了, ps 有解决OSStatus error -10814.可以@下我, 虽然信任该app还是无法直接run调试,只能安装)

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值