0

我正在尝试在我的 mac mini 中使用 xcode 配置 phonegap。我的配置:

  • Mac OS X (10.6.8)
  • Xcode 4.1

我按照教程http://wiki.phonegap.com/w/page/52010495/Getting%20Started%20with%20PhoneGap-Cordova%20and%20Xcode%204进行操作。但是我在编译时遇到错误,我看不到错误:找不到“www/index.html”处的起始页,而是收到以下错误:

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)

请告诉我如何在我的 xcode 中配置电话间隙。

4

1 回答 1

1

我在 AppDelegate.m 文件中添加了以下行,此错误得到解决(https://groups.google.com/forum/?fromgroups#!topic/phonegap/1KePUPYywEk)。

NSString * const NSURLIsExcludedFromBackupKey = @"NSURLIsExcludedFromBackupKey";

但现在我收到错误 www/index.html not found。

已解决(请参阅) PhoneGap 应用程序:“错误:未找到位于 `www/index.html` 的起始页”

于 2012-07-17T07:55:05.667 回答