搜尋

首頁  >  問答  >  主體

Swift / IOS 开发中 linker command failed with exit code 1 的问题?

linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/liushaochen/Library/Developer/Xcode/DerivedData/yuanyuan-hevxdlhiclrlqlbyitmdgefgjxdq/Build/Products/Debug-iphonesimulator/yuanyuan.app/yuanyuan normal x86_64
    cd /Users/liushaochen/Documents/程序与开发/IOS/yuanyuan_ios_7
    export IPHONEOS_DEPLOYMENT_TARGET=8.2
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/liushaochen/Library/Developer/Xcode/DerivedData/yuanyuan-hevxdlhiclrlqlbyitmdgefgjxdq/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/system -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/system/introspection -F/Users/liushaochen/Library/Developer/Xcode/DerivedData/yuanyuan-hevxdlhiclrlqlbyitmdgefgjxdq/Build/Products/Debug-iphonesimulator -F/Users/liushaochen/Documents/程序与开发/IOS/yuanyuan_ios_7/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_0_stable -F/Users/liushaochen/Documents/程序与开发/IOS/yuanyuan_ios_7 -F/Users/liushaochen/Documents/程序与开发/IOS/yuanyuan_ios_7/SMS_SDK -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/PrivateFrameworks -filelist /Users/liushaochen/Library/Developer/Xcode/DerivedData/yuanyuan-hevxdlhiclrlqlbyitmdgefgjxdq/Build/Intermediates/yuanyuan.build/Debug-iphonesimulator/yuanyuan.build/Objects-normal/x86_64/yuanyuan.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.2 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lc++ -lc++abi -lsqlite3 -lstdc++ -lxml2 -lz -framework AVFoundation -framework Alamofire -framework AssetsLibrary -framework AudioToolbox -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework ImageIO -framework JSQWebViewController -framework KVNProgress -framework MapKit -framework OpenGLES -framework QuartzCore -framework RongIMKit -framework RongIMLib -framework SDCycleScrollView -framework SDWebImage -framework SystemConfiguration -framework UIKit -ObjC -lc++ -lc++abi -lsqlite3 -lstdc++ -lxml2 -lz -framework AVFoundation -framework Alamofire -framework AssetsLibrary -framework AudioToolbox -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework ImageIO -framework JSQWebViewController -framework KVNProgress -framework MapKit -framework OpenGLES -framework QuartzCore -framework RongIMKit -framework RongIMLib -framework SDCycleScrollView -framework SDWebImage -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/liushaochen/Library/Developer/Xcode/DerivedData/yuanyuan-hevxdlhiclrlqlbyitmdgefgjxdq/Build/Intermediates/yuanyuan.build/Debug-iphonesimulator/yuanyuan.build/Objects-normal/x86_64/yuanyuan.swiftmodule -framework Accelerate -framework Accounts -framework AddressBook -framework AddressBookUI -framework AdSupport -framework AssetsLibrary -framework AudioToolbox -framework AVFoundation -framework AVKit /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/bundle1.o /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/CarrierBundleUtilities.tbd -framework CFNetwork -framework CloudKit -framework Contacts -framework ContactsUI -framework CoreAudio -framework CoreAudioKit -framework CoreBluetooth -framework CoreData -framework CoreFoundation -framework CoreGraphics -framework CoreImage -framework CoreLocation -framework CoreMedia -framework CoreMIDI -framework CoreMotion -framework CoreSpotlight -framework CoreTelephony -framework CoreText -framework CoreVideo /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/crt1.3.1.o /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/crt1.o /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/dylib1.o -framework EventKit -framework EventKitUI -framework ExternalAccessory -framework Foundation -framework GameController -framework GameKit -framework GameplayKit /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/gcrt1.o -framework GLKit -framework GSS -framework HealthKit -framework HomeKit -framework iAd -framework ImageIO /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/IOABPLib.tbd -framework JavaScriptCore -framework JavaScriptCore /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/lazydylib1.o -lAccessibility -lacmobileshim -lafc -lamsupport -lAppPatch -larchive.2 -larchive -lassertion_launchd -lauthinstall -lAWDProtobuf -lAWDProtobufAWD -lAWDProtobufBluetooth -lAWDProtobufCATM -lAWDProtobufFacetime -lAWDProtobufFacetimeiMessage -lAWDProtobufGCK -lAWDProtobufLocation -lAWDProtobufTelephony -lAWDSupport -lAWDSupportConfig -lAWDSupportFramework -lAWDSupportInfo -lAXSafeCategoryBundle -lAXSpeechManager -lBasebandManager -lBasebandPCI -lBasebandUSB -lBBUpdaterDynamic -lbsm.0 -lbsm -lbz2.1.0 -lbz2 -lc++.1 -lc++ -lc++abi -lc -lcache -lcharset.1.0.0 -lcharset.1 -lcharset -lChineseTokenizer -lcmph -lcommonCrypto -lcompiler_rt -lcompression -lcopyfile -lcorecrypto -lcoreroutine -lCRFSuite -lCRFSuite0.12 -lCTLogHelper -lCTWakeCommandParserDynamic -lcupolicy -lcurses -ldbm -lDHCPServer.A -lDHCPServer -ldispatch -ldispatch -ldl -ldns_services -ldyld -ledit.2 -ledit.3.0 -ledit.3 -ledit -lenergytrace -lETLDIAGLoggingDynamic -lETLDLFDynamic -lETLDLOADCoreDumpDynamic -lETLDLOADDynamic -lETLDMCDynamic -lETLDynamic -lETLEFSDumpDynamic -lETLSAHDynamic -lETLTransportDynamic -lexslt.0 -lexslt -lextension -lform.5.4 -lform -lgcc_s.1 -lgermantok -lGestureServer -lgll -lH5Dynamic -lHDLCDynamic -lheimdal-asn1 -liconv.2.4.0 -liconv.2 -liconv -licucore.A -licucore -linfo -lIOAccessoryManager -lipconfig -lipsec.A -lipsec -lkeymgr -llangid -llaunch -llockdown -llzma.5 -llzma -lm -lmacho -lmarisa -lMatch.1 -lMatch -lmav_ipc_router_dynamic -lmecab_em -lmecabra -lmis -lMobileCheckpoint -lMobileGestalt -lMobileGestaltExtensions -lncurses.5.4 -lncurses -lnetwork -lnfshared -lobjc.A -lobjc -lomadm -lpoll -lPPM -lprequelite -lproc -lprotobuf -lpthread -lQLCharts -lremovefile -lresolv.9 -lresolv -lrpcsvc -lsandbox.1 -lsandbox -lsp -lsqlite3.0 -lsqlite3 -lstdc++.6.0.9 -lstdc++.6 -lstdc++ -lSystem.B -lSystem -lsystem_asl -lsystem_blocks -lsystem_c -lsystem_configuration -lsystem_containermanager -lsystem_coreservices -lsystem_coretls -lsystem_dnssd -lsystem_info -lsystem_kernel -lsystem_m -lsystem_malloc -lsystem_network -lsystem_networkextension -lsystem_notify -lsystem_platform -lsystem_pthread -lsystem_sandbox -lsystem_trace -lTelephonyBasebandBulkUSBDynamic -lTelephonyBasebandDynamic -lTelephonyDebugDynamic -lTelephonyIOKitDynamic -lTelephonyPCIDynamic -lTelephonyUSBDynamic -lTelephonyUtilDynamic -lThaiTokenizer -ltidy.A -ltidy -ltzupdate -lunwind -lutil -lutil1.0 -lvminterpose -lWAPI -lxml2.2 -lxml2 -lxpc -lxslt.1 -lxslt -lz.1.1.3 -lz.1.2.5 -lz.1 -lz -framework LocalAuthentication -framework MapKit -framework MediaAccessibility -framework MediaPlayer -framework MediaToolbox -framework MessageUI -framework Metal -framework MetalKit -framework MetalPerformanceShaders -framework MobileCoreServices -framework ModelIO -framework MultipeerConnectivity -framework NetworkExtension -framework NewsstandKit -framework NotificationCenter -framework OpenAL -framework OpenGLES -framework PassKit -framework Photos -framework PhotosUI -framework PushKit -framework QuartzCore -framework QuickLook -framework ReplayKit -framework SafariServices -framework SceneKit -framework Security -framework Social -framework SpriteKit -framework StoreKit -framework SystemConfiguration -framework Twitter -framework UIKit -framework VideoToolbox -framework WatchConnectivity -framework WatchKit -framework WebKit -framework WebKit -framework DTPerformanceSession -framework InterfaceBuilderKit -framework Alamofire -framework JSQWebViewController -framework KVNProgress -framework Pods -framework SDCycleScrollView -framework SDWebImage -Xlinker -dependency_info -Xlinker /Users/liushaochen/Library/Developer/Xcode/DerivedData/yuanyuan-hevxdlhiclrlqlbyitmdgefgjxdq/Build/Intermediates/yuanyuan.build/Debug-iphonesimulator/yuanyuan.build/Objects-normal/x86_64/yuanyuan_dependency_info.dat -o /Users/liushaochen/Library/Developer/Xcode/DerivedData/yuanyuan-hevxdlhiclrlqlbyitmdgefgjxdq/Build/Products/Debu

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

高洛峰高洛峰2772 天前1103

全部回覆(4)我來回復

  • 黄舟

    黄舟2017-04-17 17:16:04

    檢查是否某些檔案路徑未加入或寫錯了

    回覆
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:16:04

    戳stackoverflow

    回覆
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:16:04

    都追問到我 Blog 上來了,真是服了你了。這種問題 Google 一下不是更快。樓上已經有答案了,真機試試看

    回覆
    0
  • PHPz

    PHPz2017-04-17 17:16:04

    你看這句話啊ld: library not found for -lacmobileshim 大體就能定位錯誤原因了啊,我也不幫你翻譯了

    回覆
    0
  • 取消回覆