1

持っていた古いゲームに 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
4

2 に答える 2

1

あなたが従った指示は古くなっています。どこで見つけたか教えていただけますか?

最新の手順については、http: //developer.getpebble.com/2/mobile-app-guide/ios-guide.htmlをご覧ください。

于 2014-01-09T18:38:04.410 に答える