在podfile文件中添加一下內(nèi)容
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