I'm developing share extension for my app. Every thing is fine, but i'm facing one main problem, my app is not in the share menu while sharing from photos app.
Below is the plist of my shared extension.
It's not showing in the list, below is the screenshot:
But when i go to more option, set the switch of my extension off and on, now it is showing in the list, But i need to do it every time, below are the screenshots:
Every time i ran the extension from X-Code, It's not showing the share menu, i need to go to more option, set the switch off and on again, then only it is showing. Can it show every time in the share menu? Is there anything i'm missing in the plist or extra configuration required?
I need your valuable suggestions. Thanks in advance.
Update:
I have checked it in iOS9. It's working fine without any issues.
For anyone having the same problem and not finding a solution, worth trying also to check "Deployment Target" of the extension.
It can be different that the main app and is setup by default when the extension is created.
In my case it was higher than what I had on my device.
This is a bug in iOS. There is no workaround in the current version. File a bug report with Apple and hope that they fix it soon.
我在 iOS 14 Beta 上遇到了这个问题,通过重启设备解决了。
Then just Run the application
Plist
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<dict>
<key>NSExtensionActivationSupportsImageWithMaxCount</key>
<integer>1</integer>
</dict>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.ui-services</string>
</dict>
http://www.appcoda.com/ios8-share-extension-swift/
http://www.appcoda.com/tag/app-extension/
I had encountered with the same problem and fixed it by changing deployment target version for the extension. In my case ios version of the device that was tested was lower than my target ios version for the extension
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.