Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Sentry wizard install into bare react-native project breaks use of react-native-version because of code added to project.pbxproj

Đã đóng
#3,888 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react-native
Lĩnh vực
build-system, mobile

Hướng nghiên cứu

Tái hiện trình hướng dẫn cài đặt Sentry trên một dự án iOS React Native nguyên bản và kiểm tra mục shellScript được tạo trong project.pbxproj. So sánh mục này với ví dụ trước khi cài đặt và chạy react-native-version trên kết quả. Được xem là hoàn tất khi project.pbxproj được cài đặt bởi trình hướng dẫn vẫn có thể được react-native-version phân tích, đồng thời giữ lại các lệnh Sentry và React Native.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Errors Improvement React-Native

OS:

  • Windows
  • [ X] MacOS
  • Linux

Platform:

  • [ X] iOS
  • Android

SDK:

  • [X ] @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 0.0.0

react-native version: 0.0.0

Are you using Expo?

  • Yes
  • [X ] No

Are you using sentry.io or on-premise?


I have the following issue:

The sentry install wizard updated my project.pbxproj file and made it unparseable by react-native-version

Previous bits

shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";

New (and unparse-able bits) result:

shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT \\\"/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode.sh $REACT_NATIVE_XCODE\\\"\"\n";

Error from react-nativer-version

[RNV] SyntaxError: Expected "\"", "\\'", "\\\"", "\\n", or [^\\"] but "\\" found.
Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
372
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
103

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-react-native

Tất cả issue của getsentry/sentry-react-native

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.