How to associate CSV file to my app in iOS 7

后端 未结 1 483
闹比i
闹比i 2021-02-15 17:44

Good day, everyone.

I followed these two tutorials line by line, try to associate my app to the csv file (email app attachment), but I after I added these down below cha

相关标签:
1条回答
  • 2021-02-15 18:17

    You're missing the UTI type in your CFBundleDocumentTypes definition:

    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>CSV Document</string>
            <key>LSHandlerRank</key>
            <string>Owner</string>
            <key>CFBundleTypeRole</key>
            <string>Viewer</string>
            <key>LSItemContentTypes</key>
            <array>
                <string></string>
            </array>
        </dict>
    </array>
    

    should be:

    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>CSV Document</string>
            <key>LSHandlerRank</key>
            <string>Owner</string>
            <key>CFBundleTypeRole</key>
            <string>Viewer</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>Damian-s.${PRODUCT_NAME:rfc1034identifier}</string>
            </array>
        </dict>
    </array>
    
    0 讨论(0)
提交回复
热议问题