Hello,
Test project has been created, please find it in following link. A Swift Text widget shows the result of os.Executable() call.
https://s.sudo8.com/app/golib_demo.zip
Here is the test result from my side.
The golang xcframework library has been included into the test project zip file, the source code is as followings.
package golib
import (
"log"
"os"
)
func OsExecutable() string {
exe, err := os.Executable()
if err != nil {
log.Printf("error: %v", err)
return "panic with err: " + err.Error()
}
log.Printf("executable path: %v", exe)
return exe
}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: