Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 recompiling complete code every time

Tags:

xcode

ios

With any change in code (though file is not in .pch), complete project recompiles every time.

like image 777
Mahvish Avatar asked Oct 07 '22 13:10

Mahvish


People also ask

Does Xcode 8 support image name completion?

Code completion for images - Xcode 8 have native support for image name completion. Jump Bar - Clicking the Jump Bar, located at the top of every editor pane, you can quickly select what information to view in the Assistant editor.

How to debug memory in Xcode 8?

Jump Bar - Clicking the Jump Bar, located at the top of every editor pane, you can quickly select what information to view in the Assistant editor. Memory Debugging - Xcode 8 also have memory debugging feature which show how memory assigning to every object with a nice graphical representation.

What's new in Xcode 8 for Swift?

Jump to "What's new in Xcode 8.3?" Xcode 8 supports Swift 3 as well as Swift 2.3. A Swift migrator is provided to help upgrade your Swift code to the latest Swift 3 language specifications and SDK requirements. All projects created with Xcode 8 use by default Swift 3.

How do I customize the Touch Bar in Xcode 8?

Xcode 8.2 offers more Touch Bar actions and allows customizing the Touch Bar controls of the following editors and debuggers: source editor, Playground editor, Interface Builder, view debugger, and memory graph debugger. To customize the Touch Bar, open the desired editor and then choose View > Customize Touch Bar.


2 Answers

Update 2017/1/2

This issue has not been resolved at Xcode 8.2.1 (for my project)

How to survive?

Code IDE: Xcode/Atom
Build: xcrun
Debug: Xcode (Control + Command + R)

Update 2016/12/17

This issue has not been resolved at Xcode 8.2.

Update 2016/12/12

Atom to code and command line to build and debug is my choice now. Hope Apple will fix this legit bug soon.

Update 2016/12/04

This issue seem resolved with Xcode 8.2 (beta 2).

But for me its not be resolved, i face this issue even when i use Xcode 8.2. You can give it a try (download Xcode8.2 beta2 here)

Build System • Xcode will not rebuild an entire target when only small changes have occurred. (28892475)


Old answer: This is a work around:

enter image description here "Build Setting" tab -> "C Language Dialect" -> Change it to "Compiler Default".

For reference:

The "C Language Dialect" was set to "GNU99" instead of "Compiler Default". Previously the standard was GNU99 but now its not. At some point Xcode did not migrate the library project settings correctly and so it was set to GNU99. Once I changed it to GNU99 it stopped recompiling all my code every time !

like image 34
Nhat Dinh Avatar answered Oct 10 '22 03:10

Nhat Dinh


Go to Product -> Scheme -> Edit Scheme. Select Build in left side column and uncheck "Find implicit dependencies"

But this flag should remain checked when you are building the project for first time..

like image 22
Madhuri Mane Avatar answered Oct 10 '22 02:10

Madhuri Mane