UNIAPP failed to package using the production configuration file. The test used Xcode to package the offline package and it was packaged normally.
Error: exportArchive: No signing certificate “Mac App Distribution” found
具体报错:
{ platform:iOS Simulator, id:4F838648-CF79-4C1C-8751-D3A1999902EC, OS:15.2, name:iPod touch (7th generation) } EXPORT FAILED
2023-02-24 09:34:02.818 xcodebuild[37423:490391] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path “/var/folders/61/37367c6n67x2q3qhk6w4wjqh0000gn/T/HBuilder_2023-02-24_09-34-02.815.xcdistributionlogs”.
error: exportArchive: No signing certificate “Mac App Distribution” found
Error Domain=IDECodesignResolverErrorDomain Code=1 “No signing certificate “Mac App Distribution” found” UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedRecoverySuggestion=No “Mac App Distribution” signing certificate matching team ID “Q4Z6TRJH77” with a private key was found., IDEProvisioningError_UserInfoKey_IDEProvisioningErrorSpecifier=Mac App Distribution, NSLocalizedDescription=No signing certificate “Mac App Distribution” found, IDEProvisioningError_UserInfoKey_IDEProvisioningErrorPlatform=com.apple.platform.macosx, IDEProvisioningError_UserInfoKey_IDEProvisioningErrorAction=5, IDEProvisioningError_UserInfoKey_IDEProvisioningErrorTeam=}
Solution:
The reason for the error
is that the Apple Development Center created the production and officially used the IOS Distribution.
The solution is
to create a production in the Apple Development Center and use Apple Distribution to solve the problem, and use uniapp to print the production package normally