0

我知道以前有人问过这个问题,并且我已经回答了很多问题,但是经过数小时的尝试后我仍然无法解决这个问题。

我更新了我的 Scringo 和 Facebook SDK,我现在面临这个问题:

Ld /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator/Game\ Count.app/Game\ Count normal i386
cd "/Users/Mike/Documents/XCode Projects/Game Count"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.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/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator -L/Users/Mike/Documents/XCode\ Projects/Game\ Count/Libraries/Flurry -F/Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator -F/Users/Mike/Documents/XCode\ Projects/Game\ Count/Libraries/RevMob -F/Users/Mike/Documents/XCode\ Projects/Game\ Count/Libraries/Scringo -F/Users/Mike/Documents/FacebookSDK -F/Users/Mike/Documents/XCode\ Projects/Game\ Count/Game\ Count -filelist /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Intermediates/Game\ Count.build/Game\ Count-iphonesimulator/Game\ Count.build/Objects-normal/i386/Game\ Count.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -lsqlite3 -framework Security -framework Scringo -framework MobileCoreServices -framework AddressBook -framework CoreText -framework Twitter -framework MapKit -framework CoreLocation -lz -framework QuartzCore -framework EventKitUI -framework EventKit -framework FacebookSDK -framework CoreTelephony -framework CoreMedia -framework AVFoundation -framework CFNetwork -framework RevMobAds -framework SystemConfiguration -lFlurry_4.3.0 -framework CoreGraphics -framework StoreKit -framework Accounts -framework MediaPlayer -framework AudioToolbox -framework MessageUI -weak_framework AdSupport -framework iAd -framework Social -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Intermediates/Game\ Count.build/Game\ Count-iphonesimulator/Game\ Count.build/Objects-normal/i386/Game\ Count_dependency_info.dat -o /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator/Game\ Count.app/Game\ Count

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_FBWebDialogs", referenced from:
      objc-class-ref in Scringo
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我检查了我所有的框架依赖项,它们都在那里。我不知道要检查哪个 .m 文件应该包含在构建设置的“编译源”中。

任何见解将不胜感激。

4

2 回答 2

1

在使用最新的 Scringo 版本时,请确保您使用的是最新的 Facebook SDK(或至少 3.5)。库版本可能有些不匹配。

于 2013-11-06T14:33:31.693 回答
0

从中选择您的目标TARGETS并转到Build Phases> Compile Sources>Link Binary With Libraries部分。检查 Scringo 框架是否存在。如果没有添加它。

如果是,那么看起来您更新的 Scringo SDK 没有针对 iOS 模拟器所具有的 i386 架构进行编译。

于 2013-11-04T21:16:48.207 回答