iOS   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – XCode 6.0.1上的Apple Mach-O链接器错误大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_874_3@概述 我已将我的XCode更新为6.0.1 在此更新之前,我能够在模拟器和设备中构建我的项目.但现在,它给了我Apple Mach-O Linker Error 我冲浪了很多.我删除了DerivedData文件夹.还有问题. 我正在构建一个Phonegap应用程序.请帮我. Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CDVWeb
我已将我的XCode更新为6.0.1
在此更新之前,我能够在模拟器和设备中构建我的项目.但现在,它给了我Apple Mach-O Linker Error

我冲浪了很多.我删除了DerivedData文件夹.还有问题.

我正在构建@L_6_2@phonegap应用程序.请帮我.

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_CDVWebViewDelegate",referenced from:
      objc-class-ref in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVInvokedUrlCommand",referenced from:
      objc-class-ref in CDVContacts.o
      objc-class-ref in CDVFile.o
  "_OBJC_MetaCLASS_$_CDVViewController",referenced from:
      _OBJC_MetaCLASS_$_MainViewController in MainViewController.o
  "_OBJC_CLASS_$_CDVPlugin",referenced from:
      _OBJC_CLASS_$_CDVLogger in CDVLogger.o
      _OBJC_CLASS_$_CDVContacts in CDVContacts.o
      _OBJC_CLASS_$_CDVDevice in CDVDevice.o
      _OBJC_CLASS_$_CDVNotification in CDVNotification.o
      _OBJC_CLASS_$_CDVFile in CDVFile.o
      _OBJC_CLASS_$_CDVFileTransfer in CDVFileTransfer.o
      _OBJC_CLASS_$_CDVInAppBrowser in CDVInAppBrowser.o
      ...
  "_OBJC_MetaCLASS_$_CDVPlugin",referenced from:
      _OBJC_MetaCLASS_$_CDVLogger in CDVLogger.o
      _OBJC_MetaCLASS_$_CDVContacts in CDVContacts.o
      _OBJC_MetaCLASS_$_CDVDevice in CDVDevice.o
      _OBJC_MetaCLASS_$_CDVNotification in CDVNotification.o
      _OBJC_MetaCLASS_$_CDVFile in CDVFile.o
      _OBJC_MetaCLASS_$_CDVFileTransfer in CDVFileTransfer.o
      _OBJC_MetaCLASS_$_CDVInAppBrowser in CDVInAppBrowser.o
      ...
  "_OBJC_CLASS_$_CDVViewController",referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
      objc-class-ref in CDVDevice.o
      objc-class-ref in CDVFile.o
  "_CDVlocalnotification",referenced from:
      -[AppDelegate application:didReceivelocalnotification:] in AppDelegate.o
  "_OBJC_MetaCLASS_$_CDVCommandDelegateImpl",referenced from:
      _OBJC_MetaCLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_CLASS_$_CDVPluginResult",referenced from:
      objc-class-ref in CDVContacts.o
      objc-class-ref in CDVDevice.o
      objc-class-ref in CDVNotification.o
      objc-class-ref in CDVFile.o
      objc-class-ref in CDVLocalFilesystem.o
      objc-class-ref in CDVAssetLibraryFilesystem.o
      objc-class-ref in CDVFileTransfer.o
      ...
  "_OBJC_CLASS_$_CDVCommandDelegateImpl",referenced from:
      _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_CLASS_$_CDVUserAgentUtil",referenced from:
      objc-class-ref in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVCommandQueue",referenced from:
      _OBJC_CLASS_$_MainCommandQueue in MainViewController.o
  "_OBJC_MetaCLASS_$_CDVCommandQueue",referenced from:
      _OBJC_MetaCLASS_$_MainCommandQueue in MainViewController.o
  "_CDVPluginHandLeopenURLNotification",referenced from:
      -[AppDelegate application:handLeopenURL:] in AppDelegate.o
      -[CDVInAppBrowser openInSystem:] in CDVInAppBrowser.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command Failed with exit code 1 (use -v to see invocation)

解决方法

更新Xcode时通常会出现此类问题,但您使用的任何第三方工具可能无法使用此架构armv64进行更新.

因此,从XCode单击您的Project Navigator.

单击Project中的On Targets,然后单击BuildSetTings.

在其中查找有效的体系结构.

只需双击它并从中删除armv64.

确保只有armv7和armv7s.

如果这不起作用,那么也尝试删除armv7s.

请检查所有框架是否正确链接和引用.尝试删除并再次添加该第三方工具的框架.

请检查所有框架是否正确引用.

在我的情况下,这对我有用.

清理并构建您的项目.它现在应该工作正常.

希望它能帮到你.

@H_675_57@

大佬总结

以上是大佬教程为你收集整理的ios – XCode 6.0.1上的Apple Mach-O链接器错误全部内容,希望文章能够帮你解决ios – XCode 6.0.1上的Apple Mach-O链接器错误所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。