2015-06-12 2 views
1

Я пытаюсь использовать parse.framework в моем проекте, поэтому кроме добавленного parse.framework я добавил эти, а такжеошибка сборки с помощью Parse.framework на прошивке

AudioToolbox.framework 
CFNetwork.framework 
CoreGraphics.framework 
CoreLocation.framework 
MobileCoreServices.framework 
QuartzCore.framework 
Security.framework 
StoreKit.framework 
SystemConfiguration.framework 
libz.dylib 
libsqlite3.dylib 

, поскольку я использую -ObjC флаг компоновщика для RobotKit.framework SPHERO, я добавил эти два, а

Accounts.framework 
Social.framework 

однако, я получил ошибки

Ld /Users/SharpPug/Library/Developer/Xcode/DerivedData/SenseWatch-ftxgnedstrsxkufpnnuizgjbgbni/Build/Products/Debug-iphoneos/SenseWatch.app/SenseWatch normal armv7 
cd /Users/SharpPug/Documents/Repo/SenseWatch 
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/SharpPug/Library/Developer/Xcode/DerivedData/SenseWatch-ftxgnedstrsxkufpnnuizgjbgbni/Build/Products/Debug-iphoneos -F/Users/SharpPug/Library/Developer/Xcode/DerivedData/SenseWatch-ftxgnedstrsxkufpnnuizgjbgbni/Build/Products/Debug-iphoneos -F/Users/SharpPug/Documents/Repo/SenseWatch/Frameworks -filelist /Users/SharpPug/Library/Developer/Xcode/DerivedData/SenseWatch-ftxgnedstrsxkufpnnuizgjbgbni/Build/Intermediates/SenseWatch.build/Debug-iphoneos/SenseWatch.build/Objects-normal/armv7/SenseWatch.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -ObjC -lstdc++ -lsqlite3 -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework Social -framework Accounts -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -framework Security -framework QuartzCore -framework MobileCoreServices -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework ExternalAccessory -framework CoreMotion -framework RobotKit -framework CoreBluetooth -framework Parse -framework MicrosoftBandKit_iOS -Xlinker -dependency_info -Xlinker /Users/SharpPug/Library/Developer/Xcode/DerivedData/SenseWatch-ftxgnedstrsxkufpnnuizgjbgbni/Build/Intermediates/SenseWatch.build/Debug-iphoneos/SenseWatch.build/Objects-normal/armv7/SenseWatch_dependency_info.dat -o /Users/SharpPug/Library/Developer/Xcode/DerivedData/SenseWatch-ftxgnedstrsxkufpnnuizgjbgbni/Build/Products/Debug-iphoneos/SenseWatch.app/SenseWatch 

Undefined symbols for architecture armv7: 
    "_BFTaskMultipleExceptionsException", referenced from: 
    ___53+[PFObject(Private) deleteAllAsync:withSessionToken:]_block_invoke226 in Parse(PFObject.o) 
    ___65+[PFObject(Private) _deepSaveAsync:withCurrentUser:sessionToken:]_block_invoke319 in Parse(PFObject.o) 
    "_OBJC_CLASS_$_BFExecutor", referenced from: 
    objc-class-ref in Parse(ParseManager.o) 
    objc-class-ref in Parse(PFOfflineStore.o) 
    objc-class-ref in Parse(PF_Twitter.o) 
    objc-class-ref in Parse(PFObject.o) 
    objc-class-ref in Parse(PFPinningEventuallyQueue.o) 
    objc-class-ref in Parse(PFFile.o) 
    objc-class-ref in Parse(PFFileManager.o) 
    ... 
    "_OBJC_CLASS_$_BFTask", referenced from: 
    objc-class-ref in Parse(PFSQLiteDatabase.o) 
    objc-class-ref in Parse(PFTwitterAuthenticationProvider.o) 
    objc-class-ref in Parse(ParseManager.o) 
    objc-class-ref in Parse(PFOfflineStore.o) 
    objc-class-ref in Parse(PF_Twitter.o) 
    objc-class-ref in Parse(PFObject.o) 
    objc-class-ref in Parse(PFPinningEventuallyQueue.o) 
    ... 
    "_OBJC_CLASS_$_BFTaskCompletionSource", referenced from: 
    objc-class-ref in Parse(PFSQLiteDatabase.o) 
    objc-class-ref in Parse(PFOfflineStore.o) 
    objc-class-ref in Parse(PF_Twitter.o) 
    objc-class-ref in Parse(PFObject.o) 
    objc-class-ref in Parse(PFEventuallyQueue.o) 
    objc-class-ref in Parse(PFTaskHTTPRequestOperation.o) 
    objc-class-ref in Parse(BFTask+Private.o) 
    ... 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

ответ

0

Вы также должны включать Синтаксическая SDK здесь:

https://parse.com/docs/downloads

Parse.framework

ParseUI.framework и т.д.

Самый простой (если вы не очень хорошо в проект) на самом деле просто начать с проекта quickstart.

https://parse.com/apps/quickstart

+0

так, я добавил parse.framework уже. а остальное как parseUI.framework необходимо? И у меня уже есть проект –

+0

Ну, они не все необходимые, но попробуйте со всем SDK и посмотрите, не проблема. Также попробуйте полностью очистить и построить проект. –

+0

Наконец, проверьте свои фазы сборки -> Ссылка на двоичный файл с файлами. Добавьте недостающие рамки. –