我正在使用MacOS 10.14 Mojave(macOS 10.13 High Sierra(64位))运行的虚拟机,当我运行Xcode时,它通常显示“ Welcome to Xcode”,但是当我尝试创建项目时,打开现有项目或从游乐场开始,会引发错误。我重新安装了整个应用程序并删除了所有项目(所以我想派生数据不是问题)。我不喜欢mac,我的目标只是运行在react-native中创建的项目。这是Xcode提供的所有信息: https://pastebin.com/5qtbb72W?fbclid=IwAR0lgvMVJu4E4KYIICdTe5kIpwbg2o_4op5VT_1x5a9Zgo5LkAfKULHD1W4
Option Explicit
Sub SendEmailwithsign()
Dim objoutApp As Object, objoutmail As Object
Dim strbody As String, strSig As String
Set objoutApp = CreateObject("outlook.Application")
Set objoutmail = objoutApp.CreateItem(0)
On Error Resume Next
With objoutmail
.To = "AAAAAAAAA@.com"
.CC = ""
.Subject = "Test mail"
.Recipients.ResolveAll
.Display 'body appears until this point'
strSig = .Environ("appdata") & "Microsoft\Signatures\bbbb.txt"
strbody = "Hello"
.body = strbody & strSig 'with this step Body part does not appear but only the signature'
End With
On Error GoTo 0
Set objoutmail = Nothing
Set objoutApp = Nothing
End Sub