I have enough knowledge about Storyboard, now I am using SwiftUI first time, I have already designed 4 screens for my app but now compiler take too much time to build code every time. It is very painful process.
My system is MacBook Pro 2015, with 500GB Flash Drive and 8gb ram.
I am using Xcode 11.1 and Catalina 10.15.1
What can I do so that build time will increase or something else?
Related
I am building/running a relatively simple chat application. Every time I run/build the application, the fans on my MacBook get extremely loud and my computer begins to heat up very quickly. Furthermore the builds are taking a ridiculous amount of time to finish, even after editing just a single line of code.
I opened up activity monitor and noticed that "SourceKitService" was using 100% of the CPU.
Earlier today, I deleted the DerivedData folder for my project, and that still doesn't seem to solve this issue.
How can I fix this?
Try doing a deep clean (Command+Shift+K), deleting derived data, closing Xcode, and restart Mac. That usually helps me. However, when I'm running apps on my 8GB memory Mac some cause the same issue while my 16GB Mac runs them just fine.
I'm developing a react-native application. I used to work on my personal macbook pro for a while and everything was nice and smooth. Once my macbook broke and I switched to use my company's iMac. Now it takes me a very long time only to build on a real iPhone(which was fairly quick previously), but I have no idea why.
I just checked the performance benchmarks of ssds and usual hard drives. Well, it's huge!! And it also answers the TWO or THREE times slower build time on my new machine. (not to mention that iMac uses 5400rpm hard drives, not even 7200s!)
This question already has answers here:
Windows/Linux iOS App Development (Compilation not needed) [closed]
(2 answers)
Closed 8 years ago.
I need to develop iOS apps on windows with coding(using any language), so please tell me how can i start ,what tools needed, what is the requirements for doing this job and what is the restrictions&problems exist in this issue?
iOS development is possible in OS X ONLY, there's no way to do it on Windows (using OS X virtual machine on Windows is technically not legal, but possible).
Even if you create app in PhoneGap/Cordova/Worklight (HTML+CSS+JS), you still need OS X's Xcode to compile it.
First install any virtual machine in your windows .Then you can install mac os . After that you can install xcode, an IDE for developing iOS apps.
Now you are ready to code using xcode, but you need to learn objective-c, only language available to build iOS app(but now there is new language introduced known as swift programming language). But I recommend start by learning objective-c.
Delphi XE6 is a quite smart solution for creating apps for iOS/Andriod/WP/Windows.
Pro:
Easy to learn. I wrote my first iOS game for kids with only 2 day work.
Quick to market. You can write code once and deploy to all platforms.
Con:
As a commercial product, its license fee is remarkable. Upgrade costs money as well.
You still need a Mac to compile code and to deploy.
From my experience, it is not worth it. I have tried a virtual machine on Windows, but it was slow and painful. Get a second hand mac and start learning. I suggest learning the new Swift language, you will be ahead of competition.
You'll need a Windows PC or laptop with any Intel Core "i"-series CPU (go to ark.intel.com and ensure your CPU has "Yes" in the fields IntelĀ® VT-x with Extended Page Tables (EPT) and IntelĀ® Virtualization Technology (VT-x)), and at least 6-8 GB RAM.
Install VMWare workstation, download e.g. "OS X Mavericks 10.9.1 Pre-Installed VMware Image", ensure the virtual machine has 4GB RAM and 2 cores, run the OSX, install xCode, go on with the development. Optionally, disable the paging.
I've been using VMware for a year for iOS development. Thanks to my fast SSD, it works faster then most Apple machines I saw.
I am using Xcode 5. When I had Mountain Lion installed, doing a build after a clean took less than 10 seconds for my project. It was extremely fast.
After upgrading to Mavericks, doing a build after a clean now takes about 2 minutes for my project. It takes almost one second to compile each source file! The source code is exactly the same as the code before the upgrade, so I know that this problem is definitely caused by the Mavericks upgrade.
Running the top command shows about 15 clang processes during build time. Each clang process keeps switching from the "sleeping" and "stuck" state. So I'm wondering if this issue has something to do with race conditions with the multiple clang processes.
So far I have tried rebooting, and reinstalling XCode.
Edit
Other Info: I'm using the latest macbook pro with retina display with 16GB of ram. I also have file vault enabled. Will try disabling it to see if it changes performance.
I've solved the problem. Turns out it was my virus scanner McAfee. It must have been scanning every source file before letting Xcode compile it. The weird thing is the virus scanner was taking up almost no cpu cycles.
When I code in Xcode on my MacBook Pro at work, autosuggestions seem to take 6-8 seconds. On my MacBook Air at home, they appear instantly.
Is there any reason for this? I don't see anything in Xcode's preferences that would cause this:
Any ideas here?
I have a shiny new iMac at work for development. It's an i7 proc, 8 GB memory. Indexing (and the things that go with it, like code sense or quick documentation) was taking a very long time (5 minutes for ~600 files). So was compilation.
The culprit turned out to be the corporate antivirus' on-access scan. I disabled on-access scanning and indexing dropped to around 5 seconds for the same number of files. Might be worth a shot if you have permissions to change antivirus settings.
On one of the developer blogs I follow (I can't find the link at the moment), the author said he regularly has to delete the DerivedData folder for his projects because of corruption that causes issues like this. Give that a try and see if it helps.
It's not SSD vs. non-SSD. My 2009 MacBook Pro shows suggestions nearly instantaneously.