Since updating to Xcode 9 I am seeing it build the app automatically in the background when I open xib file.
How can I disable this?
Thankfully, you can disable these automatic rebuilds by opening any file in Interface Builder, going to Editor menu and unchecking Automatically Refresh Views. After this change, you'll now have to manually trigger an IB-specific build when you want to see the preview of your @IBDesignable views.
If you want to turn off auto Building your project, click the Project menu and uncheck the Build automatically menu. Also available in the Workspace settings: Windows –> Preferences –> General –> workspace --> uncheck "Build Automatically" box.
Select your app's target in Xcode and select the Capabilities tab. Under the Capabilities tab, set the Background Modes switch to ON and select the “Audio, AirPlay, and Picture in Picture” option under the list of available modes.
If you don't want to use that device for development, select it in the Devices Window in Xcode and deselect it as available for development. That should prevent it from being used for development in the future.
Disabling "Automatically Refresh Views" did the trick (un-check box).
While having a XIB file open go to Editor menu and uncheck that option.
You may need to close Xcode to have current build stop then re-open.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With