Apple Mach-O链接器错误(链接器命令失败,找不到-liPhone-lib的库)

时间:2014-07-31 09:37:48

标签: ios xcode linker linker-errors

在Xcode 5.0中尝试构建我的游戏(使用Unity 4.5)时出现此错误。我试图删除"图书馆/框架搜索路径" (似乎是许多人的解决方案)但没有成功。

我正在使用" Google Play游戏服务"插件和"社交移动插件" (使用Facebook SDK for Unity)。

由于我没有很多Xcode的经验,所以我真的不知道我在这里处理什么,所以我很抱歉下面的长错误信息,但也许有人可以从中得到一些东西:

(我也试图找到这个" liPhone库"但我想我误解了一些东西,因为我无法在任何地方找到类似的东西。)


Apple Mach-O链接器错误:

ld: library not found for -liPhone-lib
clang: error: linker command failed with exit code 1 (use -v to see invocation)

错误附带的其余部分:

Ld /Users/lw/Library/Developer/Xcode/DerivedData/Unity-iPhone-erqtfljbogqrgkbcdfzjhxkvjikg/Build/Products/MyGame.app/MyGame normal armv7
    cd /Users/lw/Documents/MyGame/MyGame_xcode
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    setenv 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/iPhoneOS7.0.sdk -L/Users/lw/Library/Developer/Xcode/DerivedData/Unity-iPhone-erqtfljbogqrgkbcdfzjhxkvjikg/Build/Products -L/Users/lw/Documents/MyGame/Assets/Facebook/Editor/iOS/FacebookSDK -F/Users/lw/Library/Developer/Xcode/DerivedData/Unity-iPhone-erqtfljbogqrgkbcdfzjhxkvjikg/Build/Products -F/Users/lw/Documents/GPG/google-plus-ios-sdk-1.7.0 -F/Users/lw/Documents/GPG/GooglePlayGames-iOS-SDK -F/Users/lw/Documents/MyGame/MyGame_xcode/Libraries -filelist /Users/lw/Library/Developer/Xcode/DerivedData/Unity-iPhone-erqtfljbogqrgkbcdfzjhxkvjikg/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MyGame.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -ObjC -stdlib=libstdc++ -fobjc-link-runtime -miphoneos-version-min=6.1 -lz -framework GoogleOpenSource -framework GooglePlus -framework GooglePlayGames -lc++ -framework SystemConfiguration -weak_framework Security -framework QuartzCore -framework MediaPlayer -framework CoreText -weak_framework CoreMotion -framework CoreLocation -framework CoreData -framework AssetsLibrary -framework AddressBook -framework Foundation -framework UIKit -framework OpenGLES -framework OpenAL -liconv.2 -framework AudioToolbox -framework CFNetwork -weak_framework iAd -liPhone-lib -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework GameKit -weak-lsqlite3.0 /Users/lw/Documents/MyGame/Assets/Facebook/Editor/iOS/FacebookSDK/FacebookSDK.a -weak_framework Accounts -weak_framework AdSupport -weak_framework Social -Xlinker -dependency_info -Xlinker /Users/lw/Library/Developer/Xcode/DerivedData/Unity-iPhone-erqtfljbogqrgkbcdfzjhxkvjikg/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MyGame_dependency_info.dat -o /Users/lw/Library/Developer/Xcode/DerivedData/Unity-iPhone-erqtfljbogqrgkbcdfzjhxkvjikg/Build/Products/MyGame.app/MyGame

0 个答案:

没有答案