dim CountSlashes as Integer = CountFields(ProjectShellPath, "/")
dim ProjectName as string = NthField(ProjectShellPath, "/", CountSlashes)
dim ProjectPath as String = Left(ProjectShellPath, Len(ProjectShellPath) - Len(ProjectName))
dim cmd as String = ProjectPath + "Contents/install_vcomponents_v4rb_v6 " + CurrentBuildLocation + "/" + getShellString(CurrentBuildAppName) + ".app/"
if CurrentBuildTarget = 16 then
cmd = cmd + " 64"
end if
print cmd
dim theOutput as string = doShellCommand(cmd)
if theOutput <> "" then print "Add Valentina Files: " + theOutput
function getShellString(theString as String) as string
theString = ReplaceAll(theString, " ", "\ ")
theString = ReplaceAll(theString, "&", "\&")
theString = ReplaceAll(theString, "(", "( ")
theString = ReplaceAll(theString, ")", ") ")
return theString
end Function
In the built app there is a folder "vcomponents_x64" with the usual files. However, when I start the app I get a runtime error
Location: common/plugin.cpp: 1026
Condition: false
Message: couldn't open plugin v4rb_cocoa_64.dylib
MacOS 10.11
Xojo 2017r1
Valentina 6.6.5 I think
Any ideas why I could check/change?
Mit freundlichen Grüßen/Regards
Beatrix Willius
http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals