0

I want to build an iOS app that can receive images from photo library. So I registered the document type public.image (also tried with public.jpeg or public.png) in Xcode. But if I click on share in the photo library the app doesn't show up as a receiver. If I do the same in files app, the app is show in the UIActivityController and I can receive the image. Is there a special permission needed or what can I do to make it work straight out of the photo library?

info.plist:

<?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">
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>image</string>
        <key>CFBundleTypeIconSystemGenerated</key>
        <true/>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.jpg</string>
            <string>public.content</string>
            <string>public.image</string>
        </array>
    </dict>
</array>
</plist>

I tried different variants of the plist and different kind of apps projects ( document based and not)

is there something new in iOS16, because some time ago I had an other project and it works just fine. (iOS 14 I think, not sure)

0 Answers0