Questions tagged [ios-extensions]

App Extensions for iOS development.

App Extensions for iOS development. App extensions give users access to your app’s functionality and content throughout iOS 8 and OS X Yosemite.

Starting in iOS 8.0 and OS X v10.10, an app extension lets you extend custom functionality and content beyond your app and make it available to users while they’re using other apps or the system. You create an app extension to enable a specific task; after users get your extension, they can use it to perform that task in a variety of contexts

Source: Apple App Extensions Document

iOS and OS X define several types of app extensions, each of which is tied to an area of the system, such as:

  • Share
  • Today
  • Photo Editing
  • CustomKeyboard
  • File Provider
  • Document Provider
  • Actions
  • Finder Sync

Please refer Here for more information:

350 questions
75
votes
8 answers

How to suppress `warning: linking against dylib not safe for use in application extensions`?

I have a dynamic framework that is shared between an iOS application and an extension. There is some code in that framework that references UIApplication, that is of course, not usable in an extension. Those calls are completely isolated and so I…
Wayne Hartman
  • 18,369
  • 7
  • 84
  • 116
47
votes
2 answers

How to structure a Xcode project with Frameworks, Extensions and CocoaPods

NB: Here is a more abstract and simplified sub-set of this question. With the addition of Touch Frameworks, Extensions and the Apple Watch Xcode 6 projects and workspaces are getting more and more complex. If you add CocoaPods into this mix things…
Richard Stelling
  • 25,607
  • 27
  • 108
  • 188
38
votes
9 answers

ERROR ITMS-90512: Invalid sdk value... 8.2 is higher than maximum allowed value of 10.3?

Trying to upload a binary, which includes a watch app. The error I'm getting (which I wasn't getting a couple days ago) is the value provided for LC_VERSION_MIN_IPHONEOS for the watchkit extension is 8.2 which is greater than the maximum allowed…
Adam
  • 1,486
  • 3
  • 20
  • 35
31
votes
4 answers

How to communicate between iOS App Containing Extension and Extension (not Host App)

TLDR: Is it possible to send realtime messages or notifications between iOS App and it's Extension? I'm writing an iOS App with an extension that are part of the same App Group and share the same CoreData (SQLite database). I can read and write to…
Ludovic Landry
  • 11,606
  • 10
  • 48
  • 80
28
votes
5 answers

How to use Crashlytics with iOS / OS X today view extensions?

Since today extensions run as separated a process I am sure they will not log any crashes out of the box. I assume we need to initialize Crashlytics on the widget separately. E.g. in the viewDidLoad method of the TodayViewController. Is anybody…
martn_st
  • 2,576
  • 1
  • 24
  • 30
24
votes
10 answers

iOS 10 don't call Notification Service Extension

I tried to implement the new Notification Service Extension, but I have a problem. In my NotificationService.swift file I have this code: class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) ->…
just
  • 1,900
  • 4
  • 25
  • 46
19
votes
2 answers

Swift override protocol methods in sub classes

I've a base class that implements an extension that conforms to a protocol as below: protocol OptionsDelegate { func handleSortAndFilter(opt: Options) } extension BaseViewController: OptionsDelegate { func handleSortAndFilter(opt: Options)…
Satyam
  • 15,493
  • 31
  • 131
  • 244
19
votes
2 answers

How can I guarantee unique entries in a Core Data store in a shared app container used by both the host app and an extension?

To ask my question effectively, let's first consider the exact scenario I'm facing: General Setup A host iOS 8 app. One or more iOS 8 extensions (WatchKit, Share, etc.) bundled with the host app. The host app and all extensions share the same Core…
jaredsinclair
  • 12,687
  • 5
  • 35
  • 56
17
votes
3 answers

Warning: unnecessary check for minimum deployment target

I have a Swift class which is linked against several targets with different deployment targets, the main project has iOS 7 minimum requirement and there is an extension with iOS 8 target. Now when I compile project, the compiler throws warning on…
Mousavian
  • 1,435
  • 1
  • 15
  • 23
16
votes
2 answers

How to use Notification service extension with UNNotification in iOS

Apple introduce new extension names "UNNotificationServiceExtension", but how to launch it from push notification ? I read that service extension provide end to end encryption for payload. Which key is required to set payload of push notification…
technerd
  • 14,144
  • 10
  • 61
  • 92
15
votes
1 answer

Provide the caller id for incoming call from my own app

I want to write an App that can identify the phone number of incoming (unknown) calls by looking into a table inside my app (e.g. an SQLite Database Table). I already implemented this in iOS using a Call Directory Extension, but for Android the only…
13
votes
2 answers

iOS Share Extension Grabbing URL in Swift

I'm trying to create an iOS share extension in swift. When the user is in safari and opens the share extension, I want to be able to grab the URL and use it in my app. I know I can put the code below in the didSelectPost() function in the…
xyz123
  • 191
  • 1
  • 3
  • 6
12
votes
1 answer

Is there a way to add `if (iOSApplicationExtension)` condition for `UIApplication.shared`

I'm trying to find a way of adding a condition for checking is an extension target in Framework (not main app). Is it possible relying on #available(iOSApplicationExtension, *) with some parameters adjustments? @objc public extension UIView { …
Nikita Ermolenko
  • 2,139
  • 2
  • 19
  • 41
12
votes
1 answer

iOS Share Extension not displaying/not able to receive URL

I'm having a problem with my app's iOS Share Extension. I have the following code in the Share Extension Info.plist. NSExtension NSExtensionAttributes NSExtensionActivationRule
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
12
votes
5 answers

Always 'Ad Hoc Code Signed' for Embedded Binary Signing Certificate

I have two targets, the main target & an extension target. Now when I'm trying to archive the app, Xcode failed with the following error: error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary…
Jason Lee
  • 3,200
  • 1
  • 34
  • 71
1
2 3
23 24