SwiftEmitModule 正常 x86_64 Emitting\ module\ for\ Stripe(在项目“Pods”的目标“Stripe”中)

Ame*_*rat 7 ios stripe-payments swift react-native

今天突然间,当从 xcode 构建 ios 或运行此命令yarn ios 时,我开始收到此错误

以下构建命令失败:SwiftEmitModule 正常 x86_64 Emitting\ module\ for\ Stripe(在项目“Pods”的目标“Stripe”中)(1 次失败)

这是我的 Podfile

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '16.0'
target 'BorroUp' do
  rn_path = '../node_modules/react-native'
  rn_maps_path = '../node_modules/react-native-maps'
  config = use_native_modules!
  use_react_native!(:path => config["reactNativePath"])
  target 'BorroUpTests' do
    inherit! :complete
    # Pods for testing
  end
  pod 'react-native-google-maps', path: rn_maps_path
  pod 'Google-Maps-iOS-Utils'
  pod 'GoogleMaps'
  pod 'Stripe', '21.3.1'
  use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' })
  post_install do |installer|
    installer.pods_project.targets.each do |target|
       if target.name == 'react-native-google-maps'
           target.build_configurations.each do |config|
           config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
        end
    end
  end
    flipper_post_install(installer)
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      end
    end
  end
end
Run Code Online (Sandbox Code Playgroud)

Ame*_*rat 4

这个问题似乎与 XCode 14 beta 1 有关。通过删除对 pkDidSelectShippingMethodSignature 的转换修复了这个问题,因此代码如下所示:

let pk_didSelectShippingMethod = #selector(
            PKPaymentAuthorizationControllerDelegate.paymentAuthorizationController(
                _:didSelectShippingMethod:handler:))
Run Code Online (Sandbox Code Playgroud)

来源: https: //github.com/stripe/stripe-ios/issues/1973