【发布时间】:2011-10-21 14:48:31
【问题描述】:
我正在尝试对我的应用程序进行重大升级。升级太重要了,我其实是从零开始写代码的,新版本中没有包含原始代码库。我只是从旧版本中复制了 *-Info.plist,并更新了 Bundle 版本标识符。
当我尝试从较旧的(当前 App Store)版本升级时遇到问题。当我通过 XCode 在设备上启动应用程序时,我收到消息:
启动可执行文件“应用程序名称”时出错 启动远程程序时出错:无法获取进程 699 的任务。
如果我在终止应用程序后再次尝试运行它,我会在输出窗口中显示以下内容:
2011-10-21 15:40:27.996 Application Name[713:707] Unknown class Application_Name_NewAppDelegate in Interface Builder file.
2011-10-21 15:40:28.013 Application Name[713:707] Unknown class myTabBarController in Interface Builder file.
2011-10-21 15:40:28.019 Application Name[713:707] Unknown class SelectViewController in Interface Builder file.
2011-10-21 15:40:28.037 Application Name[713:707] Unknown class AddDateViewController in Interface Builder file.
2011-10-21 15:40:28.047 Application Name[713:707] Unknown class DisplayViewController in Interface Builder file.
2011-10-21 15:40:28.063 Application Name[713:707] Unknown class AboutViewController in Interface Builder file.
2011-10-21 15:40:28.125 Application Name[713:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICustomObject 0x16cae0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.'
*** First throw call stack:
(0x3200c8bf 0x31d7c1e5 0x3200c5f5 0x35ba1333 0x35ba0e33 0x35b7af19 0x31f6b803 0x31f6c491 0x32d384bf 0x32d39bb9 0x32c72a45 0x32afc227 0x32af6313 0x32ac4921 0x32ac43bf 0x32ac3d2d 0x3206fe13 0x31fe0553 0x31fe04f5 0x31fdf343 0x31f624dd 0x31f623a5 0x32af5457 0x32af2743 0x21b9 0x2178)
这些类实际上是当前版本的一部分,根本不包含在我尝试升级到的新版本中。所以在我看来,升级失败的原因不明。
有没有人对此有任何启示?
【问题讨论】:
-
这种情况是每次发生还是只发生一次?我在运行新版本时也遇到了一些问题,但它真的很少见,第二次启动它运行良好