I have a iOS app using a gobind xcframework library.
All went well when using Xcode 15.0 (15A240d), but failed on Xcode 16.2 (16C5032a). It’s confirmed the failure is from only Xcode version difference, all others like source code, lib binary, physical test iPhone all keeping the exact same.
After digging, the root comes from golang os.Executable() call (https://pkg.go.dev/os#Executable), which is used in xcframework library.
Using Xcode 15.0, os.Executable() returns “/var/containers/Bundle/Application/E80602C7-EFFB-4F1B-9FF8-FBA0E7E3DA76/Runner.app/Runner” as normal.
But with Xcode 16.2, os.Executable() panic with err “cannot find executable path”.
I’ve checked Xcode&SDK version change history, couldn’t find any clue like relevant permissions restrictions stuff.
Could someone please share a hint? Thanks .