gpt4 book ai didi

objective-c - Finder Sync Extensions 是否需要配置文件?

转载 作者:太空狗 更新时间:2023-10-30 03:26:41 25 4
gpt4 key购买 nike

OS X 10.10 Yosemite 推出 Finder Sync extensions .我无法将它们集成到现有项目中。我有一个现有的组件,我希望扩展程序能够在该组件下运行。该组件不通过应用商店分发,General->Settings下的“Identity->Signing”设置为“None”

在build设置下,我有以下内容:

  • 代码签名身份:开发者 ID 应用程序:
  • 配置文件:无

我阅读了一些关于 distributing apps outside the app store 的信息并且它没有说明任何关于配置文件的内容。

当我使用 Xcode 6.1 beta 2 模板创建 Finder Sync 扩展目标时,它将“常规 -> 身份 -> 签名”设置为无,就像父组件一样。build设置具有以下内容:

  • 代码签名身份:开发者 ID 应用程序:
  • 配置文件:(未设置)

但是,当我构建时,它会显示以下内容:

"No matching provisioning profiles found"

"This product type must be built using a provisioning profile, however no provisioning profile matching the identity “Developer ID Application: [Team Account]” was found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center."

在构建应用程序扩展时是否对配置文件有新的要求?我应该使用其他类型的证书吗?

我在 App Extension Programming Guide 中发现了这个有趣的片段:

To deliver an OS X app extension, it’s recommended that you submit your containing app to the App Store, but it’s not required.

Note: If you distribute an OS X app extension outside of the Mac App Store, Gatekeeper prevents the extension from running until the user opens and approves the containing app. Further, if you code sign with a certificate other than your Developer ID, users must explicitly override Gatekeeper to open the containing app to make your extension available.

来自 Debug, Profile, and Test Your App Extension 的另一个相关片段部分:

Note: You must code sign your containing app and its contained app extensions.

All the targets in your Xcode project must be code signed in the same way. For example, during testing you can employ ad hoc code signing or use your developer certificate, but must use the same approach for all the targets in your project. For submission to the App Store, use your distribution certificate for all the targets.

最佳答案

我在 Apple Dev Forum 中找到了一个提示,这对我有用。解决方案是在应用目标中的嵌入应用扩展构建阶段之前手动退出应用扩展。

enter image description here

关于objective-c - Finder Sync Extensions 是否需要配置文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25900607/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com