简体   繁体   English

iOS模拟器不复制代码

[英]iOS Simulator not replicating code

I have come across a strange issue with my simulator (on my iMac).我的模拟器(在 iMac 上)遇到了一个奇怪的问题。 It does not seem to replicate the code I have in Xcode.它似乎没有复制我在 Xcode 中的代码。 Even though if I run the same code on my Mac Book Air it works fine.即使我在 Mac Book Air 上运行相同的代码,它也能正常工作。 I have downloaded it to my iPhone and that works fine.我已经将它下载到我的 iPhone 上,效果很好。 Not sure what I've done.不确定我做了什么。 I am running the app on Xcode 6.4 .我在 Xcode 6.4 上运行该应用程序。 Is it worth just deleting Xcode and then re-downloading ?是否值得只删除 Xcode 然后重新下载?

Launch the iOS Simulator and go to Simulator > Reset Content and Settings...启动 iOS 模拟器并转到模拟器 > 重置内容和设置...

This wipes the simulated iOS device and should clear up any issues.这会擦除模拟的 iOS 设备,并应清除所有问题。

If this does not work, try "Product -> Clean" or "Window -> Projects" - select your project from the left hand side and select delete on the right hand side (alongside Derived Data).如果这不起作用,请尝试“产品 -> 清理”或“窗口 -> 项目” - 从左侧选择您的项目并在右侧选择删除(与派生数据一起)。

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

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