krzyzanowskim/OpenSSL

ERROR ITMS-90711: "Invalid executable permissions"

art-ghub opened this issue · 5 comments

I updated framework to latest 3.1.5000 from some old 1.xxx and now app cannot be uploaded to Apple with error "ERROR ITMS-90711: "Invalid executable permissions. The executable Payload/XXX.app/Frameworks/OpenSSL.framework/OpenSSL does not have its writable bit set."".

Looking at binary permissions, it's really missing writable bit for owner.

idk. It may be Xcode bananas. I don't see an issue in the repository. Maybe delete all the caches and try again

It's same on my Mac and build server

how do you integrate. can you attach sample project?

The steps are simple:

  1. Create new iOS project (XCode 15.3)
  2. Add Swift package via Package manager, put Exact version 3.1.5000
  3. In Package Dependencies locate Frameworks/iphoneos/OpenSSL package (Show in Finder)
  4. Then 'cd' in terminal and 'ls -la':

[xxx] ~ % cd /Users/xxx/Library/Developer/Xcode/DerivedData/OpenSSLTest-blmwyzxdgtdbhcdqtnkqldhnayng/SourcePackages/checkouts/OpenSSL/Frameworks/iphoneos/OpenSSL.framework
xxx OpenSSL.framework % ls -la
total 7616
drwxr-xr-x 8 xxx staff 256 Mar 27 11:34 .
drwxr-xr-x 3 xxx staff 96 Mar 27 11:34 ..
drwxr-xr-x 138 xxx staff 4416 Mar 27 11:34 Headers
-r--r--r-- 1 xxx staff 769 Mar 27 11:34 Info.plist
drwxr-xr-x 3 xxx staff 96 Mar 27 11:34 Modules
-r-xr-xr-x 1 xxx staff 3887296 Mar 27 11:34 OpenSSL
-r--r--r-- 1 xxx staff 392 Mar 27 11:34 PrivacyInfo.xcprivacy
drwxr-xr-x 3 xxx staff 96 Mar 27 11:34 _CodeSignature

That's not how it is stored in zip archive nor in the repository

Frameworks/iphoneos/OpenSSL.framework on main ❯ ls -al
total 7616
drwxr-xr-x    8 marcinkrzyzanowski  staff      256 Apr 16 20:39 .
drwxr-xr-x    3 marcinkrzyzanowski  staff       96 Apr 16 20:34 ..
drwxr-xr-x  138 marcinkrzyzanowski  staff     4416 Apr 16 20:34 Headers
-rw-r--r--    1 marcinkrzyzanowski  staff      769 Apr 16 20:39 Info.plist
drwxr-xr-x    3 marcinkrzyzanowski  staff       96 Apr 16 20:34 Modules
-rwxr-xr-x    1 marcinkrzyzanowski  staff  3887296 Apr 16 20:39 OpenSSL
-rw-r--r--    1 marcinkrzyzanowski  staff      392 Apr 16 20:39 PrivacyInfo.xcprivacy
drwxr-xr-x    3 marcinkrzyzanowski  staff       96 Apr 16 20:39 _CodeSignature

and from the zip archive from the release

OpenSSL.xcframework/ios-arm64/OpenSSL.framework ❯ ls -al
total 7616
drwxr-xr-x@   8 marcinkrzyzanowski  staff      256 Mar 24 17:16 .
drwxr-xr-x@   3 marcinkrzyzanowski  staff       96 Mar 24 17:16 ..
drwxr-xr-x@ 138 marcinkrzyzanowski  staff     4416 Mar 24 17:16 Headers
-rw-r--r--@   1 marcinkrzyzanowski  staff      769 Mar 24 17:16 Info.plist
drwxr-xr-x@   3 marcinkrzyzanowski  staff       96 Mar 24 17:16 Modules
-rwxr-xr-x@   1 marcinkrzyzanowski  staff  3887296 Mar 24 17:16 OpenSSL
-rw-r--r--@   1 marcinkrzyzanowski  staff      392 Mar 24 17:16 PrivacyInfo.xcprivacy
drwxr-xr-x@   3 marcinkrzyzanowski  staff       96 Mar 24 17:16 _CodeSignature

I don't think there anything to do on my end. Try clean derived data and SwiftPM caches. I don't know what is that tbh