【问题标题】:Undefined dictionary in Info.plistInfo.plist 中未定义的字典
【发布时间】:2018-09-04 22:44:33
【问题描述】:

9 月 4 日 18:26:17 MacBook-Pro-77 com.apple.dt.Xcode[315] : installApplication:withOptions:error:: 错误 Domain=IXUserPresentableErrorDomain Code=1 "这个应用程序不能 此时已安装。" UserInfo={NSLocalizedDescription=此应用 此时无法安装。,NSUnderlyingError=0x7fd558a69980 {Error Domain=MIInstallerErrorDomain Code=39 "Appex 包位于 /Users/mrinmaykalita/Library/Developer/CoreSimulator/Devices/4E1C6B5B-2711-47ED-B8B6-27DA419E4609/data/Library/Caches/com.apple.mobile.installd.staging/temp.9nyJrs/extracted/Beam.app/Watch /光束 Watch.app/PlugIns/Beam Watch Extension.appex with id com.bpl.Beam.watchkitapp.watchkitextension 没有定义一个 NSExtension 字典在其 Info.plist 中" UserInfo={LegacyErrorString=AppexBundleMissingNSExtensionDict, FunctionName=-[MIPluginKitPluginBundle overlaidInfoPlistWithError:], SourceFileLine=213, NSLocalizedDescription=Appex 包在 /Users/mrinmaykalita/Library/Developer/CoreSimulator/Devices/4E1C6B5B-2711-47ED-B8B6-27DA419E4609/data/Library/Caches/com.apple.mobile.installd.staging/temp.9nyJrs/extracted/Beam.app/Watch /光束 Watch.app/PlugIns/Beam Watch Extension.appex with id com.bpl.Beam.watchkitapp.watchkitextension 没有定义一个 NSExtension 字典在其 Info.plist}}}

CoreSimlutor.log的上述输出中;为什么在该文件夹不存在或在运行中创建时引用com.apple.mobile.installd.staging

请问有什么快速锻炼吗?

我检查了密钥是否存在于 Info.plist 中

<dict>
  <key>NSExtensionAttributes</key>
  <dict>
    <key>WKAppBundleIdentifier</key>
    <string>com.bpl.Beam.watchkitapp</string>
  </dict>
  <key>NSExtensionPointIdentifier</key>
  <string>com.apple.watchkit</string>
</dict>

谢谢

【问题讨论】:

    标签: info.plist


    【解决方案1】:

    在更改应用程序/WatchKit 扩展或 WatchKit 应用程序的 Info.plist 文件的位置后,我遇到了这个问题。其他原因可能只是重命名了 WatchKit 应用或扩展的文件夹。

    您必须清理所有目标,包括主应用程序、扩展程序和 WatchKit 应用程序。一旦在 Xcode 的下拉菜单中一个接一个地更改目标,我必须对每个目标使用 Cmd+Shift+K 执行清理。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-16
      • 2018-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多