我正在尝试使用 NS Sidekick 进行本地构建以利用我的 MacBook Pro,似乎证书/配置文件存在一些问题。
根据文档,我编辑了 build.xcconfig 文件,如下所示:
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
TARGETED_DEVICE_FAMILY = 1,2;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
DEVELOPMENT_TEAM = 6W9G86W4T4
CODE_SIGN_IDENTITY = iPhone Distribution: MyCompanyName (6W9G86W4T4)
PROVISIONING_PROFILE = 39cd1593-32fc-420a-a0fe-03f12d7e631f
我已将 iPhone Distribution: 证书导入我的钥匙串MyCompanyName (6W9G86W4T4)
,还将 .mobileprovision 文件下载到 Mac 中与39cd1593-32fc-420a-a0fe-03f12d7e631f
(配置文件的 uuid)对应的某个位置。当我在 Sidekick 上为本地/发布构建时,它失败并出现以下错误:
[19-04-04 16:37:07.447] Build failed. Command xcodebuild failed with exit code 70 Error output:
2019-04-04 16:37:06.017 xcodebuild[68104:596846] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0v/034z5q516y3gg8_z75hbm6sm0000gn/T/MyApp_2019-04-04_16-37-06.017.xcdistributionlogs'.
error: exportArchive: "MyApp.app" requires a provisioning profile.
Error Domain=IDEProvisioningErrorDomain Code=9 ""MyApp.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="MyApp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
OUTPUT 1
对此有什么建议吗?
谢谢!