Skip to content

Instantly share code, notes, and snippets.

@oleganza
Created July 10, 2013 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleganza/5963898 to your computer and use it in GitHub Desktop.
Save oleganza/5963898 to your computer and use it in GitHub Desktop.
If you tinkered with Info.plist trying to make your document type *actually* display your icon and open in your app, you probably fucked up your machine (restart won't help).
1. Go and remove your types from ~/Library/Preferences/com.apple.LaunchServices.plist
2. Restart LaunchServices: $ /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
3. Check if your types are removed: $ defaults read com.apple.LaunchServices LSHandlers | grep mytype
If they are not removed yet, wait a minute and check again. LS takes time to actually reload.
Clean up your Xcode build and try again. This time created file should get proper association with your app and display a right icon.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment