Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在Xcode 5中运行cordova应用程序会中断插件_Ios_Xcode_Cordova - Fatal编程技术网

Ios 在Xcode 5中运行cordova应用程序会中断插件

Ios 在Xcode 5中运行cordova应用程序会中断插件,ios,xcode,cordova,Ios,Xcode,Cordova,如果我创建一个新的cordova项目,添加ios patform,添加org.apache.cordova.device插件,那么“cordova构建ios”一切都很好 如果是这样,我将在xcode中打开项目并在模拟器上运行。然后是“cordova插件添加org.apache.cordova.camera”。每个“cordova构建ios”都会出现以下故障: william-macbook-pro:pluginapp william$ cordova build ios Generating c

如果我创建一个新的cordova项目,添加ios patform,添加org.apache.cordova.device插件,那么“cordova构建ios”一切都很好

如果是这样,我将在xcode中打开项目并在模拟器上运行。然后是“cordova插件添加org.apache.cordova.camera”。每个“cordova构建ios”都会出现以下故障:

william-macbook-pro:pluginapp william$ cordova build ios
Generating config.xml from defaults for platform "ios"
Preparing ios project
Compiling app on platform "ios" via command "/Users/william/working/pluginapp/platforms/ios/cordova/build" 

/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error: An error occurred while building the ios project.2014-01-16 14:29:23.881 xcodebuild[1838:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:24.263 xcodebuild[1838:4207]  DeveloperPortal: Using pre-existing current store at URL (file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:24.463 xcodebuild[1850:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:24.871 xcodebuild[1850:4703]  DeveloperPortal: Using pre-existing current store at URL (file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:25.126 xcodebuild[1860:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:25.584 xcodebuild[1860:4107]  DeveloperPortal: Using pre-existing current store at URL (file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:28.476 xcodebuild[1860:2407]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details:  Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVCamera.d” couldn’t be opened because there is no such file." UserInfo=0x7fd19428f110 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.d, NSUnderlyingError=0x7fd1948242a0 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.d";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread:   <NSThread: 0x7fd19428f150>{name = (null), num = 7}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-01-16 14:29:28.498 xcodebuild[1860:3d23]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details:  Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVJpegHeaderWriter.d” couldn’t be opened because there is no such file." UserInfo=0x7fd194685510 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.d, NSUnderlyingError=0x7fd1946af240 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.d";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread:   <NSThread: 0x7fd1946b0d60>{name = (null), num = 8}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **


The following build commands failed:
    CompileC build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.o HelloCordova/Plugins/org.apache.cordova.camera/CDVCamera.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.o HelloCordova/Plugins/org.apache.cordova.camera/CDVJpegHeaderWriter.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
2014-01-16 14:29:28.653 xcodebuild[2059:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:29.243 xcodebuild[2059:5c03]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details:  Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVCamera.d” couldn’t be opened because there is no such file." UserInfo=0x7f93dba28370 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.d, NSUnderlyingError=0x7f93dba282a0 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.d";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread:   <NSThread: 0x7f93dba28300>{name = (null), num = 7}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-01-16 14:29:29.262 xcodebuild[2059:2007]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details:  Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVJpegHeaderWriter.d” couldn’t be opened because there is no such file." UserInfo=0x7f93dba19310 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.d, NSUnderlyingError=0x7f93db7bed50 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.d";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread:   <NSThread: 0x7f93db8a9720>{name = (null), num = 8}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **


The following build commands failed:
    CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.o HelloCordova/Plugins/org.apache.cordova.camera/CDVCamera.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.o HelloCordova/Plugins/org.apache.cordova.camera/CDVJpegHeaderWriter.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/compile.js:65:22)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Process.ChildProcess._handle.onexit (child_process.js:802:5)
william macbook pro:pluginapp william$cordova构建ios
从平台“ios”的默认值生成config.xml
准备ios项目
通过命令“/Users/william/working/pluginapp/platforms/ios/cordova/build”在平台“ios”上编译应用程序
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
投掷e;
^
错误:生成ios项目时出错。2014-01-16 14:29:23.881 xcodebuild[1838:1007][MT]插件加载:DVTPluginCompatibilityUIDS中不存在路径“~/Library/Application Support/Developer/Shared/Xcode/plug-ins/XCode4_line.xcplugin”处插件所需的插件兼容性UUID 37B30044-3B14-46BA-ABAA-F01000C27B63
2014-01-16 14:29:24.263 xcodebuild[1838:4207]DeveloperPortal:在URL上使用预先存在的当前存储(file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:24.463 xcodebuild[1850:1007][MT]插件加载:路径“~/Library/Application Support/Developer/Shared/Xcode/plugins/XCode4\u-of-line.xcplugin”中插件的必需插件兼容性UUID 37B30044-3B14-46BA-ABAA-F01000C27B63在DVTPluginCompatibilityUID中不存在
2014-01-16 14:29:24.871 xcodebuild[1850:4703]DeveloperPortal:在URL上使用预先存在的当前存储(file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:25.126 xcodebuild[1860:1007][MT]插件加载:路径“~/Library/Application Support/Developer/Shared/Xcode/plugins/XCode4_-of_-line.xcplugin”的插件所需的插件兼容性UUID 37B30044-3B14-46BA-ABAA-F01000C27B63在DVTPluginCompatibilityUIDS中不存在
2014-01-16 14:29:25.584 xcodebuild[1860:4107]DeveloperPortal:在URL上使用预先存在的当前存储(file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:28.476 xcodebuild[1860:2407]DVTAssertions:Warning in/SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/xgccmakfiledependencies.m:78
详细信息:未能从“`/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVCamera.d”加载依赖项输出内容。错误:Error Domain=nscocaerordomain Code=260“无法打开文件”CDVCamera.d,因为没有这样的文件。”UserInfo=0x7fd19428f110{NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVCamera.d,NSUnderlyingError=0x7fd1948242a0“操作无法完成。没有此类文件或目录”}。用户信息:{
NSFilePath=“/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVCamera.d”;
NSUnderlyingError=“Error Domain=NSPOSIXErrorDomain Code=2\”操作无法完成。没有此类文件或目录\”;
}.
函数:void xgccmakefiledependenciesparsepathsfromrulefile(NSString*\uu strong,F)[F=]
线程:{name=(null),num=7}
请在http://bugreport.apple.com 使用此警告消息和您可以提供的任何有用信息。
2014-01-16 14:29:28.498 xcodebuild[1860:3d23]DVTAssertions:Warning in/SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/xgccmakfiledependencies.m:78
详细信息:未能从“`/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVJpegHeaderWriter.d”加载依赖项输出内容。错误:错误域=nscocaerorrordomain代码=260“CDVJpegHeaderWriter.d”文件无法打开,因为没有这样的文件。“UserInfo=0x7fd194685510{NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVJpegHeaderWriter.d,NSUnderlyingError=0x7fd1946af240”操作无法完成。没有这样的文件或目录“}.用户信息:{
NSFilePath=“/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVJpegHeaderWriter.d”;
NSUnderlyingError=“Error Domain=NSPOSIXErrorDomain Code=2\”操作无法完成。没有此类文件或目录\”;
}.
函数:void xgccmakefiledependenciesparsepathsfromrulefile(NSString*\uu strong,F)[F=]
线程:{name=(null),num=8}
请在http://bugreport.apple.com 使用此警告消息和您可以提供的任何有用信息。
**构建失败**
以下生成命令失败:
CompileC build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVCamera.o HelloCordova/Plugins/org.apache.cordova.camera/CDVCamera.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/HelloCordova.build/Debug iphoneos/HelloCordova.build/Objects normal/armv7/CDVJpegHeaderWriter.o HelloCordova/Plugins/org.apache.cordova.camera/CDVJpegHeaderWriter.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2次失败)
2014-01-16 14:29:28.653 xcodebuild[2059:1007][MT]插件加载:路径“~/Library/Application Support/Developer/Shared/Xcode/plugins/XCode4”的插件所需的插件兼容性UUID 37B30044-3B14-46BA-ABAA-F01000C27B63在DVTPluginCompatibilityUID中不存在
2014-01-16 14:29:29.243 xcodebuild[2059:5c03]DVT安装