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
Ios 如何解决Cordova插件的Mach-O链接器错误_Ios_Xcode_Cordova_Plugins_Linker - Fatal编程技术网

Ios 如何解决Cordova插件的Mach-O链接器错误

Ios 如何解决Cordova插件的Mach-O链接器错误,ios,xcode,cordova,plugins,linker,Ios,Xcode,Cordova,Plugins,Linker,我在mac上安装了最新的cordova版本4.0,并使用Xcode 6.0.1 我能够运行基本的cordova应用程序,但是当我尝试使用插件时,它的构建失败了。它在显示不推荐的警告的同时抛出Mach-O链接器错误 错误日志如下所示 /Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m /Users/j

我在mac上安装了最新的cordova版本4.0,并使用Xcode 6.0.1

我能够运行基本的cordova应用程序,但是当我尝试使用插件时,它的构建失败了。它在显示不推荐的警告的同时抛出Mach-O链接器错误

错误日志如下所示

/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:11:33: Assigning to 'id<ABPeoplePickerNavigationControllerDelegate>' from incompatible type 'ContactChooser *const __strong'
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:12:26: 'presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:293:1: 'presentModalViewController:animated:' has been explicitly marked deprecated here
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:40:116: 'toSuccessCallbackString:' is deprecated: Deprecated in Cordova 3.6. Use the CDVCommandDelegate method sendPluginResult:callbackId instead. This will be removed in 4.0.0
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/CordovaLib/Classes/CDVPluginResult.h:67:1: 'toSuccessCallbackString:' has been explicitly marked deprecated here
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:40:16: 'writeJavascript:' is deprecated: Deprecated in Cordova 3.6. Use the CDVCommandDelegate equivalent of evalJs:. This will be removed in 4.0.0
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/CordovaLib/Classes/CDVPlugin.h:61:1: 'writeJavascript:' has been explicitly marked deprecated here
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:41:30: 'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:296:1: 'dismissModalViewControllerAnimated:' has been explicitly marked deprecated here
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:23:21: Implicit conversion loses integer precision: 'CFIndex' (aka 'long') to 'int'
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:53:26: 'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:296:1: 'dismissModalViewControllerAnimated:' has been explicitly marked deprecated here
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:56:45: 'toErrorCallbackString:' is deprecated: Deprecated in Cordova 3.6. Use the CDVCommandDelegate method sendPluginResult:callbackId instead. This will be removed in 4.0.0
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/CordovaLib/Classes/CDVPluginResult.h:69:1: 'toErrorCallbackString:' has been explicitly marked deprecated here
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/TeleVoIPsDialer/Plugins/ContactChooser.m:54:12: 'writeJavascript:' is deprecated: Deprecated in Cordova 3.6. Use the CDVCommandDelegate equivalent of evalJs:. This will be removed in 4.0.0
/Users/joelasirvathamjesudoss/Documents/iOS Dialer App/TeleVoIPsDialer/platforms/ios/CordovaLib/Classes/CDVPlugin.h:61:1: 'writeJavascript:' has been explicitly marked deprecated here
  "_ABMultiValueCopyValueAtIndex", referenced from:

  "_ABMultiValueGetCount", referenced from:

  "_ABMultiValueGetIdentifierAtIndex", referenced from:

  "_ABMultiValueGetIndexForIdentifier", referenced from:

  "_ABRecordCopyCompositeName", referenced from:

  "_ABRecordCopyValue", referenced from:

  "_OBJC_CLASS_$_ABPeoplePickerNavigationController", referenced from:

  "_kABPersonEmailProperty", referenced from:

  "_kABPersonPhoneProperty", referenced from:

clang: error: linker command failed with exit code 1 (use -v to see invocation)
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序App/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:11:33:从不兼容的类型“ContactChooser*const”分配给“id”
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:12:26:“presentModalViewController:animated:”已弃用:在iOS 6.0中首次弃用
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:293:1:“presentModalViewController:animated:”已在此处明确标记为不推荐
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:40:116:“toSuccessCallbackString:”已弃用:在Cordova 3.6中弃用。改用CDVCommandDelegate方法sendPluginResult:callbackId。这将在4.0.0中删除
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序App/TeleVoIPsDialer/platforms/iOS/CordovaLib/Classes/CDVPluginResult.h:67:1:“toSuccessCallbackString:”已在此处明确标记为不推荐
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:40:16:“writeJavascript:”已弃用:在Cordova 3.6中弃用。使用等价于evalJs的CDVCommandDelegate:。这将在4.0.0中删除
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序App/TeleVoIPsDialer/platforms/iOS/CordovaLib/Classes/CDVPlugin.h:61:1:“writeJavascript:”已在此处明确标记为不推荐
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:41:30:“dismissModalViewControllerAnimated:”已弃用:首次在iOS 6.0中弃用
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:296:1:“dismissModalViewControllerAnimated:”已在此处明确标记为不推荐
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:23:21:隐式转换丢失整数精度:“CFIndex”(又名“long”)到“int”
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:53:26:“dismissModalViewControllerAnimated:”已弃用:首次在iOS 6.0中弃用
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:296:1:“dismissModalViewControllerAnimated:”已在此处明确标记为不推荐
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:56:45:“toErrorCallbackString:”已弃用:在Cordova 3.6中弃用。改用CDVCommandDelegate方法sendPluginResult:callbackId。这将在4.0.0中删除
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序App/TeleVoIPsDialer/platforms/iOS/CordovaLib/Classes/CDVPluginResult.h:69:1:“toErrorCallbackString:”已在此处明确标记为不推荐
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序/TeleVoIPsDialer/platforms/iOS/TeleVoIPsDialer/Plugins/ContactChooser.m:54:12:“writeJavascript:”已弃用:在Cordova 3.6中弃用。使用等价于evalJs的CDVCommandDelegate:。这将在4.0.0中删除
/Users/joelasirvathamjesudoss/Documents/iOS拨号程序App/TeleVoIPsDialer/platforms/iOS/CordovaLib/Classes/CDVPlugin.h:61:1:“writeJavascript:”已在此处明确标记为不推荐
“多值CopyValueAtIndex”,引用自:
“\u ABMultiValueGetCount”,引用自:
“多值GetIdentifierIndex”,引用自:
“多值GetIndexForIdentifier”,引用自:
“\u ABRecordCopyCompositeName”,引用自:
“\u ABRecordCopyValue”,引用自:
“_OBJC_CLASS_$_ABPeoplePickerNavigationController”,引用自:
“_KabbersoneMailProperty”,引用自:
“_KabbersonPhoneProperty”,引用自:
叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用)

我降级到Phonegap 2.8.0,错误消失了,但是我收到了很多警告(即使我只使用phone gap 2.8.0运行hello world应用程序,警告也会显示出来)

至于插件本身,它会调用iOS联系人应用程序,但是当我选择一个名字时,它会进入详细信息页面,但是控件不会返回到联系人应用程序,也不会返回我所选联系人的信息