今天我更新了xcode.当我试图在模拟器上运行项目(ios版本<9.0)时,我收到了这个错误.
"无法打开liblaunch_sim.dylib.尝试重新安装Xcode或模拟器运行时.
我使用以下代码按照类似主题的帖子中的建议发送电子邮件.但邮件尚未发送.有什么建议?
import subprocess
recipient = 'xxxxx@gmail.com'
subject = 'test'
body = 'testing mail through python'
def send_message(recipient, subject, body):
process = subprocess.Popen(['mail', '-s', subject, recipient],
stdin=subprocess.PIPE)
process.communicate(body)
print("sent the email")
Run Code Online (Sandbox Code Playgroud)