wechat_kit icon indicating copy to clipboard operation
wechat_kit copied to clipboard

Undefined symbols for architecture arm64

Open zhouge870103 opened this issue 2 years ago • 2 comments

引用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)

zhouge870103 avatar Jan 21 '22 08:01 zhouge870103

试试看修改 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

droplet-js avatar Jan 28 '22 13:01 droplet-js

试试看修改 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 avatar Feb 08 '22 12:02 zhouge870103