gpt4 book ai didi

ios - Today-widget 扩展错误 : Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier

转载 作者:行者123 更新时间:2023-11-29 11:37:46 29 4
gpt4 key购买 nike

由于我项目的 react-native 版本 (0.44.3),我正在尝试在版本 0.6.4 中安装包 react-native-today-widget,我能够成功安装包:

yarn add react-native-today-widget@0.6.4
yarn add v0.24.5
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "react-native-today-widget@0.6.4" has unmet peer dependency "react@^16.0.0-alpha.6".
warning "react-native-today-widget@0.6.4" has unmet peer dependency "react-native@^0.44.0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
└─ react-native-today-widget@0.6.4
✨ Done in 2.62s.

安装包后,我还成功运行了react-native link,但是当我运行使用react-native run-ios构建的应用程序时,我得到了以下错误:

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


Embedded Binary Bundle Identifier: .TodayWidgetExtension
Parent App Bundle Identifier: org.reactjs.native.example.testTodayWidget



** BUILD FAILED **


The following build commands failed:
ValidateEmbeddedBinary build/Build/Products/Debug-iphonesimulator/testTodayWidget.app/PlugIns/TodayWidgetExtension.appex
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/testTodayWidget.app
An error was encountered processing the command (domain=IXErrorDomain, code=2):
Failed to set plugin placeholders for org.reactjs.native.example.testTodayWidget
Launching org.reactjs.native.example.testTodayWidget

有人遇到过这个错误吗?对解决方案或解决方法有什么建议吗?

谢谢。

最佳答案

我找到了问题的解决方案,我运行

./node_modules/.bin/bundle-id org.reactjs.native.example.ProjectName.TodayWidgetExtension

在项目根目录中,因为必须为小部件项目设置项目包,并且必须以主应用程序(包含小部件)的 Bundle ID 开头。

这个库运行 script to set Bundle ID对于小部件项目 automatically after installation .

关于ios - Today-widget 扩展错误 : Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48178978/

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