q***@163.com
q***@163.com
  • 发布:2018-05-23 00:17
  • 更新:2018-11-28 14:43
  • 阅读:2191

ios去年5月份老版本升级sdk无法编译

分类:5+ SDK

去年的老项目,还可以跑起来,相适配iPhoneX,同时升级一下各sdk。替换了sdk下的文件,也替换了项目文件夹下的各bundle文件,结果无法编译成功。

Ld /Users/zhaojinxi/Library/Developer/Xcode/DerivedData/SPApp-dhnvammmwnzzjagkcuojyxyfszfl/Build/Products/Debug-iphoneos/SPApp.app/SPApp normal arm64
cd /Users/zhaojinxi/桌面备份/SPBApp/HBuilder-Hello
export IPHONEOS_DEPLOYMENT_TARGET=9.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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk -L/Users/zhaojinxi/Library/Developer/Xcode/DerivedData/SPApp-dhnvammmwnzzjagkcuojyxyfszfl/Build/Products/Debug-iphoneos -L/Users/zhaojinxi/桌面备份/SPBApp/HBuilder-Hello/../SDK/libs -F/Users/zhaojinxi/Library/Developer/Xcode/DerivedData/SPApp-dhnvammmwnzzjagkcuojyxyfszfl/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/zhaojinxi/桌面备份/SPBApp/HBuilder-Hello/../SDK/libs -filelist /Users/zhaojinxi/Library/Developer/Xcode/DerivedData/SPApp-dhnvammmwnzzjagkcuojyxyfszfl/Build/Intermediates.noindex/SPApp.build/Debug-iphoneos/SPApp.build/Objects-normal/arm64/SPApp.LinkFileList -miphoneos-version-min=9.1 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/zhaojinxi/Library/Developer/Xcode/DerivedData/SPApp-dhnvammmwnzzjagkcuojyxyfszfl/Build/Intermediates.noindex/SPApp.build/Debug-iphoneos/SPApp.build/Objects-normal/arm64/SPApp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-link-runtime -ObjC -lpingpp -lpingpppay -framework CoreMotion -framework QuickLook -framework Foundation -framework CoreGraphics -framework CoreData -framework UserNotificationsUI -framework UserNotifications -lwxpay -lcoreSupport -lstdc++ -lxml2 -framework UIKit -framework CFNetwork -framework CoreAudioKit -framework CoreAudio -framework CoreMedia -framework CoreFoundation -lz -lsqlite3.0 -framework Security -framework SystemConfiguration -framework JavaScriptCore -framework WebKit -lalixpayment -lASIHttpRequest -lBaiduKeyVerify -lBaiduMobStatForSDK -lBaiduWalletSDK -framework BaiduMapAPI_Base -lbmapimp -lGeTuiPush -lGeTuiSdk -lIAPPay -liflySpeech -lJSONKit -llibAccelerometer -llibBarcode -llibCache -llibCamera -llibContacts -lMiOauth -llibGeolocation -llibIO -framework BaiduMapAPI_Map -llibLog -llibMap -llibMedia -llibMessage -llibNativeObj -llibNativeUI -llibNavigator -llibOauth -lcrypto -llibOrientation -llibPayment -llibPGInvocation -llibPGProximity -llibPush -llibShare -llibSpeech -llibStatistic -llibStorage -llibUI -llibWebNavi -framework UMMobClick -llibXHR -llibZip -lopencore-amrnb -lPushSDK -lQQOauth -lQQShare -lSDWebImage -lSinaShare -lSinaWBOauth -framework MiPassport -lTCWeiboSDK -lTencentShare -framework BaiduMapAPI_Utils -lTouchJSON -lUPPayPlugin -lWeChatSDK -lWeiboSDK -lweixinShare -lWXOauth -framework BaiduMapAPI_Location -framework AlipaySDK -llibPDRCore -framework iflyMSC -framework TencentOpenAPI -lc++ -licucore -lstdc++.6 -liconv.2 -lssl -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 AudioToolbox -framework MediaPlayer -framework CoreTelephony -framework CoreVideo -framework MobileCoreServices -Xlinker -dependency_info -Xlinker /Users/zhaojinxi/Library/Developer/Xcode/DerivedData/SPApp-dhnvammmwnzzjagkcuojyxyfszfl/Build/Intermediates.noindex/SPApp.build/Debug-iphoneos/SPApp.build/Objects-normal/arm64/SPApp_dependency_info.dat -o /Users/zhaojinxi/Library/Developer/Xcode/DerivedData/SPApp-dhnvammmwnzzjagkcuojyxyfszfl/Build/Products/Debug-iphoneos/SPApp.app/SPApp

ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/zhaojinxi/桌面备份/SPBApp/SDK/Libs/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_call_SYSV from /Users/zhaojinxi/桌面备份/SPBApp/SDK/Libs/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from /Users/zhaojinxi/桌面备份/SPBApp/SDK/Libs/liblibPGInvocation.a(sysv_arm64.o)
Undefined symbols for architecture arm64:
"_OBJCCLASS$_PayResp", referenced from:
objc-class-ref in libpingpp.a(Pingpp.o)
objc-class-ref in libwxpay.a(PGWXPay.o)
"_OBJCCLASS$_PayReq", referenced from:
objc-class-ref in libpingpp.a(Pingpp.o)
objc-class-ref in libwxpay.a(PGWXPay.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

发现other link flags去掉ObjC后能编译,但是会闪退,-[__NSCFString JSONValue]: unrecognized selector sent to instance 0x1c42271e0

2018-05-23 00:17 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

解决了么 出现相同的问题

2***@qq.com

2***@qq.com

如果使用的最新版本的H5+sdk 使用微信支付请使用 libWeChatSDK_pay.a 这个库

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