noprom
noprom
  • 发布:2016-11-05 20:12
  • 更新:2016-11-26 01:24
  • 阅读:10141

iOS SDK 打包报错, 提示缺少库文件: ld: library not found for -lcrt1.3.1.o

分类:5+ SDK

使用最新的iOS-SDK@1.9.9.26255_20160929.zip SDK进行打包, 下载下来只改了包名,其他什么都没有改,使用的都是自带的MUI程序,操作环境如下:

  • Mac OS: 10.12 (16A323)
  • XCode: Version 8.0 (8A218a)
  • HBuilder: HBuilder 7.5.1.201610112114

打包出现以下错误, 提示缺少库文件

Ld /Users/noprom/Library/Developer/Xcode/DerivedData/HBuilder-Hello-gaiguaqpgiaoxofvpczgajpkxmqi/Build/Intermediates/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/xueshenghui.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder normal armv7  
    cd "/Users/noprom/Documents/Dev/DCloud/XueShengHui/XueShengHuiIOS/iOS-SDK@1.9.9.26255_20160929/HBuilder-Hello"  
    export IPHONEOS_DEPLOYMENT_TARGET=5.1.1  
    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/iPhoneOS10.0.sdk -L/Users/noprom/Library/Developer/Xcode/DerivedData/HBuilder-Hello-gaiguaqpgiaoxofvpczgajpkxmqi/Build/Intermediates/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos -L/Users/noprom/Documents/Dev/DCloud/XueShengHui/XueShengHuiIOS/iOS-SDK@1.9.9.26255_20160929/HBuilder-Hello/../SDK/libs -F/Users/noprom/Library/Developer/Xcode/DerivedData/HBuilder-Hello-gaiguaqpgiaoxofvpczgajpkxmqi/Build/Intermediates/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/noprom/Documents/Dev/DCloud/XueShengHui/XueShengHuiIOS/iOS-SDK@1.9.9.26255_20160929/HBuilder-Hello/../SDK/libs -filelist /Users/noprom/Library/Developer/Xcode/DerivedData/HBuilder-Hello-gaiguaqpgiaoxofvpczgajpkxmqi/Build/Intermediates/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/xueshenghui.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder.LinkFileList -miphoneos-version-min=5.1.1 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/noprom/Library/Developer/Xcode/DerivedData/HBuilder-Hello-gaiguaqpgiaoxofvpczgajpkxmqi/Build/Intermediates/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/xueshenghui.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder_lto.o -fobjc-link-runtime -ObjC -framework QuickLook -framework CoreMotion -framework CFNetwork -framework Security -framework SystemConfiguration -framework JavaScriptCore -framework WebKit -lalixpayment -lASIHttpRequest -lBaiduKeyVerify -lBaiduMobStatForSDK -lBaiduWalletSDK -framework BaiduMapAPI_Base -lbmapimp -lcoreSupport -lGeTuiPush -lGeTuiSdk -lIAPPay -liflySpeech -lJSONKit -llibAccelerometer -llibBarcode -llibCache -llibCamera -llibContacts -llibGeolocation -llibIO -framework BaiduMapAPI_Map -llibLog -llibMap -llibMedia -llibMessage -llibNativeObj -llibNativeUI -llibNavigator -llibOauth -llibOrientation -llibPayment -llibPDRCore -llibPGInvocation -llibPGProximity -llibPush -llibShare -llibSpeech -llibStatistic -llibStorage -llibUI -llibWebNavi -framework UMMobClick -llibWidget -llibXHR -llibZip -lopencore-amrnb -lpingpp -lpingpppay -lPushSDK -lQQOauth -lQQShare -lSDWebImage -lSinaShare -lSinaWBOauth -lTCWeiboSDK -lTencentShare -framework BaiduMapAPI_Utils -lTouchJSON -lUPPayPlugin -lWeChatSDK -lWeiboSDK -lweixinShare -lWXOauth -lwxpay -framework BaiduMapAPI_Location -framework AlipaySDK -framework iflyMSC -framework TencentOpenAPI -lc++ -lstdc++ -licucore -lz -lxml2 -lstdc++.6 -liconv.2 -lsqlite3.0 -framework CoreBluetooth -framework ImageIO -framework AssetsLibrary -framework CoreLocation -framework OpenGLES -framework MapKit -framework Accounts -framework Social -framework AddressBookUI -framework MessageUI -framework AVFoundation -framework AddressBook -framework BaiduMapAPI_Search -framework CoreGraphics -framework Foundation -framework AudioToolbox -framework MediaPlayer -framework CoreTelephony -framework CoreVideo -framework CoreMedia -framework MobileCoreServices -framework UIKit -Xlinker -dependency_info -Xlinker /Users/noprom/Library/Developer/Xcode/DerivedData/HBuilder-Hello-gaiguaqpgiaoxofvpczgajpkxmqi/Build/Intermediates/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/xueshenghui.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder_dependency_info.dat -o /Users/noprom/Library/Developer/Xcode/DerivedData/HBuilder-Hello-gaiguaqpgiaoxofvpczgajpkxmqi/Build/Intermediates/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/xueshenghui.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder  
  
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7  
ld: library not found for -lcrt1.3.1.o  
clang: error: linker command failed with exit code 1 (use -v to see invocation)

具体错误见附件图片, 希望官方称愿早日解答。

2016-11-05 20:12 负责人:无 分享
已邀请:
骁骑

骁骑

http://ask.dcloud.net.cn/question/23540?notification_id-125569__rf-false__item_id-36121__answer_id-36121__single-TRUE#!answer_36121

该问题目前已经被锁定, 无法添加新回复