optimize and maintain your project in xcode
TRANSCRIPT
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
Supports slicing in Xcode 7
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 warning
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
1. Disable inline.
#pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" [self performSelector:selector]; #pragma clang diagnostic pop
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?
CreditsStopwatch by Edward Boatman from the Noun Project
Presenter by Björn Andersson from the Noun Project
Garage by Lloyd Humphreys from the Noun Project