NativeScript / NativeScript/nativescript-cli

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

未關閉
#3,222 8 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

code signing os: ios reproducible
主要語言
JavaScript
星號
1.1k
分支
204
平均合併
1 天 9 小時
30 天內合併 PR
8

描述

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 **

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

將此報告與 issue #3046 進行比較,然後追蹤 build.xconfig 中的 provisioning 值如何傳遞至封存匯出。使用所示設定,透過 CLI 3.3 和 Xcode 9.1 重現匯出,並檢查 xcodebuild 簽署錯誤。當匯出提供所需的 provisioning profile 並成功完成時,即視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
ios, javascript
領域
cli, mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。