I've recently tried to use Xcode 8 to make iOS apps and to test things in Swift however it is impossible to work on as doing a simple 'print("Hello World")' takes easily over a minute to process to print it to the console, I tried doing regular development as well by creating UI buttons etc. but when I try to compile it, it is too slow to work and that is with simple things. My computer is the Mid 2012 Macbook Pro Non-retina with 4GB of RAM, not a quick computer but I can program in Python without these problems. If anyone knows some solutions please tell me! Thanks.
When you build a project for the first time do it normally (it will take a while like you described)
After the first build Go to Product -> Scheme -> Edit Scheme . Select Build in left side column and uncheck Find implicit dependencies .
This appears to be a well known problem: https://forums.developer.apple.com/thread/62737
"If there's not enough context to decide, the compiler has to go with the conservative choice and record it as cascading."
Same issue for me. I had execute these instructions two times before the app would launch without hanging for a minute.
rm -rf ~/Library/Developer/Xcode/iOS\\ DeviceSupport
rm -rf ~/Library/Developer/Xcode/iOS\\ Device\\ Logs
rm -rf ~/Library/Developer/Xcode/DerivedData
转到窗口/设备和模拟器/取消选中通过网络连接
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.