How to open email attachment in designated App?

You must Login before you can answer or comment on any questions.

From what I have found, I put some codes in info.plist and app is abled to be complied without problems. But, emulator exits at the time of startup.. Any idea?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleURLName</key>
    <string>com.ip.testDavid</string>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>testDavid</string>
    </array>
  </dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
  <dict>
    <key>CFBundleTypeIconFiles</key>
    <array>
      <string>bg.png</string>
      <string>bg.png</string>
    </array>
    <key>CFBundleIdentifier</key>
    <string>com.ip.testDavid</string>
    <key>CFBundleTypeName</key>
    <string>Trans Files</string>
    <key>CFBundleTypeRole</key>
    <string>Viewer</string>
    <key>LSHandlerRank</key>
        <string>Owner</string>
<key>CFBundleShortVersionString</key>
<string>1</string>
<key>CFBundleVersion</key>
<string>1.1</string>
    <key>LSItemContentTypes</key>
    <array>
      <string>public.comma-separated-values-text</string>
    </array>
  </dict>
</array>
</dict>
</plist>

— asked 8 months ago by Jiale He
0 Comments

1 Answer

Accepted Answer

It looks like you've tried to add <key>CFBundleDocumentTypes</key> but instead of just assigning the values that belong to that key, you wrapped all the other values in your plist in an array assigned to that key. Check the plist for another app, you'll see that all the values that you have in that array are supposed to be at the top level, not buried in the values for the document types.

Your Answer

This question has been locked and cannot accept new answers.