diff options
-rw-r--r-- | CopyMailto.xcodeproj/project.pbxproj | 7 | ||||
-rw-r--r-- | CopyMailto/CopyMailto.entitlements | 7 | ||||
-rw-r--r-- | CopyMailto/DefaultURLHandler.m | 1 |
3 files changed, 7 insertions, 8 deletions
diff --git a/CopyMailto.xcodeproj/project.pbxproj b/CopyMailto.xcodeproj/project.pbxproj index 0012db7..26d3983 100644 --- a/CopyMailto.xcodeproj/project.pbxproj +++ b/CopyMailto.xcodeproj/project.pbxproj @@ -102,6 +102,11 @@ D1F170F621402BB000BD08A0 = { CreatedOnToolsVersion = 9.2; ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 0; + }; + }; }; }; }; @@ -267,7 +272,6 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = CopyMailto/CopyMailto.entitlements; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; INFOPLIST_FILE = CopyMailto/Info.plist; @@ -282,7 +286,6 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = CopyMailto/CopyMailto.entitlements; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; INFOPLIST_FILE = CopyMailto/Info.plist; diff --git a/CopyMailto/CopyMailto.entitlements b/CopyMailto/CopyMailto.entitlements index f2ef3ae..0c67376 100644 --- a/CopyMailto/CopyMailto.entitlements +++ b/CopyMailto/CopyMailto.entitlements @@ -1,10 +1,5 @@ <?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>com.apple.security.app-sandbox</key> - <true/> - <key>com.apple.security.files.user-selected.read-only</key> - <true/> -</dict> +<dict/> </plist> diff --git a/CopyMailto/DefaultURLHandler.m b/CopyMailto/DefaultURLHandler.m index 8ce1728..123ad7b 100644 --- a/CopyMailto/DefaultURLHandler.m +++ b/CopyMailto/DefaultURLHandler.m @@ -13,6 +13,7 @@ + (OSStatus)setDefaultURLHandler { CFStringRef scheme = (CFStringRef)@"mailto"; CFStringRef bundle_identifier = (__bridge CFStringRef)[[NSBundle mainBundle] bundleIdentifier]; + NSLog(@"%@", scheme); NSLog(@"%@", bundle_identifier); OSStatus status = LSSetDefaultHandlerForURLScheme(scheme, bundle_identifier); |