Questions tagged [ios-app-extension]

App extensions are a feature introduced in iOS 8 that allows apps to extend their functionality and become available to users while they're using other apps. Extensions are created to do a specific task, such as enabling sharing Safari pages through your app, or to display an interface in Notification Center for your app.

App extensions are a feature introduced in iOS 8 that allows apps to extend their functionality and become available to users while they are using other apps.

Extensions are created to do a specific task, such as enabling sharing Safari pages through your app, or to display an interface in Notification Center for your app.

722 questions
93
votes
16 answers

How to debug iOS 8 extensions with NSLog?

- (void)viewDidLoad { NSLog(@"%s", __func__); // ... } in viewDidLoad of an iOS 8 extension. the NSLog outputs nothing in Xcode. NSLog works as usual in the container app though. How can I get output from debug messages from an extension?
ohho
  • 50,879
  • 75
  • 256
  • 383
91
votes
26 answers

Xcode 6 error: "Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier."

I'm trying to build an extension project and Xcode keeps throwing the error in subject. Needless to day, the extension's bundle id is prefixed with app's bundle id. Product Name: ro.chitza.TodayPics.$(TARGET_NAME:rfc1034identifier I've tried…
chitza
  • 1,434
  • 2
  • 11
  • 20
91
votes
6 answers

Communicating and persisting data between apps with App Groups

iOS 8 revealed a new API yesterday concerning App Groups. It was kind of messy before to share data and communicate between apps and I believe that's precisely what App Groups is intended to correct. In my app I have enabled App Groups and added a…
streem
  • 9,044
  • 5
  • 30
  • 41
84
votes
4 answers

Use Cocoapods with an App Extension

I'm trying to build a photo App Extension in Xcode 6 Beta-6 that uses cocoapods libraries. The bridging header that Xcode creates for the photo extension can't see anything from cocoapods. For example: #import results in the…
DanBlakemore
  • 2,306
  • 2
  • 20
  • 23
81
votes
6 answers

Sharing UserDefaults between extensions

Creating a Today widget and I am using UserDefaults(suiteName:) to persist some data. In the main application I am using UserDefaults.standard(). This can't be read (or can it?) by the extension which is why I use the suiteName: constructor. Data…
70
votes
15 answers

Today Extension Failed to inherit CoreMedia permissions from

I am trying to add a Today Extension in Swift to my Objective-C app. I keep getting this message in my debugger log: Failed to inherit CoreMedia permissions from 3005: (null). The number ex. 3005 is different every time. I am reading from…
Shan
  • 3,057
  • 4
  • 21
  • 33
65
votes
8 answers

Sharing data between an iOS 8 share extension and main app

Recently, I've been making a simple iOS 8 share extension to understand how the system works. As Apple states in its App Extension Programming Guide: By default, your containing app and its extensions have no direct access to each other’s…
Oguz Bilgener
  • 755
  • 1
  • 10
  • 17
59
votes
4 answers

Red dot (circle) next to the app name below the app icon on the iPhone Home Screen on iOS 8

What does the red dot (circle) next to the app name below the app icon mean? I added a Today Extension (Widget) to the app. It appears only when I launch the app on the iOS 8, it does not appear on iOS 7 simulator. Even though I removed the…
user5673323221
  • 601
  • 1
  • 5
  • 3
59
votes
5 answers

Today App Extension Widget Tap To Open Containing App

I've implemented a Today widget for my application +Quotes which displays the day's quote within the notification center with the help of these Apple Docs. What I'd like to accomplish is opening the Containing App, in this case +Quotes, when the…
Daniel Storm
  • 18,301
  • 9
  • 84
  • 152
58
votes
9 answers

Warning during archive App with iOS 8 Extension in Xcode 6

I have a problem while archiving my app. I created a new target for an iOS 8 extension. When I archive the app, I receive a warning. The warning is "PBXCp Warning", "warning: skipping copy phase strip, binary is code signed: …
gianpispi
  • 611
  • 1
  • 5
  • 10
57
votes
3 answers

Provisioning profile for Today Widget extension

I am trying to archieve my app for submission however I am running into issues with code signing. Basically I have a Today Widget extension for my app. I am unsure about what I should be setting the provisioning profile as. I assumed that I would…
user3746428
  • 11,047
  • 20
  • 81
  • 137
55
votes
29 answers

Xcode6:Embedded binary is not signed with the same certificate as the parent app

After I add Today App Extension Target,I become impossible to compile project. below is error: 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…
JohnyDgoode
  • 1,533
  • 2
  • 11
  • 19
55
votes
8 answers

iOS extensions with multiple targets

In iOS 8, when we create an app extension, we have to decide which target it is attached to. The extension will have the same bundle ID's prefix as the target. Is there any way to change the target afterward? If my project contains 2 (or more)…
Enzo Tran
  • 5,750
  • 6
  • 31
  • 36
55
votes
17 answers

openURL not work in Action Extension

I add following code: - (IBAction)done { // Return any edited content to the host app. // This template doesn't do anything, so we just echo the passed in items. NSURL *url = [NSURL URLWithString:@"lister://today"]; …
Laurence Fan
  • 1,074
  • 1
  • 11
  • 15
50
votes
3 answers

Today Extension height for iPad much larger than specified

My Today extension needs to have a dynamic height based on the contents the widget is displaying. I was able to achieve this by adding a constraint on my bottom-most element: bottom layout guide's top is less than or equal to the bottom most…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
1
2 3
48 49