Fix managed iOS native media linking
This commit is contained in:
@@ -30,6 +30,18 @@ if [ -n "${VOICECAT_CODESIGN_PROVISION:-}" ]; then set -- "$@" -p:CodesignProvis
|
||||
|
||||
app="$root/clients/apple/dotnet/VoiceCat.iOS/bin/$configuration/net10.0-ios27.0/ios-arm64/VoiceCat.iOS.app"
|
||||
[ -d "$app" ] || { echo "device app was not produced at $app" >&2; exit 1; }
|
||||
/usr/bin/strings "$app/VoiceCat.Codec.dll" | /usr/bin/grep -q GetMainProgramHandle || {
|
||||
echo "device codec does not contain the iOS static-library resolver" >&2
|
||||
exit 1
|
||||
}
|
||||
/usr/bin/nm -gU "$app/VoiceCat.iOS" | /usr/bin/grep -q _vcm_decoder_create || {
|
||||
echo "device executable does not export the statically linked media codec" >&2
|
||||
exit 1
|
||||
}
|
||||
/usr/bin/nm -gU "$app/VoiceCat.iOS" | /usr/bin/grep -q _vcm_rnnoise_create || {
|
||||
echo "device executable does not export the statically linked RNNoise processor" >&2
|
||||
exit 1
|
||||
}
|
||||
mkdir -p "$output"
|
||||
/usr/bin/ditto "$app" "$output/VoiceCat.iOS.app"
|
||||
/usr/bin/codesign --verify --deep --strict "$output/VoiceCat.iOS.app"
|
||||
|
||||
Reference in New Issue
Block a user