A simple Flutter project for Share Extesion Demo.
After overwrite
setting in Target: Share Extension
: (git diff sample)
LIBRARY_SEARCH_PATHS
= "";
OTHER_LDFLAGS
= ""; orOTHER_LDFLAGS
= "-ObjC";
Run Target: ShareExtension
& Target: Container App
both works on device.
- Run
Target: Share Extension
on device
ld: '[Project_Path]/ios/DerivedData/Products/Debug-iphoneos/FMDB/libFMDB.a(FMDatabase.o)'
does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting
ENABLE_BITCODE)
- Run
Target: The Container App
on device NOTE: this[CP] Embed Pods Framworks
is same as[ProjectCompare]
.
* Run custom shell script '[CP] Embed Pods Framworks'....
* Validate [Project_Path]/ios/DerivedData/Products/Debug-iphonos/Runner.app/PlugIns/
ShareExtension.appe(in target: Runner)
* cd [Project_Path]/ios
* builtin-embeddedBinaryValidationUtility [Project_Path]/ios/DerivedData/Products/
Debug-iphonos/Runner.app/PlugIns/ShareExtension.appex
-siging-cert [someID]
-info-plist-path [Project_Path]/ios/DerivedData/Products/Debug-iphonos/Runner.app/Info.plist
* error: Embedded binary is not signed with the same certificate as the parent app.
Verify the embedded binary target's code sign settings match the parent app's.
* Embedded Binary Signing Certificate: Not Code Signed
* Parent App Signing Certificate: iPhone Developer: MyName (XXXXX)
This project is a starting point for a Flutter application.
- make sure bundle id on Container APP:
com.yourbundle.id
- make sure Share Extension bundle id:
com.yourbundle.id.shareExtension
(bundle id before last.
must be same as Container App) - make sure Both app & Share Extension enable
App Groups
with group id:group.com.your.goup.id
- ShareExtension /Target/ info.plist,
- Find
NSExtensionActivationRule
:String
:TRUEPREDICATE
. - Update
String
toDictionary
: - If you want Share Url in Browser, add bellow in this Dictionary:
NSExtensionActivationSupportsWebURLWithMaxCount
:Number
:1
- Find
- If you want customise UI for Share Extension UI.
Change MainInterface.storyboard's
ViewController.swift
toYourCustomizedClass
(subClass toUIViewController
)