ClockHandRotationKit icon indicating copy to clipboard operation
ClockHandRotationKit copied to clipboard

在Widget 中引入该包后,真机打包无法安装widget

Open Shawn-WangDapeng opened this issue 2 years ago • 3 comments

在Widget 中引入该包后,真机打包无法安装widget。 模拟器没有问题,希望得以解决

Shawn-WangDapeng avatar Jan 25 '24 09:01 Shawn-WangDapeng

在Widget 中引入该包后,真机打包无法安装widget。 模拟器没有问题,希望得以解决

无法安装 Widget 应该是找不到 ClockHandRotationKit 这个镜像, 真机单独跑 widget 看看是不是有类似这样的错误:

dyld: Library not loaded: /System/Library/Frameworks/WidgetKit.framework/WidgetKit
  Referenced from: /private/var/containers/Bundle/Application/A3E1AEE4-5849-4DF2-A46A-B5D4678BE710/WDBuyerUniv.app/Frameworks/ClockHandRotationKit.framework/ClockHandRotationKit
  Reason: image not found

hamstudio avatar Jan 29 '24 02:01 hamstudio

我17 16的系统都不行,Xcode15.2

luckycherry avatar Apr 08 '24 03:04 luckycherry

解决了。 添加库的时候要选择主工程(子工程可以引用)

luckycherry avatar Apr 08 '24 04:04 luckycherry