ssnet
ssnet
  • 发布:2020-12-23 14:02
  • 更新:2020-12-24 13:55
  • 阅读:737

#插件讨论# 【 StoreKit - DCloud_IOS_XTY 】V3编译器失效了,大佬能否更新下

分类:uni-app

您好!这个插件在 V3 中无法使用了,错误信息如下(HBX版本 2.9.8)

···
13:48:06.582 [JS Framework] Failed to execute the callback function:
13:48:06.612 TypeError: undefined is not an object (evaluating 'storeKit.review') __ERROR
···

大佬能否更新这个插件,或者告知如何处理。非常感谢!

2020-12-23 14:02 负责人:DCloud_IOS_XTY 分享
已邀请:
ssnet

ssnet (作者)

下面是我的代码,在老编译器中很正常。

if (plus.os.name == 'iOS') {  
            //#ifdef APP-PLUS  
                setTimeout(() => {  
                    const storeKit = uni.requireNativePlugin('Xty-StoreKit');  
                    storeKit.review();  
                }, 30000);  
            //#endif   
            }               
  • DCloud_IOS_XTY

    离线打包还在在线打包?

    2020-12-23 18:14

  • ssnet (作者)

    回复 DCloud_IOS_XTY: 在线打包

    2020-12-24 09:27

  • ssnet (作者)

    回复 DCloud_IOS_XTY: 云打包测试基座失败了,好像是和arm64有关,错误日志我粘贴在下面了

    2020-12-24 13:58

  • DCloud_IOS_XTY

    回复 DCloud_IOS_XTY: 我试了下插件市场的插件是正常的,请提供下你打的ipa

    2020-12-24 15:07

  • ssnet (作者)

    回复 DCloud_IOS_XTY: 我删除了本地插件,重新加载云端插件,这次打包成正式版,不是基座,确实是正常的,弹出了评分窗口。看来是v3基座的问题,我记得老版本的编译器基座测试也是可以的。

    2020-12-24 15:57

  • ssnet (作者)

    回复 DCloud_IOS_XTY: 基座ipa已经私信给你

    2020-12-24 16:03

  • DCloud_IOS_XTY

    回复 ssnet: 你发我的基座我这里可以正常弹出

    2020-12-25 10:32

  • ssnet (作者)

    回复 DCloud_IOS_XTY: 好吧,不知道我的环境有什么问题,还好正式包上正常。

    再次谢谢你多次的测试。

    2020-12-27 22:24

ssnet

ssnet (作者)

非常感谢!马上去试试。

ssnet

ssnet (作者)

你好,我把插件放入本地插件目录,然后云打包测试基座失败,好像是和arm64的兼容问题。具体相关错误日志如下:

Ld /Users/seaman安装包制作目录/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder normal arm64 (in target 'HBuilder' from project 'HBuilder')
cd /Users/seaman安装包制作目录
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -L/Users/seaman安装包制作目录/build/Release-iphoneos -L/Users/seaman/srv/io.dcloud.package/ios/source/libs/Universal -L/Users/seaman安装包制作目录/wgtRoot/UNIDCC9BD1/nativeplugins/Xty-StoreKit/ios/ -F/Users/seaman安装包制作目录/build/Release-iphoneos -F/Users/seaman/srv/io.dcloud.package/ios/source/libs/Universal -F/Users/seaman安装包制作目录/wgtRoot/UNIDCC9BD1/nativeplugins/Xty-StoreKit/ios/ -F/Users/seaman/srv/io.dcloud.package/ios/source/libs/Universal -F/Users/seaman安装包制作目录/wgtRoot/UNIDCC9BD1/nativeplugins/Xty-StoreKit/ios/ -filelist /Users/seaman安装包制作目录/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/seaman安装包制作目录/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder_lto.o -fobjc-arc -fobjc-link-runtime -ObjC -llibAdSupport -llibLoader -llibPDRCore -lcoreSupport -llibAccelerometer -lopencore-amrnb -lmp3lame -llibMedia -llibCache -llibCrypt -llibLog -llibIO -llibPGInvocation -llibNativeObj -llibNativeUI -llibNavigator -llibOrientation -llibPGProximity -llibStorage -llibUI -llibXHR -llibZip -llibBarcode -lDCUniZXing -luchardet -llibCamera -llibGeolocation -lBaiduKeyVerify -lssl -lcrypto -lDCUniBarcode -llibPush -llibShare -lH5WEUIWebview -llibWeex -lSDWebImage -lUniAD -lUniADWeex -lSinaShare -lWeiboSDK -lweixinShare -lWeChatSDK -lQQShare -lUniPush -llibStatistic -llibWeexDevTool -weak_framework AdSupport -weak_framework AssetsLibrary -weak_framework AddressBook -weak_framework AddressBookUI -weak_framework AudioToolbox -weak_framework AVFoundation -weak_framework BaiduMapAPI_Base -weak_framework BaiduMapAPI_Location -weak_framework BaiduMapAPI_Search -weak_framework CFNetwork -weak_framework CoreFoundation -weak_framework CoreMotion -weak_framework CoreGraphics -weak_framework CoreLocation -weak_framework CoreMedia -weak_framework CoreTelephony -weak_framework CoreText -weak_framework CoreVideo -weak_framework Foundation -weak_framework ImageIO -weak_framework JavaScriptCore -weak_framework MobileCoreServices -weak_framework MediaPlayer -weak_framework Photos -weak_framework QuartzCore -weak_framework QuickLook -weak_framework Security -weak_framework storage -weak_framework SystemConfiguration -weak_framework UIKit -weak_framework UserNotifications -weak_framework WebKit -lc++ -lz -lxml2 -lsqlite3 -weak_framework PhotosUI -licucore -weak_framework TencentOpenAPI -weak_framework GTSDK -lresolv -weak_framework UMAnalytics -weak_framework UMCommon -weak_framework StoreKit -weak_framework X1Storekit -Xlinker -dependency_info -Xlinker /Users/seaman安装包制作目录/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder_dependency_info.dat -o /Users/seaman安装包制作目录/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder
ld: warning: arm64 function not 4-byte aligned: _ffi_call_SYSV from /Users/seaman/srv/io.dcloud.package/ios/source/libs/Universal/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from /Users/seaman/srv/io.dcloud.package/ios/source/libs/Universal/liblibPGInvocation.a(sysv_arm64.o)
Undefined symbols for architecture arm64:
\"_OBJCCLASS$_DCUniModule\", referenced from:
_OBJCCLASS$_X1StoreKtiMoudle in X1Storekit(X1StoreKtiMoudle.o)
\"_OBJCMETACLASS$_DCUniModule\", referenced from:
_OBJCMETACLASS$_X1StoreKtiMoudle in X1Storekit(X1StoreKtiMoudle.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
BUILD FAILED The following build commands failed:
Ld /Users/seaman安装包制作目录/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder normal arm64
(1 failure)

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