安装 resigned watch os 应用程序时出错

Error during installation of resigned watch os app

我正在尝试通过手表应用退出 ios 应用。 像往常一样,我删除 _CodeSignature 文件夹,运行 codesign 以及配置、证书和权利。 它完成时没有错误,这是预期的。 Bud 在从 Xcode 安装期间收到以下错误:

Executable stub at ... watch.app/_WatchKitStub/WK not signed by Apple
The WatchKit 2.0 app being installed contains an invalid application executable.

_CodeSignature 文件夹附近有 _WatchKitStub,其中只有一个文件 WK。 这个文件的用途是什么?我也要辞职吗?

Apple 期望(部分)以下结构:

MainApp.app
|
+- Watch/
   |
   +- MainAppWatchApp.app/
      |
      +- MainAppWatchApp (WatchKit stub executable -- re-signed)
      +- _WatchKitStub/
         |
         +- WK (WatchKit stub executable -- unmodified)

所以WK不应该辞职,即使它是mach-O二进制。