简体   繁体   English

Xcode 4 跳过将应用程序复制到设备/模拟器

[英]Xcode 4 skips coping app to device/simulator

Whenever I attempt to run the debug version of my app, Xcode (4.0) compiles successfully, skips copying and just runs the old version.每当我尝试运行我的应用程序的调试版本时,Xcode (4.0) 编译成功,跳过复制并运行旧版本。 However if I clean first, Xcode copies just fine...但是,如果我先清理,Xcode 复制就好了......

No relevant warnings, I triple checked the project and target build settings.没有相关警告,我三重检查了项目和目标构建设置。 Skip install is set to NO on main project and targets, all dependency projects have skip install set to YES.跳过安装在主项目和目标上设置为 NO,所有依赖项项目都将跳过安装设置为 YES。

Any ideas would be very welcome, recompiling every run is very painful.任何想法都会非常受欢迎,每次运行都重新编译非常痛苦。

Xcode's Clean command doesn't clean very thoroughly. Xcode 的 Clean 命令不会非常彻底地清理。 There's still plenty of derived data retained after cleaning, something of which can cause these symptoms.清理后仍然保留了大量派生数据,其中一些可能导致这些症状。 I've had the same problem happen to me, where it kept running a old version of the app.我也遇到了同样的问题,它一直在运行旧版本的应用程序。 To fix it I deleted the app from the simulator and deleted the Xcode derived data for the project.为了修复它,我从模拟器中删除了应用程序,并删除了项目的 Xcode 派生数据。

To delete the derived data, quit Xcode.要删除派生数据,请退出 Xcode。 Locate the derived data in your account Library folder (~/Library/Developer/Xcode/DerivedData/), and delete the folder for this problematical project.在您的帐户库文件夹 (~/Library/Developer/Xcode/DerivedData/) 中找到派生数据,然后删除此有问题项目的文件夹。 Reopen the project in Xcode, and build and run.重新打开 Xcode 中的项目,然后构建并运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM