Successfully reported this slideshow.

Optimize and maintain your project in Xcode.

1

Share

1 of 16
1 of 16

Optimize and maintain your project in Xcode.

1

Share

Download to read offline

Slides from a talk I gave at Nashville CocoaHeads on 7/29/15.

For more information on Nashville CocoaHeads check out this website:
http://cocoaheads.org:8106/us/NashvilleTennessee/index.html

Here is the list of compiler flags I use in my projects and reference in the talk. You can easily copy the whole list, paste them into Xcode since the spaces are separators for the flags.

-Wall -Wextra -Werror -Wconversion -Wundef -Wdeprecated-implementations -Wno-unused-parameter -Wfloat-equal -Wimplicit-retain-self -Wnewline-eof -Wshadow -Wsign-compare

Slides from a talk I gave at Nashville CocoaHeads on 7/29/15.

For more information on Nashville CocoaHeads check out this website:
http://cocoaheads.org:8106/us/NashvilleTennessee/index.html

Here is the list of compiler flags I use in my projects and reference in the talk. You can easily copy the whole list, paste them into Xcode since the spaces are separators for the flags.

-Wall -Wextra -Werror -Wconversion -Wundef -Wdeprecated-implementations -Wno-unused-parameter -Wfloat-equal -Wimplicit-retain-self -Wnewline-eof -Wshadow -Wsign-compare

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

Related Audiobooks

Free with a 14 day trial from Scribd

See all

Optimize and maintain your project in Xcode.

  1. 1. Optimize and maintain your project in Xcode. A presentation by Bryn Bodayle
  2. 2. What is optimal? Quick compile times Easy maintenance Avoiding crashes Fast and lean apps
  3. 3. We will cover. Compile time optimization Compiler warnings and errors Dependency management
  4. 4. Optimize compile time. Use and eliminate warnings Use asset catalogs Clean out the garage
  5. 5. Use asset catalogs. Migration tool is provided Easy management and configuration Compiles assets into binary format Supports slicing in Xcode 7
  6. 6. Clean out the Garage Extract IPA to check Remove unused code and libraries Remove unused assets
  7. 7. Use and eliminate warnings. Use lots of compiler flags Disable at a small scale Order of compiler flags matters Fix every warning
  8. 8. Use these compiler flags. -Wall -Wextra -Werror -Wconversion -Wundef -Wdeprecated-implementations -Wno-unused-parameter -Wfloat-equal -Wimplicit-retain-self -Wnewline-eof -Wshadow -Wsign-compare For reference: http://f***ingclangwarnings.com
  9. 9. 1. Disable inline. #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" [self performSelector:selector]; #pragma clang diagnostic pop
  10. 10. 2. Disable per file.
  11. 11. 3. Disable project-wide.
  12. 12. Order of compiler flags matters.
  13. 13. Fix every warning.
  14. 14. Use CocoaPods. Stop it with submodules Promotes healthy reuse Easy version management
  15. 15. Questions?
  16. 16. Credits Stopwatch by Edward Boatman from the Noun Project Presenter by Björn Andersson from the Noun Project Garage by Lloyd Humphreys from the Noun Project

×