NativeScript / NativeScript/nativescript-cli

Export fails when using provisioning in build.xconfig and XCode9.1

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

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

code signing os: ios reproducible
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ả

This is the same problem as #3046 but when using the build.xconfig file to supply provisioning instead of the CLI options. I'm using CLI 3.3 and have the following setup in the build.xconfig

DEVELOPMENT_TEAM = 8S2LJDD3SB;

CODE_SIGN_ENTITLEMENTS = HM4CaregiverApp/Resources/app.entitlements;
CODE_SIGN_IDENTITY = iPhone Distribution;

PROVISIONING_PROFILE[config=Debug] = Caregiver App AdHoc;
PROVISIONING_PROFILE[config=Release] = Caregiver App Store;

ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;

The received error is:

2017-11-16 12:01:50.567 xcodebuild[6524:181614] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0n/h71pcgm54md26m5mz_mkz4140000gn/T/HM4CaregiverApp_2017-11-16_12-01-50.567.xcdistributionlogs'.
2017-11-16 12:01:51.629 xcodebuild[6524:181614] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fa082a1ffd0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"HM4CaregiverApp.app\" requires a provisioning profile with the Push Notifications feature.\" UserInfo={NSLocalizedDescription=\"HM4CaregiverApp.app\" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: "HM4CaregiverApp.app" requires a provisioning profile with the Push Notifications feature.

Error Domain=IDEProvisioningErrorDomain Code=9 ""HM4CaregiverApp.app" requires a provisioning profile with the Push Notifications feature." UserInfo={NSLocalizedDescription="HM4CaregiverApp.app" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

** EXPORT FAILED **

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

So sánh báo cáo này với issue #3046, sau đó truy vết cách các giá trị provisioning từ build.xconfig được truyền vào quá trình export archive. Tái hiện quá trình export bằng CLI 3.3 và Xcode 9.1 với cấu hình được cung cấp, rồi kiểm tra lỗi ký của xcodebuild. Được xem là hoàn tất khi quá trình export cung cấp provisioning profile cần thiết và hoàn tất thành công.

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
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
Cần làm rõ
Mức phù hợp với người mới
30/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.