Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10 build 10A255 requires clean build folder for all changes

After updating Xcode 10 from AppStore, when i add something even one single line, it doesn't apply change to build while i clean project. Is there any trick to prevent this or is it bug.

edit: i'm developing cocoapod, changes in Example app is applied to compile perfect but changes in development pod is require to clean to apply changes.

like image 241
Ali Avatar asked Sep 18 '18 08:09

Ali


People also ask

How do I clean up my Xcode build folder?

To clean the build folder you can use the shortcut Command+Option+Shift+K or Menu Bar → Product → Hold Option Key → Clean build Folder .

How do I use legacy build in Xcode?

If you need it, the legacy build system is still available in Xcode 10. To use the legacy build system, select it in the File > Project/Workspace Settings sheet. Projects configured to use the legacy build system will display an orange hammer icon in the Activity View.

Where does Xcode build output?

It should by located in: ~/Library/Developer/Xcode/DerivedData . Save this answer. Show activity on this post. You can configure the output directory using the CONFIGURATION_BUILD_DIR environment variable.

What build system does Xcode use?

Xcode uses two different compilers: one for Swift and the other for Objective-C, Objective-C++ and C/C++ files. clang is Apple's official compiler for the C languages family. It is open-sourced here: swift-clang. swiftc is a Swift compiler executable which is used by Xcode to compile and run Swift source code.


1 Answers

This is a known issue with the new build system of Xcode 10.

There are radars about this and cocoapods developers are aware of the issue.

In the meantime (because it is not gonna be fixed anytime soon), you can indeed switch to the legacy build system (or clean your build folder each time you want to recompile your example app).

Another option might be to disable cocoapods input/output paths, but it is not recommended.

Please note that switching the Compilation Mode build setting from Incremental to Whole Module will in fact not work as intended.

For more information about this you can check the following issues : https://github.com/CocoaPods/CocoaPods/issues/7966 https://github.com/CocoaPods/CocoaPods/issues/8073

like image 141
thibaut noah Avatar answered Oct 19 '22 22:10

thibaut noah