NativeScript / NativeScript/nativescript-cli

iOS issue with auto app signing while using plugin with custom framework

Đang mở
#4,691 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

bug build os: ios
Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Environment

  • CLI: 5.4.0
  • Cross-platform modules:5.4.1
  • Android Runtime:5.4.0
  • iOS Runtime:5.4.0

Describe the bug
The auto application signing will fail while building a project with tns run ios command where we have a plugin with custom native Framework. The following error will be thrown:

error: Provisioning profile "iOS Team Provisioning Profile: *" is Xcode managed, but signing settings require a manually managed profile. (in target 'demo')
note: Using new build systemnote: Planning buildnote: Constructing build description

It seems that the CLI does not mark the external Frameworks for signing.

Workaround

  1. open <app_name>/app/App_Resources/iOS/build.xcconfig and remove the line where the DEVELOPMENT_TEAM is set up

  2. In the terminal execute tns run ios --provision command. This will print a list of the provisioning profiles, that are available on your machine. In the very first column, the id of the provisions will be printed. This id will be used in the next step.

  3. build the project with tns run ios --provision <provisioning profile id here>.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện bản build với tns run ios bằng một plugin có Framework native tùy chỉnh, sau đó so sánh với workaround --provision đã được ghi lại. Kiểm tra \u003capp_name\u003e/app/App_Resources/iOS/build.xcconfig được tạo ra và hành vi ký của Framework bên ngoài. Hoàn tất khi việc ký ứng dụng tự động thành công mà không cần xóa thủ công DEVELOPMENT_TEAM hoặc chọn provisioning profile.

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

Đánh giá

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

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.