简体   繁体   中英

WatchKit App Won't Load In Simulator

I have been testing my WatchKit app out just fine all day. Just now, simulator stops loading anything into the Apple Watch External Display Window. I have tried changing Simulators, sizes, reset content and settings, quitting Simulator, cleaning the project, restarting computer, but nothing, it simply won't load. It won't even load the spinning circle, it just sits there blank. I get no warnings or error messages, and the Console never activates for any of my NSLogs in code. It says attaching it and it says it is running, but nothing is there. Like I said, everything worked fine 5 minutes ago, and nothing in code changed.

I got this problem randomly and the most effective way to get it working again was to reset the simulator (ie. have the simulator delete the WatchKit App from it's internal iPhone), close it and then 'clean' the last build, rebuild and then run.

I think this beta Apple Watch Kit is still a little buggy so hopefully they will fix this, simulate the native Watch UI and add the complete list of possible interactions.

尝试清除缓存,然后再次启动Xcode。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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