2014-01-03 2 views
1

Я взял старую игру, которую у меня был, и хотел добавить PebbleFramework, и теперь я получаю эти предупреждения и ошибки. Я правильно выполнил их документацию.PebbleFramework дает мне массу предупреждений и ошибок

Любая помощь будет в значительной степени быть оценены

Ld /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator/TicTacToe.app/TicTacToe normal i386 
    cd /Users/developer/Developer/iOS/TicTac 
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.0 
    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/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator -F/Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator -F/Users/developer/Developer/iOS/TicTac -F/Users/developer/Downloads/TicTac -filelist /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Intermediates/TicTacToe.build/Debug-iphonesimulator/TicTacToe.build/Objects-normal/i386/TicTacToe.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0 -framework CoreLocation -lz -framework ExternalAccessory -framework CoreBluetooth -framework CoreMotion -framework MessageUI -framework GameKit -framework iAd -framework AudioToolbox -framework AVFoundation -framework SystemConfiguration -framework AdSupport -framework CoreGraphics -framework QuartzCore -framework UIKit -framework PebbleVendor -framework PebbleKit -framework Foundation -framework RevMobAds -Xlinker -dependency_info -Xlinker /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Intermediates/TicTacToe.build/Debug-iphonesimulator/TicTacToe.build/Objects-normal/i386/TicTacToe_dependency_info.dat -o /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator/TicTacToe.app/TicTacToe 

ld: warning: directory not found for option '-F/Users/developer/Downloads/TicTac' 
Undefined symbols for architecture i386: 
    "_kCFErrorDomainCFNetwork", referenced from: 
     -[QServer netService:didNotPublish:] in PebbleKit(QServer.o) 
    "_kCFStreamErrorDomainNetServices", referenced from: 
     -[QServer netService:didNotPublish:] in PebbleKit(QServer.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Ниже приведены инструкции, которые я затем при добавлении рамки PebbleKit.

## Integrating PebbleKit Manually 

- Drag PebbleKit.framework into project 
- Drag in PebbleVendor.framework into the project, or, drag the PebbleVendor.xcodeproj into project if you need to control the 3rd party components needed for PebbleKit. 
- Link ExternalAccessory.framework, libz.dylib, CoreBluetooth.framework, CoreMotion.framework and MessageUI.framework 
- Add "-ObjC" linker flag to your project's build settings 
- Add the value "com.getpebble.public" to the "Supported external accessory protocols" (UISupportedExternalAccessoryProtocols) array in your app's Info.plist 
- Optionally, add the value "App communicates with an accessory" (external-accessory) to the "Required background modes" (UIBackgroundModes) array in your app's Info.plist 
+1

инструкции вы следовали устарело. Не могли бы вы сообщить нам, где вы их нашли? Современные инструкции доступны здесь: https://developer.getpebble.com/2/mobile-app-guide/ios-guide.html/ – sarfata

+0

Просьба представить ваш комментарий в качестве ответа, чтобы я мог дать вам ответ на галочку ! –

ответ

3

Удостоверьтесь, что CFNetwork также связан с вашим приложением.

Смежные вопросы