Created
July 10, 2013 06:34
-
-
Save oleganza/5963898 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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