架构 i386 的未定义符号 - 更新了 Scringo



我知道以前有人问过这个问题,我已经经历了很多答案,但经过几个小时的尝试,我仍然无法解决这个问题。

我更新了我的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文件应该包含在构建设置中的"编译源代码"中。

任何见解将不胜感激。

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

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

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

最新更新