Tag: 链接器错误

在另一个包含一个Xcode项目 – 链接器错误

我正试图做到这一点,并遇到问题。 父项目需要从子项目访问类SettingsViewController。 我已经把我的标题searchpath中的子项目path。 一切都编译好,但我得到链接器错误,如下所示: 未定义的符号:“_OBJC_METACLASS _ $ _ SettingsViewController”,引用来自:_OBJC_METACLASS __ StatisticsViewController.o中的StatisticsViewController“_OBJC_CLASS _ $ _ SettingsViewController”,引用来自:SelectionViewController.o中的objc-class-ref-to-SettingsViewController _OBJC_CLASS _ $ _ St​​atisticsViewController.o中的StatisticsViewController ld:符号(s)not found collect2:ld返回1退出状态 我怎样才能解决这个问题?

iOS – 3架构i386的重复符号

我有一个理解链接器命令错误的问题。 我收到以下内容: duplicate symbol _OBJC_IVAR_$_XYZAddToDoItemViewController._toDoItem in: /Users/*/Library/Developer/Xcode/DerivedData/ToDoToday-fjyijxlbvauebmeuhtgdvdrjtfez/Build/Intermediates/ToDoToday.build/Debug-iphonesimulator/ToDoToday.build/Objects-normal/i386/XYZToDoListViewController.o /Users/*/Library/Developer/Xcode/DerivedData/ToDoToday-fjyijxlbvauebmeuhtgdvdrjtfez/Build/Intermediates/ToDoToday.build/Debug-iphonesimulator/ToDoToday.build/Objects-normal/i386/XYZAddToDoItemViewController.o duplicate symbol _OBJC_CLASS_$_XYZAddToDoItemViewController in: /Users/*/Library/Developer/Xcode/DerivedData/ToDoToday-fjyijxlbvauebmeuhtgdvdrjtfez/Build/Intermediates/ToDoToday.build/Debug-iphonesimulator/ToDoToday.build/Objects-normal/i386/XYZToDoListViewController.o /Users/*/Library/Developer/Xcode/DerivedData/ToDoToday-fjyijxlbvauebmeuhtgdvdrjtfez/Build/Intermediates/ToDoToday.build/Debug-iphonesimulator/ToDoToday.build/Objects-normal/i386/XYZAddToDoItemViewController.o duplicate symbol _OBJC_METACLASS_$_XYZAddToDoItemViewController in: /Users/*/Library/Developer/Xcode/DerivedData/ToDoToday-fjyijxlbvauebmeuhtgdvdrjtfez/Build/Intermediates/ToDoToday.build/Debug-iphonesimulator/ToDoToday.build/Objects-normal/i386/XYZToDoListViewController.o /Users/*/Library/Developer/Xcode/DerivedData/ToDoToday-fjyijxlbvauebmeuhtgdvdrjtfez/Build/Intermediates/ToDoToday.build/Debug-iphonesimulator/ToDoToday.build/Objects-normal/i386/XYZAddToDoItemViewController.o ld: 3 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我不确定Xcode究竟指的是哪个符号。 以下是实现文件的顶部。 XYZToDoListViewController.m: #import "XYZAddToDoItemViewController.h" @interface XYZAddToDoItemViewController () @property NSMutableArray *toDoItems; @end @implementation XYZAddToDoItemViewController […]

xcode 5 ld:11架构armv7 clang的重复符号:error:linker命令失败,退出代码1(使用-v查看调用)

当我试图build立我的项目,我不断得到这个错误说ld: 11 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)我最近试图实现GPUImage到我的项目,会有什么关系呢? 我也读过类似的问题,但没有解决我的问题。

错误:在更改核心数据模型后重复架构armv7的符号

我有一个使用核心数据框架的应用程序。 我工作正常。 我只是改变了数据模型 – 添加一个属性到一个实体。 当我尝试构build它时,出现错误: duplicate symbol _OBJC_METACLASS_$_AccountFolder in: /Users/XXX/Library/Developer/Xcode/DerivedData/MyApp-bxsswgxdenxgjweotkkkckaoalat/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/armv7/AccountFolder-33D7EA63E98D6090.o ld: 4 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我做了一些search,大多数人得到这个错误是从朦胧的.h到.m,或多次导入相同.h。 我检查了我的代码。 我没有那个 而Coredata框架仍然在那里。 有谁知道还有什么可以的原因? 谢谢。

苹果Mach-O链接器错误在XCode 6.0.1

我已经更新了我的XCode到6.0.1在此更新之前,我能够在模拟器和我的设备中构build我的项目。 但现在,它给我的苹果Mach-O链接器错误 我冲浪了很多。 我已经删除了DerivedData文件夹。 仍然有问题。 我正在构buildPhonegap应用程序。 请帮帮我。 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 […]

截断的胖文件链接器错误

虽然我对Objective-C的开发很熟悉,但是对于错误解释,我仍然认为自己有一点点的不足。 我正在研究其他人也在从事的工作申请。 我相信我们可能有不同版本的Xcode,一个开发人员有一台PC(其他人和我有一台MacBook)。 我正在使用Xcode 4.5.1。 问题 我得到以下苹果Mach-O链接器错误 : ld:截断的胖文件。 从68到2783300的片断已超过文件的结尾,长度为135,用于体系结构i386 clang:错误:链接器命令失败,退出代码1(使用-v查看调用) 完整的错误如下(重命名path): Ld build / Debug-iphonesimulator / MyApp.app / MyApp normal i386 cd / Users / me / Documents / MyApp / trunk setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 setenv PATH“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ USR /斌:/Applications/Xcode.app/Contents/Developer/usr/bin:在/ usr / bin中:/ bin中:/ usr / sbin目录:/ sbin目录:在/ usr / local / bin目录:在/ usr / […]

体系结构x86_64的重复符号从CocoaPods添加窗格

我正在尝试将Google Analytics(分析)用于我的应用程序。 但是,通过CocoaPod添加它后立即我得到这个错误: 以前我在Google我的广告连播中有GoogleMaps和GCM。 现在我的Pod看起来像这样: platform :ios, '8.0' pod 'Google/Analytics' pod 'Google/CloudMessaging' pod 'GoogleMaps' 我如何解决这个错误: *编辑 这解决了我的问题: 如果我运行我现有的项目X-Code 7那么我没有得到错误。 但我希望它运行在Xcode 6.4所以我添加了旧版本的GA并且在X-Code 6.4. 我手动添加了旧的sdk但是如果有人想通过Cocoa-Pod添加它,那么下面是这样做的方法: pod 'Google/Analytics' pod 'GoogleAnalytics', '3.13.0'

RestKit链接器错误

我一直在关注RestKit安装说明,但是现在我尝试构build应用程序时出现错误。 这是针对ios,iPad的具体情况。 我得到“命令/开发/平台/ iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出码1” 描述: Ld build/Debug-iphonesimulator/iDoor.app/iDoor normal i386 cd "/Users/User/Dropbox/darxstudios/FatCow Games/iDoor" setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 – isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk "-L/Users/User/Dropbox/darxstudios/FatCow Games/iDoor/build/Debug-iphonesimulator" "-F/Users/User/Dropbox/darxstudios/FatCow Games/iDoor/build/Debug-iphonesimulator" -filelist "/Users/User/Dropbox/darxstudios/FatCow Games/iDoor/build/iDoor.build/Debug-iphonesimulator/iDoor.build/Objects-normal/i386/iDoor.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC – all_load -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -lxml2 -framework SystemConfiguration -framework MobileCoreServices -framework CoreData -framework CFNetwork -framework […]

FIRApp链接器错误

我search了SO和Google,但找不到可行的答案。 我已经在多个项目上使用了新的Firebase Cocoapod,但现在,将其添加到不同的项目时,我收到以下错误。 我使用Xcode 7.3.1与cocoapods 1.0.1。 这是我的podfile: 任何帮助是极大的赞赏!

现在,testflight库和Xcode 5中没有任何更改说:“找不到-lTestFlight的ld:库”

我已经创build了几个月的应用程序,突然Xcode 5不想构build它。 它只是抱怨以下错误。 Ld build/Debug-iphonesimulator/appname.app/appname normal i386 cd /Users/myname/proyectos/appname/dev/iOS/appname setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/myname/proyectos/appname/dev/iOS/appname/build/Debug-iphonesimulator -L\"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/FlurryAnalytics\" -L\"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/SmartADServer\" -L\"/Users/myname/proyectos/appname/dev/iOS/appname/appname/External/TestFlight\" -F/Users/myname/proyectos/appname/dev/iOS/appname/build/Debug-iphonesimulator -F/Users/myname/proyectos/appname/dev/iOS/appname/appname/External -filelist /Users/myname/proyectos/appname/dev/iOS/appname/build/appname.build/Debug-iphonesimulator/Appname.build/Objects-normal/i386/appname.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.1 -weak_framework AdSupport -framework Security -framework MessageUI -framework Twitter -framework CoreLocation -weak_framework CoreMotion -framework AudioToolbox -framework AVFoundation -framework MediaPlayer […]