安装辞职的watch os应用程序时出错

时间:2019-05-26 19:49:32

标签: ios watchkit apple-watch

我正尝试通过watch app退出ios app。 像往常一样,我删除_CodeSignature文件夹,并以置备,证书和权利运行codesign。 它完成而没有预期的错误。从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。 该文件的目的是什么?我也应该辞职吗?

1 个答案:

答案 0 :(得分:1)

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

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

因此WK即使是mach-O二进制也不应被辞职。