gpt4 book ai didi

swift - Xcode8 : Swift compile errors when my connected iPhone is the destination

转载 作者:搜寻专家 更新时间:2023-11-01 05:35:52 26 4
gpt4 key购买 nike

当我用模拟器运行我的程序时,它构建并运行时没有错误。但是,当我将目的地更改为已连接的 iPhone 时,会显示一大堆快速编译错误:

  1. 尝试使用前向类“UIViewController”作为“UIActivityViewController”的父类(super class)
  2. 尝试使用前向类“UIViewController”作为“UIAlertController”的父类(super class)

一堆,然后

  1. 无法为未定义类“UIViewController”UINavigationController.h 定义类别还有一堆这些......

我是 Xcode 的新手,无法弄清楚这些错误......

最佳答案

可能是您针对设备和模拟器上的不同 iOS 版本进行编译。这可能会导致编译器针对不同的 Swift 版本进行编译。

关于swift - Xcode8 : Swift compile errors when my connected iPhone is the destination,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40373201/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com