Typo on the post, it is -cr.
DoShellCommand(“xattr -cr /Users/mike/Documents/Code/ProView3_golden_last/Mobile/ProView3.debug.app”)
Typo on the post, it is -cr.
DoShellCommand(“xattr -cr /Users/mike/Documents/Code/ProView3_golden_last/Mobile/ProView3.debug.app”)
You still need to use usr/bin/xattr and you need to use the result of DoShellCommand.
I have now, and can Build, but not Run. Using 2021r3_54545, and your script.
dim appPath as string = currentBuildLocation + "/" + shellEncode(currentBuildAppName)
if right(appPath, 4) <> ".app" then appPath = appPath + ".app"
dim result as string = doShellCommand("/usr/bin/touch -acm " + appPath)
result = doShellCommand("xattr -rc " + appPath)
If result <> "" then print result
Function shellEncode( inValue as string ) as string
Dim rvalue as string = replaceAll( inValue, " ", "\ " )
rvalue = replaceAll( rvalue, "&", "\&" )
rvalue = replaceAll( rvalue, "-", "\-" )
rvalue = replaceAll( rvalue, "(", "\(" )
rvalue = replaceAll( rvalue, ")", "\)" )
return rvalue
End Function
when I do a simple “print result”, it’s empty.
Greg O’Lone steered me to opening the environment as another user. It works, even in debug mode, and the app has been successfully submitted (and approved) to TestFlight.
Not sure whether it’s an M1 or Big Sur issue. Next up - Monterey. 