运行没问题,打包报错“error: Signing for “XXXXX” requires a development team.”
方案一: (推荐)
post_installdo|installer|
installer.pods_project.targets.eachdo|target|
target.build_configurations.eachdo|config|
config.build_settings['CODE_SIGNING_ALLOWED'] ="NO"
end
end
end
方案二: 配置DEVELOPMENT_TEAM
post_installdo|installer|
installer.pods_project.targets.eachdo|target|
target.build_configurations.eachdo|config|
config.build_settings["DEVELOPMENT_TEAM"] = " Your Team ID "
end
end
end
方案三:直接在项目里面修改
选中对应的Target ---> Build Settings ---> User_Defined ---> CODE_SIGNING_ALLOWED = NO