【问题标题】:Getting error in configuring phonegap with xcode使用 xcode 配置 phonegap 时出错
【发布时间】:2012-10-23 20:37:53
【问题描述】:

我正在尝试在我的 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 中配置电话间隔。

【问题讨论】:

    标签: xcode macos cordova


    【解决方案1】:

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

    NSString * const NSURLIsExcludedFromBackupKey = @"NSURLIsExcludedFromBackupKey";
    

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

    已解决(见) PhoneGap application: "ERROR: Start Page at `www/index.html` was not found"

    【讨论】:

    • 将 www 文件夹添加到您的项目中
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-03-25
    • 1970-01-01
    • 2016-12-24
    • 2013-10-30
    • 2019-02-07
    • 2011-04-11
    • 1970-01-01
    相关资源
    最近更新 更多