繁体   English   中英

XCode错误:链接器失败

[英]XCode error: linker failed

我在论坛上看到了更多问题,但找不到合适的答案。

    Ld /Users/gbnuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdjcxjclijkdujesogrzhecyfbrp/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/dragonsimfull normal armv7
    cd /Users/gbnuser/Desktop/xCode_projects/DragonSim_Full_v1.0
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/gbnuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdjcxjclijkdujesogrzhecyfbrp/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Users/gbnuser/Desktop/xCode_projects/DragonSim_Full_v1.0 -L/Users/gbnuser/Desktop/xCode_projects/DragonSim_Full_v1.0/Libraries -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/system -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/system/introspection -F/Users/gbnuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdjcxjclijkdujesogrzhecyfbrp/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/gbnuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdjcxjclijkdujesogrzhecyfbrp/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/dragonsimfull.LinkFileList -Xlinker -no_pie -Xlinker -map -Xlinker /Users/gbnuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdjcxjclijkdujesogrzhecyfbrp/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/dragonsimfull-LinkMap-normal-armv7.txt -dead_strip -weak_framework CoreMotion -weak-lSystem -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework DTPerformanceSession -framework InterfaceBuilderKit -framework SenTestingKit -framework Accelerate -framework Accounts -framework AddressBook -framework AddressBookUI -framework AdSupport -framework AssetsLibrary -framework AudioUnit -framework AVKit /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/bundle1.o /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/CarrierBundleUtilities.dylib -framework CoreAudio -framework CoreAudioKit -framework CoreBluetooth -framework CoreData -framework CoreFoundation -framework CoreImage -framework CoreMIDI -framework CoreTelephony /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/crt1.3.1.o /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/crt1.o /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/dylib1.o -framework EventKit -framework EventKitUI -framework GameController /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/gcrt1.o -framework GLKit -framework GSS -framework HealthKit -framework ImageIO -framework JavaScriptCore /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib/lazydylib1.o -framework LocalAuthentication -framework MapKit -framework MediaAccessibility -framework MediaToolbox -framework MessageUI -framework Metal -framework MobileCoreServices -framework MultipeerConnectivity -framework NewsstandKit -framework NotificationCenter -framework Photos -framework PhotosUI -framework PushKit -framework QuickLook -framework SafariServices -framework SceneKit -framework Security -framework Social -framework SpriteKit -framework Twitter -framework VideoToolbox -framework WatchKit -framework WebKit -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreText -framework CoreVideo -framework Foundation -framework GameKit -weak_framework iAd -liconv.2 -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liPhone-lib -Xlinker -dependency_info -Xlinker /Users/gbnuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdjcxjclijkdujesogrzhecyfbrp/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/dragonsimfull_dependency_info.dat -o /Users/gbnuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdjcxjclijkdujesogrzhecyfbrp/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/dragonsimfull

    ld: framework not found AudioUnit
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

有人已经解决了这个问题吗?

您可能不小心#import导入了.m文件而不是.h文件。 使用Cmd + Shift + F并搜索“ .m”(不带引号)。 它很可能位于警告中提到的类别之一。 如果不是,请清洁并再次运行。

/////////////////////////

要么

该错误可能是由于项目中缺少某些库而引起的。

检入构建阶段->将二进制文件与库链接。 您的任何框架都可能已从此处删除。

添加它并清理并构建您的项目。 它应该工作正常。

希望对您有帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM