【发布时间】:2020-12-04 18:38:30
【问题描述】:
TLDR;我创建了一个 swift 小部件,但现在我无法构建我的颤振应用程序。
我按照本教程创建了一个小部件
https://itnext.io/develop-an-ios-14-widget-in-flutter-with-swiftui-e98eaff2c606
一切顺利,我在 Xcode 中构建,瞧,我有了一个小部件和我的应用程序。 回vscode修改,现在无法build,出现bundle冲突!
Unable to install /Users/monsters/Projects/flutter_time_to_call/my_app/build/ios/iphonesimulator/Runner.app on 45CE9F59-2AC0-494F-B043-C3F1B4E27EFC. This is
sometimes caused by a malformed plist file:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=IXErrorDomain, code=2):
Failed to set plugin placeholders for com.bigmojo.timeToCall
Failed to create promise.
Underlying error (domain=IXErrorDomain, code=8):
Attempted to set plugin placeholder promise with bundle ID com.example.timeToCall.time-to-call-widget that does not match required prefix of
com.bigmojo.timeToCall. for parent
Mismatched bundle IDs.
我已经手动创建了配置文件等...并在 Xcode 中使用了具有“正确”捆绑 ID 的它们,但有些东西一直忽略它们,并生成该 com.example 捆绑 ID... 不知道从这里去哪里!
有人指出,可能我的 info.plist 没有更新,但我检查了,这是相关部分
<key>CFBundleDisplayName</key>
<string>time_to_call_widget</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
我更改了显示名称,但没有任何作用..
Attempted to set plugin placeholder promise with bundle ID com.example.timeToCall.time-to-call-widget
我在整个项目中搜索了 example 这个词,也没有找到任何东西..
我已经看到 cmets 关于它是 Xcode 中的 bundleid 设置,但我已经做了所有我能想到的......
【问题讨论】: