我使用Parse的推送功能收到错误:找不到文件:-fobjc-link-runtime

时间:2015-01-22 13:47:02

标签: ios parse-platform apple-push-notifications

我开始使用Parse的推送功能。您可以在此处查看更多详细信息:https://parse.com/products.push

我收到的错误如下:

Ld DerivedData/Engelzahlen/Build/Products/Debug-iphoneos/Engelzahlen.app/Engelzahlen normal armv7
cd /Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1
export IPHONEOS_DEPLOYMENT_TARGET=8.1
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.1.sdk -L/Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1/DerivedData/Engelzahlen/Build/Products/Debug-iphoneos -L/Users/ueli/Dropbox/Engelzahlen/xcode_2.8.1/Airship -F/Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1/DerivedData/Engelzahlen/Build/Products/Debug-iphoneos -F/Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1/Parse-Frameworks -filelist /Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1/DerivedData/Engelzahlen/Build/Intermediates/Engelzahlen.build/Debug-iphoneos/Engelzahlen.build/Objects-normal/armv7/Engelzahlen.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load -fobjc-link-runtime -miphoneos-version-min=8.1 -framework Bolts -framework Parse -framework ParseCrashReporting -framework ParseFacebookUtils -framework ParseUI -framework MapKit -framework MessageUI -framework StoreKit -framework CoreTelephony -lsqlite3 -lz -framework Security -framework CoreLocation -framework ImageIO -framework OpenAL -framework AssetsLibrary /Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1/DerivedData/Engelzahlen/Build/Products/Debug-iphoneos/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -weak_framework CoreMedia -Xlinker -dependency_info -Xlinker /Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1/DerivedData/Engelzahlen/Build/Intermediates/Engelzahlen.build/Debug-iphoneos/Engelzahlen.build/Objects-normal/armv7/Engelzahlen_dependency_info.dat -o /Users/ueli/Desktop/Engelzahlen-2014-08-06/xcode_2.8.1/DerivedData/Engelzahlen/Build/Products/Debug-iphoneos/Engelzahlen.app/Engelzahlen

ld: file not found: -fobjc-link-runtime
clang: error: linker command failed with exit code 1 (use -v to see invocation)

为什么我得到它?

感谢您的帮助:)!

1 个答案:

答案 0 :(得分:0)

它告诉你错误是什么:

  

ld:找不到文件:-fobjc-link-runtime

您重命名了项目/目标/或测试或删除了其中一个.m文件(可能是您的Test.m文件)。无论哪种方式,它告诉您它找不到该文件,然后在顶部引用它:

  

Ld DerivedData / Engelzahlen / Build / Products / Debug-iphoneos / Engelzahlen.app / Engelzahlen normal armv7

您必须对自己的项目进行问题排查,这不是黑/白的答案。

我建议您开始HERE