ios-app-extension

Today Extension Failed to inherit CoreMedia permissions from

∥☆過路亽.° 提交于 2019-11-28 16:10:31
问题 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 NSUserDefaults from within the widget but I am reading/writing in the app itself. The only code in my TodayViewController is this the following: override func viewDidLoad() { super.viewDidLoad() let formatter = NSNumberFormatter() formatter.numberStyle =

Provisioning profile for Today Widget extension

房东的猫 提交于 2019-11-28 15:43:10
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 just use the same profile that I have used for my app, however I get this error: The provisioning profile specified in your build settings (“AppName”) has an AppID of “BundleID” which does not match your bundle identifier “BundleID2”. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center. I can of course click

Why isn't my iOS8 Application Action Extension App Icon showing up?

空扰寡人 提交于 2019-11-28 10:58:50
My app icon is just a grey super ellipse even though I have specified a icon asset catalog in my Targets App Icons and Launch Images. The following worked for me creating a Share Extension, but I believe Action Extension will do the same. Note that in the case of an Action extension, you need a monochromatic version. If you are using an asset catalog for your main application icon, you should be able to get the Extension to leverage that same asset catalog. The key for me was to: Select my extension and tell it to use Asset Catalog. Select the same catalog your main icon is using. The default

ios8 extension and container app how to share data

感情迁移 提交于 2019-11-28 09:21:33
I'm having trouble to share data between iOS 8 extension and container app. I set up the group from develop portal and Xcode, and my entitlements plist both look like: <dict> <key>com.apple.security.application-groups</key> <array> <string>my group id</string> </array> </dict> The suggested solution in apple document to use [[NSUserDefaults standardUserDefaults] doesn't work for me. I've tried the solution by @Santa Claus from this post Communicating and persisting data between apps with App Groups to use [[NSUserDefaults alloc] initWithSuiteName:@"<group identifier>"]; Santa Claus's solution

What is the best way to detect orientation in an app extension?

邮差的信 提交于 2019-11-28 09:13:44
What is the best way to detect a device's orientation in an application extension? I have had mixed results with solutions I've found on here: How to detect Orientation Change in Custom Keyboard Extension in iOS 8? Get device current orientation (App Extension) I have looked at size classes and UITraitCollection and found that the device inaccurately reports that it is in portrait when it is in fact in landscape (not sure if this is OS bug, or I am not querying the right APIs the right way). What is the best method for accomplishing: The device's current orientation when the extension is first

Get device current orientation (App Extension)

点点圈 提交于 2019-11-28 08:22:05
How to get device current orientation in an App Extension, I have tried below two methods but no success. It always return UIDeviceOrientationUnknown [[UIDevice currentDevice] orientation] It shows red message that ‘sharedApplication’ is not available on iOS (App Extension) [[UIApplication sharedApplication] statusBarOrientation]; I also add an observer but it not getting called. [[NSNotificationCenter defaultCenter] addObserver:self.view selector:@selector(notification_OrientationWillChange:) name:UIApplicationWillChangeStatusBarOrientationNotification object:nil]; - (void)notification

Communicating with/opening Containing app from Share extension [closed]

半腔热情 提交于 2019-11-28 06:35:26
Here is what I have tried that has NOT worked: Using openURL to attempt to open the containing app Here is what I have thought of that wouldn't work: Using local notifications to provide a link to the containing app (creating the local notification from the extension) Here are options I am considering: Using a UIDocumentInteractionController and a custom file extension type to provide a link to my containing app (and my containing app only) Starting a "fake" NSURL session to get the following functionality: In iOS, if your extension isn’t running when a background task completes, the system

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

隐身守侯 提交于 2019-11-28 05:11:07
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 cleaning the build folder and rebuilding, no luck. The funny thing is the entire project got built for a few times, but after some code and UI changes it started failing. Even if I create new projects, the same thing happens after about 5-6 builds. Did anyone else encounter this error? Any hints for a solution or workaround? Try a Clean before the Build.

Accessing Core Data SQL Database in iOS 8 Extension (Sharing Data Between App and Widget Extension)

情到浓时终转凉″ 提交于 2019-11-28 03:23:54
Problem: Unable to access application's Core Data database from within a Widget Extension in the Today View. The app itself is able to read and write to the database as per normal under iOS 8, but the extension will fail to create the store, giving the error, unable to write to file. The log is the following: Error Domain=NSCocoaErrorDomain Code=512 "The operation couldn’t be completed. (Cocoa error 512.)" reason = "Failed to create file; code = 2 Widgets are unable to access the NSDocuments directory, which is where one would normally store their database. The solution is to first create an

iOS9 Share Extension can not debug on Xcode

不打扰是莪最后的温柔 提交于 2019-11-27 23:57:07
问题 When I build share extension from Xcode for the real device, Xcode arbitrarily stop debug. But when I launch for simulator, the problem does not occur. Environment Xcode 7.1.1 iOS 9.1 Details When I build share extension, Xcode shows "Finished running MobileSafari.app on iPhone", but Safari does not run. And, The square stop button is arbitrarily gray. So, I launch Safari by myself and choose my extension and post. The debug section does not show anything. Also, URL request is not sent Rails