Undefined symbols for architecture arm64
zhouge870103 opened this issue · comments
zhouge870103 commented
引用2.3.1-iOS-NoPay。xcode编译成功
使用3.0.1版本提示
Undefined symbols for architecture arm64:
"OBJC_CLASS$_PayResp", referenced from:
objc-class-ref in wechat_kit(WechatKitPlugin.o)
"OBJC_CLASS$_PayReq", referenced from:
objc-class-ref in wechat_kit(WechatKitPlugin.o)
droplet commented
试试看修改 podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
# 兼容 Flutter 2.5
target.build_configurations.each do |config|
# config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386 arm64'
end
end
end
zhouge870103 commented
试试看修改 podfile
post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) # 兼容 Flutter 2.5 target.build_configurations.each do |config| # config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386 arm64' end end end
我是用真机调试的