我正在尝试使用我的mac mini中的xcode配置phonegap。 我的配置:
我按照教程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中配置手机间隙。
答案 0 :(得分:1)
我在AppDelegate.m文件中添加了以下行,此错误得到解决(https://groups.google.com/forum/?fromgroups#!topic/phonegap/1KePUPYywEk)。
NSString * const NSURLIsExcludedFromBackupKey = @"NSURLIsExcludedFromBackupKey";
但现在我收到错误www / index.html未找到。
解决(见) PhoneGap application: "ERROR: Start Page at `www/index.html` was not found"