小编Ame*_*rat的帖子

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

今天突然间,当从 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 == …
Run Code Online (Sandbox Code Playgroud)

ios stripe-payments swift react-native

7
推荐指数
1
解决办法
1万
查看次数

获取 yLabel 值 onclick 图表 js

当我点击栏时,我想要 y 标签值。

<code>barImage</code>

像上面的例子一样,当我点击 feb 蓝色条时,我想要标签值,即 40

我在 stackOverFlow 和其他网站上寻找示例,但他们只有图例显示的标签示例。

我试过的一些代码

onClick: function(evt, element) {
      var activePoints = bar_chart.getElementAtEvent(evt);
      console.log(activePoints[0]._model.datasetLabel);
}
Run Code Online (Sandbox Code Playgroud)

javascript chart.js

6
推荐指数
2
解决办法
9466
查看次数

S3存储桶AWS您无法授予公共访问权限,因为为此帐户已启用了阻止公共访问设置

我想向所有人公开S3存储桶,但是这样做时我被拒绝访问

You can't grant public access because Block public access settings 
are turned on for this account. To determine which settings are 
turned on, check your Block public access settings.
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

当我进入公共访问设置时,所有功能均已关闭。

在此处输入图片说明

我确实设置了IAM用户,并且用户具有AmazonS3FullAccess策略

{
"Version": "2012-10-17",
"Statement": [
    {
        "Effect": "Allow",
        "Action": "s3:*",
        "Resource": "*"
    }
  ]
 }
Run Code Online (Sandbox Code Playgroud)

我确实设定了策略

{
"Version": "2012-10-17",
"Id": "Policy1557294263403",
"Statement": [
    {
        "Sid": "Stmt1557294241958",
        "Effect": "Allow",
        "Principal": {
            "AWS": "arn:aws:iam::726051891502:user/borroup-admin"
        },
        "Action": "s3:*",
        "Resource": [
            "arn:aws:s3:::borroup",
            "arn:aws:s3:::borroup/*"
        ]
      }
    ]
 }
Run Code Online (Sandbox Code Playgroud)

我确实在存储桶上设置了CORS配置编辑器

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails amazon-s3 amazon-web-services aws-sdk

4
推荐指数
1
解决办法
5568
查看次数