2022-06-09 warning: None of the

2022-06-09  本文已影响0人  我是小胡胡分胡

warning: None of the architectures in ARCHS (arm64, armv7) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (x86_64). (in target 'Runner' from project 'Runner')

  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64'}
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64','EXCLUDED_ARCHS[sdk=iphonesimulator*]' => '$(inherited) arm64 i386' }

最后的配置如下:

  s.dependency 'Flutter'
  s.platform = :ios, '9.0'

  s.pod_target_xcconfig = {'DEFINES_MODULE' => 'YES', 'OTHER_LDFLAGS' => '-lObjC', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => '$(inherited) arm64 i386'}
  
  s.frameworks = ["SystemConfiguration", "CoreTelephony","WebKit","CFNetwork","Security","SafariServices","CoreGraphics"]
  s.libraries = ["z","c++"]
  s.vendored_libraries = "Classes/paymentcontrolMini/libs/libPaymentControlMini.a"

在插件example 还一直是报错
集成到flutter app项目。没问题
所以什么原因?

上一篇下一篇

猜你喜欢

热点阅读