1、找到项目里面的info文件加入这段代码
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>public.item</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.item</string>
</array>
</dict>
</array>
参考链接:
https://oomake.com/question/2103430
https://blog.csdn.net/ForeverMyheart/article/details/120184395