gpt4 book ai didi

ios - 在 XCode 6.1 中工作的代码在 XCode 6.3 中不起作用

转载 作者:行者123 更新时间:2023-11-29 02:13:38 25 4
gpt4 key购买 nike

如果我在我的 Xcode 中编写代码从一个 UIViewController 导航到另一个,那么它将给我错误“Interface Builder 文件中的未知类 xxx”。

但如果我执行相同的代码或使用相同的项目文件并清理构建并在下一个 mac 中运行,它将运行,没有任何问题。将项目文件带回我的 PC,它在我的 PC 上运行良好。

我曾多次尝试卸载和安装 Xcode 的最新 Beta 版以及休息和模拟器并重新启动 PC。但是我使用 Xcode 编写的代码的错误没有改变。

我如何在我的电脑上编码或让我的电脑运行我在我自己的电脑上编写的代码,而不是在另一台电脑上运行并将其取回。

我正在使用:- 操作系统 x 10.10.2,xcode 6.3

谢谢。

最佳答案

Apple 随 Xcode 6.3 一起发布了 Swift 1.2。参见 https://developer.apple.com/swift/blog/?id=22

他们还添加了迁移工具:

Swift 1.2 is a major step forward for both the language and the tools. It does include some source-incompatible changes that require updates to your code, so Xcode 6.3 includes a migrator to help automate the process. To begin the migration, click the Edit menu, then choose Convert > To Swift 1.2...

目前,6.3 仍处于测试阶段。

希望对您有所帮助:)

关于ios - 在 XCode 6.1 中工作的代码在 XCode 6.3 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29005550/

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