2017-01-30 88 views
-1

将Unity项目编译为iOS并收到错误。禁用Bitcode。ld:找不到-lPods-Unity-iPhone的库

Ld /Users/kisuroso/Library/Developer/Xcode/DerivedData/Unity-iPhone-bjemlyxqozcusqbeibtfjsvjnkcv/Build/Products/ReleaseForRunning-iphoneos/mygamename.app/mygamename normal armv7 
cd /Users/kisuroso/Desktop/lc4 
export IPHONEOS_DEPLOYMENT_TARGET=6.0 
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneOS9.2.sdk -L/Users/kisuroso/Library/Developer/Xcode/DerivedData/Unity-iPhone-bjemlyxqozcusqbeibtfjsvjnkcv/Build/Products/ReleaseForRunning-iphoneos -L/Users/kisuroso/Desktop/lc4 -L/Users/kisuroso/Desktop/lc4/Libraries -L/Users/kisuroso/Desktop/lc4/Libraries/Plugins/iOS -F/Users/kisuroso/Library/Developer/Xcode/DerivedData/Unity-iPhone-bjemlyxqozcusqbeibtfjsvjnkcv/Build/Products/ReleaseForRunning-iphoneos -F/Users/kisuroso/Desktop/lc4/../../myprojectname/Assets/Editor/Vungle/VungleSDK -F/Users/kisuroso/Desktop/lc4/Frameworks/Plugins/iOS -F/Users/kisuroso/Desktop/lc4/Frameworks -F/Users/kisuroso/Desktop/lc4/Libraries -filelist /Users/kisuroso/Library/Developer/Xcode/DerivedData/Unity-iPhone-bjemlyxqozcusqbeibtfjsvjnkcv/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/mygamename.LinkFileList -Xlinker -map -Xlinker /Users/kisuroso/Library/Developer/Xcode/DerivedData/Unity-iPhone-bjemlyxqozcusqbeibtfjsvjnkcv/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/mygamename-LinkMap-normal-armv7.txt -miphoneos-version-min=6.0 -dead_strip -weak_framework CoreMotion -weak-lSystem -ObjC -ObjC -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -lsqlite3 -lz -framework SystemConfiguration -framework CoreData -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework MediaPlayer -framework OpenAL -framework OpenGLES -lAdapterUnity -framework QuartzCore -framework UIKit -liconv.2 -framework AdColony -lGoogleAnalyticsServices -framework StoreKit -weak_framework Metal -framework CoreTelephony -framework EventKit -framework UnityAds -framework EventKitUI -framework MessageUI -lz.1.2.5 -weak_framework Social -weak_framework Webkit -lPods-Unity-iPhone -framework GoogleMobileAds -framework GLKit -framework JavaScriptCore -framework MobileCoreServices -framework SafariServices -framework WebKit -framework VungleSDK -weak_framework AdSupport -lsqlite3 -lz.1.1.3 -Xlinker -dependency_info -Xlinker /Users/kisuroso/Library/Developer/Xcode/DerivedData/Unity-iPhone-bjemlyxqozcusqbeibtfjsvjnkcv/Build/Intermediates/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/mygamename_dependency_info.dat -o /Users/kisuroso/Library/Developer/Xcode/DerivedData/Unity-iPhone-bjemlyxqozcusqbeibtfjsvjnkcv/Build/Products/ReleaseForRunning-iphoneos/mygamename.app/mygamename 

LD:库没有发现-lPods,团结,iPhone 铛:错误:连接命令,退出代码1失败(使用-v看到调用)

任何想法?谢谢

回答

0

在主项目中删除了libPods-Unity-iPhone.a,现在可以工作。