Podfile文件 配置信息

Podfile文件 配置信息
自动管理签名证书(繁杂项目内嵌诸多子项目)
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings[ ‘IPHONEOS_DEPLOYMENT_TARGET’] = ‘10.0’

config.build_settings[‘EXPANDED_COOE_SIGN_IDENTITY’] = ‘’’’
config.build_settings[‘CODE_SIGNING_REQUIRED’] =“NO”
config.build_settings[’ CODE_SIGNING_ALLOWED’] =”NO”
end
end
end

podinstall后引入库缺失TeamID绑定↵
pod install之后运行工程,报错!
Signing for “xxx” requires a development team. Select a development
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings [“DEVELOPMENT_TEAM”]="Team ID”
end
end
end
end
修复方法在Podfle文件中添加下面命令码:
post_install do |installer|
Installer_generated_proiects.each do |project|
proiect.targets.each do |target|
target.build_configuratians.each do |config|
config.build_settings[“DEVELOPMENT_TEAM”]=“82KRK4P728”
end
end
end
end
备注:业务(层面)项目>TARGETS>BuildSettings>DevelopmentTeam>Debug>复制粘贴
获团队ID’比如:82KRK4P728

你可能感兴趣的:(Podfile)