情况一:
xcodebuild[19874:3156832] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]:
Created bundle at path '/var/folders/hg/f9t0ymfj3gg9tk2j1dr23j400000gn/T/xxx-01-20_10-15-38.245.xcdistributionlogs'.
error: exportArchive: No profiles for 'xxx' were found
Error Domain=IDEProfileLocatorErrorDomain Code=1
"No profiles for 'xxx' were found"
UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription=No profiles for 'xxx' were found,
NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS Ad Hoc provisioning profiles matching 'xxx'.
Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
一、查看Apple developer 账号对应profile是否到期无效。
二、Xcode 偏好设置->账号->选择Apple IDs->选择Team->Download Manual Profiles。
三、重新打包。
情况二:
error: exportArchive: The data couldn’t be read because it isn’t in the correct format.
Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value.,
NSFilePath=/var/folders/hg/f9t0ymfj3gg9tk2j1dr23j400000gn/T/ipatool-json-filepath-~~~WHu92B}
情况三:
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
CompileSwift normal armv7
(3 failures)
error: archive not found at path '/Users/work/dev/xxx/build/MiShiFeng.xcarchive'
代码有错误,修改错误,再重新打包。