当我运行时cordova build android --buildConfig xxxx --release,我收到以下错误:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
Run Code Online (Sandbox Code Playgroud)
奇怪的是我使用两台macOS机器进行编译,我只在其中一台机器上获得相同代码的错误.
这是./gradlew cdvPrintProps我在两台机器上的输出:
:cdvPrintProps
cdvCompileSdkVersion=26
cdvBuildToolsVersion=27.0.3
cdvVersionCode=null
cdvMinSdkVersion=21
cdvBuildMultipleApks=true
cdvReleaseSigningPropertiesFile=release-signing.properties
cdvDebugSigningPropertiesFile=null
cdvBuildArch=null
computedVersionCode=152045989
computedArmv7VersionCode=1520459892
computedX86VersionCode=1520459894
Run Code Online (Sandbox Code Playgroud)
以下是使用的插件列表:
$ cordova plugins list
cordova-custom-config 5.0.2 "cordova-custom-config"
cordova-fabric-plugin 1.1.10 "cordova-fabric-plugin"
cordova-open-native-settings 1.5.0 "Native settings"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-datepicker …Run Code Online (Sandbox Code Playgroud) 我使用自制的框架,其版本号设置在 info.plist 文件中。它对应于字段“Bundle version string”或CFBundleShortVersionString。
当我使用 XCode 13 在 testFlight 上发布应用程序时,我注意到框架的版本号已更改为与应用程序版本相对应的值。例如,如果应用程序的版本是XXX,框架的版本号是YYY,那么发布后,当我从testFlight安装应用程序时,框架的版本号从YYY更改为XXX
我很确定更改是在上传过程中完成的,因为如果我直接从 XCode 将应用程序安装到我的 iPhone,框架的版本号不会更改。
我用 XCode 12 做了测试,没有出现这种行为。这意味着这是 XCode 13 中所做的更改。
这对我来说是一个问题,因为我在代码逻辑中使用框架版本号。有什么办法可以禁用这种行为吗?