Open estherzhangyue opened 1 month ago
我把fluter项目的里的poffile文件里这样改了下,可以打成framework了 platform :ios, '12.0' //最低12
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
end
end
end:
还需要去华为开发平台下载ScanKitFrameWork.framework and ScanKitFrameWorkBundle.bundle放在原生项目里https://developer.huawei.com/consumer/en/doc/HMSCore-Guides/ios-integrating-sdk-0000001050172400
version: flutter_scankit: ^2.0.3
problem: our flutter app is as a module in an iOS native project, so we need build framework first, but it popup error when Building plugins.Here is error log:
do we have some solution to fix this error?