Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Optimize and maintain
your project in Xcode.
A presentation by Bryn Bodayle
What is optimal?
Quick compile times
Easy maintenance
Avoiding crashes
Fast and lean apps
We will cover.
Compile time optimization
Compiler warnings and errors
Dependency management
Optimize compile time.
Use and eliminate warnings
Use asset catalogs
Clean out the garage
Use asset catalogs.
Migration tool is provided
Easy management and configuration
Compiles assets into binary format
Support...
Clean out the Garage
Extract IPA to check
Remove unused code and libraries
Remove unused assets
Use and eliminate warnings.
Use lots of compiler flags
Disable at a small scale
Order of compiler flags matters
Fix every wa...
Use these compiler flags.
-Wall
-Wextra
-Werror
-Wconversion
-Wundef
-Wdeprecated-implementations
-Wno-unused-parameter
-Wfl...
1. Disable inline.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self perf...
2. Disable per file.
3. Disable project-wide.
Order of compiler flags matters.
Fix every warning.
Use CocoaPods.
Stop it with submodules
Promotes healthy reuse
Easy version management
Questions?
Credits
Stopwatch by Edward Boatman from the Noun Project
Presenter by Björn Andersson from the Noun Project
Garage by Llo...
Upcoming SlideShare
Loading in …5
×

Optimize and maintain your project in Xcode.

396 views

Published on

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

Published in: Software
  • Be the first to comment

  • Be the first to like this

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

×