Detect invalid built Swift App #42
Comments
This looks really interesting, thanks @sinoru: nomad-cli/shenzhen#178 |
Wow, this is very great news, thanks for letting me know! When I add the dependency of the latest What would be even cooler: a warning from |
A warning from deliver would be great; you may not want to use shenzen and the email from Apple is very cryptic. |
The binary can be extracted using file.extract(tmp_folder) And then it can detect whether the app uses swift: which returns some error and some |
The app bundle also contains some libraries prefixed with If this is true for all apps, then I guess that also inspecting the output of "unzip -l <path-to.ipa>" is fine (and you wouldn't even have to extract the archive somewhere). E.g.:
In my experience, applications not packaged correctly still have the Swift runtime within the .app. They just lack the "SwiftSupport" directory. And, anyway, both copies of the Swift runtime seem to have slightly different sizes and checksums, which is really weird (although the one from "SwiftSupport" seems to come from within |
As there were no submitted issues about this recently, I'll close this issue for now. Thanks everyone for helping me with it. |
This issue was migrated to fastlane/fastlane#2453. Please post all further comments there.
|
Related: #22 (comment)
The text was updated successfully, but these errors were encountered: