RxReader / wechat_kit

Flutter版微信登录/分享/支付 SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined symbols for architecture arm64

zhouge870103 opened this issue · 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)

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

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

我是用真机调试的