x***@qq.com
x***@qq.com
  • 发布:2025-03-22 03:12
  • 更新:2025-03-24 12:10
  • 阅读:1059

IOS打包(已勾选录音模块),仍然打包报错

分类:uni-app

这个报错应该是问题与 Provisioning Profile 的配置有关,具体是缺少 麦克风使用权限 相关的 com.apple.developer.microphone-usage-description 权限,这是与.mobileprovision文件有关咯?.mobileprovision在Certificates, Identifiers & Profiles中的Identifiers中配置好,再通过Profiles下载这个.mobileprovision,请老师们告诉我,勾选哪个可以开启Microphone Usage Description(麦克风使用权限)?

难道不是勾选录音模块即会编译Microphone Usage Description吗?,并且我在manifest.json做好了配置,nativeplugins插件中也有Info.plist文件做好描述。

实在搞不懂。请老师们赐教。

Appid: UNI6420FB4
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -sdk iphoneos18.1 -project [PackagePath]/HBuilder.xcodeproj -archivePath [PackagePath]/XArchive/HBuilder.xcarchive -scheme HBuilder -configuration Debug

User defaults from command line:
IDEArchivePathOverride = [PackagePath]/XArchive/HBuilder.xcarchive
IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
SDKROOT = iphoneos18.1

Prepare packages

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (1 target)
Target 'HBuilder' in project 'HBuilder' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk -x objective-c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --version --output-format xml1

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 [PackagePath]/HBuilder/Assets.xcassets

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --version --output-format xml1

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk -x c -c /dev/null

Build description signature: 041f832706cf62803e13f558fa0eb381
Build description path: /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-chsprlcfrfqvndcjmnfolqnoacqj/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/XCBuildData/041f832706cf62803e13f558fa0eb381.xcbuilddata
[PackagePath]/HBuilder.xcodeproj: error: Provisioning profile \"soundmate777\" doesn't include the com.apple.developer.microphone-usage-description entitlement. Profile qualification is using entitlement definitions that may be out of date. Connect to network to update. (in target 'HBuilder' from project 'HBuilder')
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'HBuilder' from project 'HBuilder')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking \"Based on dependency analysis\" in the script phase. (in target 'HBuilder' from project 'HBuilder')--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008112-001214A41AFB401E, name:My Mac }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:9792BF79-55A3-464B-BCC4-8FC5553530ED, OS:18.1, name:iPhone 16 }
{ platform:iOS Simulator, id:9792BF79-55A3-464B-BCC4-8FC5553530ED, OS:18.1, name:iPhone 16 }
{ platform:iOS Simulator, id:FAC75CB8-1EC1-4FB5-8324-EE9A612ECB9B, OS:18.1, name:iPhone 16 Plus }
{ platform:iOS Simulator, id:FAC75CB8-1EC1-4FB5-8324-EE9A612ECB9B, OS:18.1, name:iPhone 16 Plus }
{ platform:iOS Simulator, id:AB6D4465-81D1-4AF2-985E-F2A1C9B6C2F8, OS:18.1, name:iPhone 16 Pro }
{ platform:iOS Simulator, id:AB6D4465-81D1-4AF2-985E-F2A1C9B6C2F8, OS:18.1, name:iPhone 16 Pro }
{ platform:iOS Simulator, id:511D2F9C-27B8-4D6D-9286-680201248FA4, OS:18.1, name:iPhone 16 Pro Max }
{ platform:iOS Simulator, id:511D2F9C-27B8-4D6D-9286-680201248FA4, OS:18.1, name:iPhone 16 Pro Max }
{ platform:iOS Simulator, id:0AC78C3F-3568-4E22-BF08-AA07F1DDA01F, OS:18.1, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:0AC78C3F-3568-4E22-BF08-AA07F1DDA01F, OS:18.1, name:iPhone SE (3rd generation) }
ARCHIVE FAILED The following build commands failed:
Archiving project HBuilder with scheme HBuilder
(1 failure)

2025-03-22 03:12 负责人:无 分享
已邀请:
iOSDeveloper

iOSDeveloper - 专注于iOS相关领域 QQ:752562065

描述文件需要更新

  • x***@qq.com (作者)

    老师你好,可是我没有XODE,是在 Apple Developer 网站,导航到 Certificates, Identifiers & Profiles的Edit your App ID Configuration页面吗?没有看到Microphone Usage Description

    2025-03-22 15:37

  • iOSDeveloper

    回复 x***@qq.com: 加一下我Q752562065

    2025-03-22 17:03

x***@qq.com

x***@qq.com (作者)

还有老师吗

DCloud_App_Array

DCloud_App_Array

manifest.json中配置了以下:

"capabilities": {  
          "entitlements": {  
            "com.apple.developer.microphone-usage-description": "\u9700\u8981\u4f7f\u7528\u9ea6\u514b\u98ce\u8fdb\u884c\u8bed\u97f3\u5bf9\u8bdd"  
          },  
          "microphone": true  
        },

但profile文件没有在后台勾选对应的选项。如果不需要此项,在manifest.json中删除capabilities节点数据,如果需要此项需重新生成profile文件。

要回复问题请先登录注册