Info.plist中的未定义字典

时间:2018-09-04 22:44:33

标签: info.plist

  

9月4日18:26:17 MacBook-Pro-77 com.apple.dt.Xcode [315]:   installApplication:withOptions:error ::错误   Domain = IXUserPresentableErrorDomain代码= 1“此应用无法   此时已安装。” UserInfo = {NSLocalizedDescription =此应用程序   目前无法安装。,NSUnderlyingError = 0x7fd558a69980   {Error Domain = MIInstallerErrorDomain代码= 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 /光束   带有ID的Watch.app/PlugIns/Beam Watch Extension.appex   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 /光束   带有ID的Watch.app/PlugIns/Beam Watch Extension.appex   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>

谢谢

1 个答案:

答案 0 :(得分:0)

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

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