# Fix errors:
# conflicting deployment targets, both 'MACOSX_DEPLOYMENT_TARGET' and 'IPHONEOS_DEPLOYMENT_TARGET' are present in environment
# conflicting deployment targets, both 'IPHONEOS_DEPLOYMENT_TARGET' and 'TVOS_DEPLOYMENT_TARGET' are present in environment
# conflicting deployment targets, both 'IPHONEOS_DEPLOYMENT_TARGET' and 'WATCHOS_DEPLOYMENT_TARGET' are present in environment
# conflicting deployment targets, both 'IPHONEOS_DEPLOYMENT_TARGET' and 'DRIVERKIT_DEPLOYMENT_TARGET' are present in environment
unset MACOSX_DEPLOYMENT_TARGET
unset TVOS_DEPLOYMENT_TARGET
unset WATCHOS_DEPLOYMENT_TARGET
unset DRIVERKIT_DEPLOYMENT_TARGET
2条答案
按热度按时间6psbrbz91#
在为iOS构建时,我们在KM项目中也遇到了这个问题。我们使用的是XCode 14.3,我们的修复是暂时使用XCode 14.2。
pu82cl6c2#
通过在后期存档脚本中取消设置ENV变量修复...苹果必须做出改变。我在源代码中根本没有看到这些env变量,可能是新版本的xcode正在设置它们,当它们都设置好时,同一个xcode也会出错。