【问题标题】:Crashing of Phonegap 1.9.0 application due to _NSURLIsExcludedFromBackupKey error由于 _NSURLIsExcludedFromBackupKey 错误,Phonegap 1.9.0 应用程序崩溃
【发布时间】:2012-07-04 21:58:40
【问题描述】:

我正在尝试使用 iOS 在 Phonegap 1.9.0 中加载 HelloWorld 示例,但我在执行此操作时遇到了一些问题……我正在关注:http://docs.phonegap.com/en/1.9.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS 它显示 Apple Mach-O Linker(Id) 错误。

当我点击错误时,它说:

Undefined symbols for architecture i386:
  "_NSURLIsExcludedFromBackupKey", referenced from:
      -[CDVFile setMetadata:withDict:] in Cordova
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我写了一个类似的应用程序,它不使用电话间隙并且运行正常...但是当我使用电话间隙时,它给了我这个错误..不知道该怎么做...需要一些指导。

【问题讨论】:

  • 你是在ios、android还是什么的?
  • @AamirPathan,你真的需要问这个吗?很遗憾我不能对你的评论投反对票。

标签: iphone ios ios5 cordova


【解决方案1】:

在最新的phonegap版本:1.9.0中,出现_NSURLIsExcludedFromBackupKey的错误。

要解决这个问题,请将其添加到 AppDelegate.m

NSString * const NSURLIsExcludedFromBackupKey =@"NSURLIsExcludedFromBackupKey";

这将有助于解决错误..与架构无关...

PhoneGap 新手可以观看这些视频:

第 1 部分:http://www.youtube.com/watch?v=zXf1zyKQ5Hw&feature=relmfu

第 2 部分:http://www.youtube.com/watch?v=t95KG_SFppU

【讨论】:

  • 我得到warning: unused variable 'NSURLIsExcludedFromBackupKey 使用这个 - 在 AppDelegate.m 中这条线到底在哪里?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-26
  • 2021-04-20
  • 2016-04-06
相关资源
最近更新 更多