iOS 8 Today Extension not working on device

后端 未结 8 1982
我在风中等你
我在风中等你 2021-02-20 10:10

When I run my Today Extension on the simulator everything works fine and it displays the following as expected:

\"en

相关标签:
8条回答
  • 2021-02-20 10:32

    Since you didn't share any piece of code, I cannot help you with a specific answer. Please try to debug your widget by using following steps Debug->Attach to Process->(select your widget from the menu) and debug your viewdidload viewwillappear and - (void)widgetPerformUpdateWithCompletionHandler:(void (^)(NCUpdateResult))completionHandler methods. Hope it helps.

    0 讨论(0)
  • 2021-02-20 10:35

    Few points to remember while using app extensions

    • Bundle Identifier for the target extension should be com.companyName.AppName.ExtensionName

    • You need to have separate AppID for the target extension, with identifier specified as com.companyName.AppName.ExtensionName and create provisioning profile with this AppID.

    • Also, the appGroupID created should be embedded in both the AppIDs(for application as well as extension).

    0 讨论(0)
  • 2021-02-20 10:35

    In my case I set preferred content size and it is starting working on device

    self.preferredContentSize = CGSizeMake(UIScreen.mainScreen().nativeBounds.width, 100.0)

    0 讨论(0)
  • 2021-02-20 10:40

    I found out that I was accessing my app group with the wrong suitename. Just make sure you access the app group with "group.something.something" not just "something.something"

    0 讨论(0)
  • 2021-02-20 10:40

    I found the solution for my case. I just had to specify arm64 as valid architecture for the widget target.

    On the Widget Target

    Build Settings > Valid Architectures

    I was having just armv7 and armv7s. I added arm64 and it worked like charm in my 5s device

    0 讨论(0)
  • 2021-02-20 10:44

    Make sure extension target version

    Please make sure your extension target version is correct. Xcode'd give you the highest version by default such as 8.3, and if your iOS version is lower than it, Xcode'd give your a crash.

    0 讨论(0)
提交回复
热议问题