Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-09 20:52:34 +08:00
parent e1132eb222
commit 50cf3f7344
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -350,6 +350,7 @@ func ReadWorkspacePaths() (ret []string, err error) {
workspaceBaseDir := filepath.Dir(HomeDir)
for _, d := range ret {
if ContainerIOS == Container && strings.Contains(d, "/Documents/") {
// iOS 端沙箱路径会变化,需要转换为相对路径再拼接当前沙箱中的工作空间基路径
d = d[strings.Index(d, "/Documents/")+len("/Documents/"):]
d = filepath.Join(workspaceBaseDir, d)
}