gpt4 book ai didi

iphone - 类 "__ARCLite__"警告

转载 作者:可可西里 更新时间:2023-11-01 04:44:44 26 4
gpt4 key购买 nike

我正在根据文档教程为我的项目实现测试单元。

我在创建将用于“逻辑”测试的项目时选择创建一个测试目标,现在我正在为“应用程序”测试创建第二个目标,只有在第二个目标上运行测试时我才会收到此警告:

Class __ARCLite__ is implemented in both
/Users/.../iPhone Simulator/5.0/.../<AppName>.app/<AppName>
and /Users/.../Build/Products/Debug-iphonesimulator/<AppName>AppTests.octest/<AppName>AppTests.
One of the two will be used. Which one is undefined.

我使用文档指南新创建了目标 Setting Up Application Unit Tests .

同样让我感到惊讶的是,这里、文档或谷歌(除了一些中文网站结果之外)都没有提到这样的“ARCLite”类。

有什么想法吗?谢谢

最佳答案

我不是肯定的,但我的猜测是 __ARCLite__ 类是处理 OS X 10.6/iOS 4 上的 ARC(其中 ARC 不是系统运行时的一部分)的类。就此警告而言,我不会担心;如果您同时编译了应用程序和库,则类应该相同。

关于iphone - 类 "__ARCLite__"警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8556622/

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