Я создал небольшой виджет, следуя этому руководству.
https://itnext.io/develop-an-ios-14-wid ... 8eaff2c606
Все прошло нормально, Я построил Xcode и вуаля, у меня был виджет и мое приложение.
Вернулся в vscode, чтобы внести изменения, и теперь я не могу собрать и получить конфликт пакетов!
Код: Выделить всё
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.
Не знаю, куда двигаться дальше!
Было указано, что, возможно, мой info.plist не был обновлен, но я проверил, и это соответствующая часть.
Код: Выделить всё
CFBundleDisplayName
time_to_call_widget
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
Код: Выделить всё
Attempted to set plugin placeholder promise with bundle ID com.example.timeToCall.time-to-call-widget
Я видел комментарии о том, что это настройка Bundleid в Xcode, но я сделал там все, что мог...
Подробнее здесь: https://stackoverflow.com/questions/651 ... de-flutter