问题标签 [ios-app-group]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
3877 浏览

ios - 应用程序组 iOS 应用程序之间的数据共享

假设我有以下应用标识符com.test.product1,它属于 product1,提供组 ID group.com.test.product1。

我应该将文档共享给具有 com.test.product2的另一个产品,该产品属于 product2 提供 groupid group.com.test.product2。

如何 在所有这些应用程序之间共享一个通用组,例如group.com.test.product ?

0 投票
1 回答
1650 浏览

ios - iOS App Today Widget App Group Entitlement with Keychain Sharing Entitlement,像模拟器-25243这样的设备上的错误(errSecNoAccessForItem)

有一个应用程序一直在使用 Keychain Access 并且工作正常。

添加了 Today Widget,然后添加了 App Group Entitlement。

一切似乎都很好,但现在越来越

尝试使用钥匙串时。

这是在设备上而不是在模拟器中。

由于使用推送通知进行测试而使用设备。

尝试过清理、更新配置文件等。

XCode 6.3.1 迷你 iPad iOS 8.3

0 投票
2 回答
113 浏览

ios - 如何在应用商店更新我的应用?不断收到有效负载错误

我经历了整个申请过程,这绝对是非常累人和忙碌的。我不断收到“无效的 .ipa,应用程序必须在有效负载中”错误。我用尽了所有可能的解决方案,但无济于事,尝试更改 CFBundleversion/将 lsiphoneenvironment 设置为 yes。我只是不知道如何重新生成 .ipa 文件?有没有办法可以删除它并重新完全重新生成它?我在我的应用商店中设置了所有内容,只是这一步阻止了我,因为我无法上传二进制文件或推送更新。除了此处列出的解决方案之外的任何可能的解决方案都很棒:

谢谢!

0 投票
1 回答
691 浏览

ios - 从扩展写入存储在 App Group 容器中的数据库

我在 App Group 容器中存储了一个 sqlite 数据库,以便注册自定义快捷方式。

我可以从应用程序读取/写入它,但不能从键盘扩展程序读取/写入。似乎数据库处于扩展的只读模式。

我正在使用以下代码来访问它:

是否有一种解决方法可以从扩展键盘写入数据库,还是完全不可能?

数据库可从模拟器写入,但不能使用真实设备写入。我想这是因为 MacOS X 和 iOS 上的权限管理方式不同。

0 投票
2 回答
2084 浏览

ios - 如何将带有应用程序组的应用程序上传到 Apple 商店?

我使用 App Groups 功能创建了一个带有 Watchkit 扩展的应用程序。现在我想将此应用程序上传到 Apple 商店。我喜欢这样:

  • 为我的应用程序创建应用程序 ID(例如:com.standardApplication.tictactoe)
  • 使用标识符在 Xcode 中为 IOS 应用和 Watchkit 应用启用 appGroup:“group.com.standardApplication.ticTacToe” 在此处输入图像描述

  • 使用我之前创建的 App ID 在证书、标识符和配置文件中心创建用于开发和分发的配置文件。下载并双击以将其添加到我的 Xcode。 在此处输入图像描述在此处输入图像描述

  • 之后我去 Itune connect 用我的 App ID 和信息制作一个新的应用程序......

  • 之后在 Xcode 和构建设置中,我更改了所有目标(iOS 目标和 Watchkit 目标)的代码签名,如下所示: 在此处输入图像描述

但是当我尝试归档我的应用程序以提交到 Apple Store 时,我收到了这个错误:

我不知道如何解决这个问题,虽然我尝试了一些我知道的方法或搜索谷歌但没有运气,请帮助我。

0 投票
1 回答
458 浏览

ios - App rejected for crash on persistenstore creation

My app got rejected for crash on launch and after symbolizing the crash log i have this:

this means it must have failed here at abort() in my AppDelegate

getting the directory like this:

and the mom like that:

Apples rejection message:

We could not review your app as it crashes on startup.

i personally cannot reproduce the problem.

both an update to my devices and simulators - as well as clean builds run just fine without any issues.

the things i changed in this application was:

  • support for app groups (coredata container is not in the app group container)
  • changed to cocoapods for linking
  • added WatchKit App
  • added Today Extension
  • migrated all views to use AutoLayout (Masonry)

however I am not accessing core data through the app group container, it still only sits on the phone (and should stay there) i am using the app group for something different (pass simple messages through it).

any ideas what might be causing this to crash the app on startup with apples review team?

deployment target is iOS 8.2 (for all the app & extensions)

update

i just manually installed the submitted archive (the original build for the app store submission) to a cleaned device. everything works perfectly. no issues, no crashes.

what else can I Check?

0 投票
1 回答
1111 浏览

ios - 如何创建/使用共享应用程序组容器作为包含应用程序及其在 ios 中的扩展之间的缓存存储

应用程序及其扩展之间的数据共享通过通用的 AppGroup 发生。我可以使用共享应用程序组容器作为持久数据/文件存储。如何创建/使用共享应用程序组容器作为包含应用程序及其扩展程序之间的缓存存储?这甚至可能吗?

0 投票
1 回答
1655 浏览

ios - 在 iOS 应用程序及其扩展程序之间共享的应用程序组容器的最大存储限制是多少

我为我的应用创建了 WatchKit 扩展。两者共享一个通用的应用程序组容器来存储和获取数据文件。

在我的应用程序及其扩展程序之间共享的该应用程序组容器的最大存储限制是多少?

0 投票
1 回答
543 浏览

ios - 删除应用组中的 NSUserDefaults

通常要清除 NSUserDefaults 我会做

如果存储在应用程序组中,我将如何删除 NSUSerDefaults?我为 appDomain 使用什么值?

0 投票
1 回答
1772 浏览

ios - iOS 中 Keychain 和 App 组有什么区别

如您所知,当我们在 iOS 中的两个应用程序之间共享数据时,我们可以使用钥匙串。而iOS8以后,我们也可以使用app组来实现同样的功能;我的问题是钥匙串和应用程序组之间有什么区别,哪个会更好,为什么?