我有一个具有今日扩展的目标。一切正常,除非我尝试创建存档以上传到商店。
错误如下:
No module named "Haneke"
此错误来自 Today Extension,它在模拟器上显然可以正常工作,但在存档时会出错。
我按照 Haneke github 页面上的说明进行操作,如下所示:
1- Drag Haneke.xcodeproj to your project in the Project Navigator.
2- Select your project and then your app target. Open the Build Phases panel.
3- Expand the Target Dependencies group, and add Haneke.framework.
4- Click on the + button at the top left of the panel and select New Copy Files Phase. Set Destination to Frameworks, and add Haneke.framework.
5- import Haneke whenever you want to use Haneke.
我第一次安装 Haneke 时,我只在目标上安装,没有今天的扩展。然后,我对今天的扩展做了同样的事情,但错误仍然发生。我已经尝试删除 DerivedData 文件夹中的所有内容。
同样,在模拟器上一切正常,但问题出在存档时。
有任何想法吗?