airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
206 stars 11 forks source link

ADT code sign error on Mac - error 102: Invalid namespace http://ns.adobe.com/air/application/51.0 #3383

Open MMPGreg opened 3 months ago

MMPGreg commented 3 months ago

I know there have been other namespace issues reported with 51.0 - I'm on the latest 51.0.1.5 - related to BUILDING apps, but my issue is SIGNING it for distribution.

I have no problem building or running my AIR/Flex Mac app from IntelliJ, but I am running into an error code signing for distribution with my shell script.

My zsh Terminal traces out: .....app/Contents/Resources/META-INF/AIR/application.xml: error 102: Invalid namespace http://ns.adobe.com/air/application/51.0 Code signing verification failed! ....app: invalid Info.plist (plist or signature have been modified) In architecture: arm64

The only difference between a successful, and unsuccessful code sign appears to be the namespace used in application.xml. If I manually change "51.0" back to "50.2" in the compiled app, the code signing completes successfully - though, understandably, the app does not launch.

I had no problems prior building and signing with any 50.2.x.x SDK.

My shell script includes these lines for signing the app, which currently result in the "verification failed" output:

adt -sign -storetype KeychainStore -alias "$CERT" -target bundle "xxx.app" "$SIGNED_DIR/xxx.app"

# Check the result of code signing verification
verification_output=$(codesign --verify --verbose=4 "$SIGNED_DIR/xxx.app" 2>&1)

# Check the result of code signing verification
if [[ $verification_output == *"satisfies its Designated Requirement"* ]]; then
    echo "Code signing verification successful!"
else
    echo "Code signing verification failed!"
    echo "$verification_output"
    exit 1
fi
ajwfrost commented 3 months ago

I can't think of any reason why adt -sign would even be looking at the application descriptor file ..! So that's a little curious... Are you able to do this whilst running the AIR SDK Manager on its "Troubleshooting" page, to see what is output there?

thanks

MMPGreg commented 3 months ago

I don't know if this shows any more information than the error I'd already gotten. Unless an update to ADT is needed?

ADT 50.2.3.6 called with: -sign -storetype KeychainStore -alias Developer ID <DEVELOPER> (TEAM) -target bundle .../....app

Description validation error: .../....app/Contents/Resources/META-INF/AIR/application.xml: error 102: Invalid namespace http://ns.adobe.com/air/application/51.0
MMPGreg commented 3 months ago

Yes, it appears I did need the latest version of ADT.

The issue was that my AIR_HOME path in my zsh config file needs to be updated manually whenever there is a new SDK version, as I use a new directory every time I pulled the latest SDK. It was still pointing to a previous 50.2 version directory.