Closed bjorkert closed 1 month ago
This code fixes the problem of the expiration date being N/A.
Remove *.mobileprovision from folders used by Xcode 15 and Xcode 16 before testing.
rm ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision
rm ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles/*.mobileprovision
Checking this PR - no testing was done for TestFlight expiration when using GitHub build action. (Apologies) Lesson learned for the future.
Xcode now stores the provisioning profile in a new location, which renders the hardcoded path in Scripts/capture-build-details.sh ineffective. This PR resolves the issue by reading the provisioning profile at runtime and storing it in a cached constant within the BuildDetails class.
Example of expire date using Xcode 16 and iOS 18.