Tag: 链接器错误

GoogleMapsSDK:体系结构x86_64的未定义符号

我正在尝试安装Google maps SDK,并且在运行时遇到以下错误: Undefined symbols for architecture x86_64: "_CBAdvertisementDataManufacturerDataKey", referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) "_CBAdvertisementDataServiceDataKey", referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) "_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from: -[GMSx_PEBeaconScanner scanIfAppropriate] in GoogleMaps(PEBeaconScanner.o) "_OBJC_CLASS_$_CBCentralManager", referenced from: objc-class-ref in GoogleMaps(PEBeaconScanner.o) "_OBJC_CLASS_$_CBUUID", referenced from: objc-class-ref in GoogleMaps(PEBeacon.o) objc-class-ref in GoogleMaps(PEBeaconScanner.o) "_vImageBoxConvolve_Planar8", referenced from: (anonymous namespace)::CreateBlurredImage(CGImage*, double, double) in GoogleMaps(GLWaterGroup.o) ld: symbol(s) […]

苹果Mach-O链接器和同上错误 – Xcode 8

我刚刚更新我的Xcode到Xcode 8,现在正试图将我的项目的代码转换为Swift 2.3。 我能够使用Xcode 8build立几次而没有任何错误。 现在,出现了以下错误: 错误#1:苹果Mach-O链接器错误:链接器命令失败,退出代码1 ld:找不到文件:/Users/Linus/Library/Developer/Xcode/DerivedData/MyApp-asdjeshhsetnfxbegcsbcipdreneewgr/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/DownloadsViewController.o 铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用) 我甚至不知道.o文件是什么。 虽然, DownloadsViewController的swift文件就在那里。 错误#2:同上错误:命令/ usr / cin / ditto失败,退出代码1 同上:无法得到源的实际path'/Users/Linus/Library/Developer/Xcode/DerivedData/MyApp-asdjeshhsetnfxbbciegrfdpdreneewgr/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/ MyApp的-Swift.h” 命令/ usr / bin / ditto失败,退出代码1 同上错误发生3次:对于MyApp.swiftdoc , MyApp.swiftmodule和MyApp-Swift.h 。 提前致谢!

部署目标为7.0时,架构错误的未定义符号

我在我的本地iOS应用程序(一堆.a库)中使用第三方框架。 我的应用程序是使用XCode 5 SDK 7.0开发的。 当部署目标是6.1(库和头searchpath是好的)时,这些库编译并链接正常。 但是,当我将部署目标更改为7.0时,出现以下链接器错误: Undefined symbols for architecture i386: "std::string::find_last_of(char const*, unsigned long) const", referenced from: GetExecutionDir(ECTemplateString<char>&, char*, bool) in myLibrary.a(moPlatForm.o) "std::string::find(char const*, unsigned long) const", referenced from: ParseLog(std::string const&, unsigned int&, CmoDateTime&, int&, std::string&) in myLibrary.a(AppLog.o) "std::string::size() const", referenced from: mo::CmoParam::WriteToStream(void*, mo::STREAM_STATE*) in myLibrary.a(moParams.o) "std::string::c_str() const", referenced from: GetExecutionDir(ECTemplateString<char>&, char*, bool) […]

找不到符号:kUTTypeImage

我从苹果的文档复制了一些代码 – 我得到了这两个错误: Undefined symbols for architecture i386: "_kUTTypeImage", referenced from: -[ImagePicker imagePickerController:didFinishPickingMediaWithInfo:] in ImagePicker.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我究竟做错了什么? 编辑:代码: – (IBAction) showSavedMediaBrowser { [self startMediaBrowserFromViewController: self usingDelegate: (id)self]; } – (BOOL) startMediaBrowserFromViewController: (UIViewController*) controller usingDelegate: (id […]

将Xcode升级到4.5.2和将OpenCV升级到2.4.3之后的链接器错误

直到今天上午,我的项目工作得很好。 我使用的是xcode 4.3和一个较旧版本的OpenCV(我不确定确切的版本)。 OSX已经是10.7.x,但不是10.7.5 今天,在将OSX升级到10.7.5,将xcode升级到4.5.2,并下载OpenCV 2.4.3之后,在尝试构build项目时出现以下链接器错误: 未定义的符号为build筑armv7: “_OBJC_CLASS _ $ _ ALAssetsLibrary”,引用自: 在opencv2中的objc-class-ref(cap_ios_video_camera.o) “cv :: FeatureDetector :: create(std :: string const&)”,引用自: ImageAnalyzer.o中的[ImageAnalyzer detectBlobs:] “cv :: FeatureDetector :: detect(cv :: Mat const&,std :: vector>&,cv :: Mat const&)const”,引用自: ImageAnalyzer.o中的[ImageAnalyzer detectBlobs:] ld:符号(s)找不到架构armv7 铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用) 为了使用新的opencv框架,我删除了对旧框架的引用,并将该项目引用到从此处下载的官方预编译的opencv2.framework中。 我也删除了对libz.dylib的引用,而是添加了对libc ++。dylib的引用。 最后一步是将前缀文件更新到新的框架。 前缀文件中的相关部分现在看起来像这样: #ifdef __cplusplus #import <opencv2/opencv.hpp> #endif 这一切都缩小到这4个链接器错误,我似乎无法摆脱。 我尝试使用libstdc ++。dylib ,但是我得到更多的错误。 我也尝试过自己构buildOpenCV,但是我仍然得到与预构build框架相同的错误。 […]

苹果Mach-O链接器警告“目录未find选项…”

我只是想摆脱像这样popup的警告: ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK' ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK/FBAudienceNetwork' ld: warning: directory not found for option '-F/Users/gavin/Downloads/shaffiulla11-bat-b86d81d8adc6' ld: warning: directory not found for option '-F/Users/gavin/Desktop/shaffiulla11-bat-b86d81d8adc6' ld: warning: ignoring file /Users/Gavin/Desktop/FacebookSDK/Bolts.framework/Bolts, missing required architecture x86_64 in file /Users/Gavin/Desktop/FacebookSDK/Bolts.framework/Bolts (2 slices) 很明显,我现在使用的是不同的目录,因为我的驱动器有多个重新格式化,因为逻辑板的问题,只是想知道最方便的方法,我可以摆脱这些错误。 感谢您的时间和帮助。

iOS中的链接器错误(体系结构x86_64的重复符号)

我继续得到以下错误: duplicate symbol _llvm.embedded.module in: /Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKApplicationDelegate.o) /Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfiguration.o) ld: 102 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我已经尝试删除FBSDK并重新安装,但没有工作。 我也怀疑,我将这个框架连接到Swift可能是个问题。 我的桥接头包含以下内容: #ifndef EggCrush_Bridge_h #define EggCrush_Bridge_h #import <FBSDKCoreKit/FBSDKCoreKit.h> #endif 我的AppDelegate.swift文件导入FBSDKCoreKit。 没有其他链接器标志。 我正在运行Xcode 6.3.2并为iOS 8.3构build一个项目 如何清除这个错误?