【问题随手记】Mac Mini M1 xcodebuild: profile doesn't include device ...

问题
error: Provisioning profile "xxx_profile" doesn't include the currently selected device "xxx的Mac mini" (identifier xxx). (in target 'xxx' from project 'xxx')

原因:
搭载 M1 芯片的 Mac 设备上可以运行任意 iOS 应用程序。

解决:
xcodebuild: profile doesn't include device ...

xcrun xcodebuild -configuration Release xxx -destination 'generic/platform=iOS'

你可能感兴趣的:(【问题随手记】Mac Mini M1 xcodebuild: profile doesn't include device ...)