在podfile文件中添加一下内容
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
]// 这个不添加
config.build_settings['CODE_SIGN_IDENTITY'] = ''//只需添加这一行即可,上面的无需要添加
end
end
end