Skip to content

Instantly share code, notes, and snippets.

@tokorom
Last active August 29, 2015 14:00
Show Gist options
  • Save tokorom/11209159 to your computer and use it in GitHub Desktop.
Save tokorom/11209159 to your computer and use it in GitHub Desktop.
retrive ios keywords
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks
find . -name "*.h" | xargs egrep -o '[-+]\s+\([^/]*;' | egrep -o '[-+]\s+.*' | sort | uniq > method_defines.txt
cd ~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS7.0.iOSLibrary.docset/Contents/Resources/Documents/documentation
find . -name "*.html" | xargs egrep -o '[a-zA-Z][a-zA-Z0-9_]{3,}[a-zA-Z0-9]' | sed '/\//d' | sort | uniq > keyword.txt
find . -name "*.html" | xargs egrep -o '[a-zA-Z][a-zA-Z0-9_:]{3,}:' | sed '/\//d' | sort | uniq > method.txt
cat keyword.txt method.txt method_defines.txt > ios.dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment