Kindly I currently trying to add native iOS app to Azure CI to automate ad-hoc builds. My app contains different schemes and pods and it on bitbucket. I tried many different approaches.
- Approach 1: Using pre-defined steps as this image
Adding ad-hoc distribution certificate and provisioning profile and pod install steps are succeeded and this error appears in xcode step.
❌ error: Unable to load contents of file list: '/Target Support Files/GoogleAppMeasurement/GoogleAppMeasurement-xcframeworks-input-files.xcfilelist' (in target 'GoogleAppMeasurement' from project 'Pods')
❌ error: Unable to load contents of file list: '/Target Support Files/GoogleAppMeasurement/GoogleAppMeasurement-xcframeworks-output-files.xcfilelist' (in target 'GoogleAppMeasurement' from project 'Pods')
❌ error: Unable to load contents of file list: '/Target Support Files/FirebaseAnalytics/FirebaseAnalytics-xcframeworks-input-files.xcfilelist' (in target 'FirebaseAnalytics' from project 'Pods')
❌ error: Unable to load contents of file list: '/Target Support Files/FirebaseAnalytics/FirebaseAnalytics-xcframeworks-output-files.xcfilelist' (in target 'FirebaseAnalytics' from project 'Pods')
I tried different solutions on internet
But no success.
- Approach 2: Using only bash scripts as this image
Adding development certificate step is succeeded but it fails in adding ad-hoc distribution certificate with below error
/usr/local/bin/openssl pkcs12 -in /Users/runner/work/_temp/distribution.p12 -nokeys -passin pass:dist | /usr/local/bin/openssl x509 -noout -fingerprint -subject -dates -nameopt utf8,sep_semi_plus_space
SHA1 Fingerprint=C2:63:96:49:77:19:4D:CA:CE:BC:5D:05:71:01:D3:B9:6D:FC:0F:54
subject=UID=W7667V95PF; CN=Apple Distribution: RIPPLE INNOVATIONS FOR DIGITAL SOLUTIONS (W7667V95PF); OU=W7667V95PF; O=RIPPLE INNOVATIONS FOR DIGITAL SOLUTIONS; C=EG
notBefore=Mar 7 14:18:31 2022 GMT
notAfter=Mar 7 14:18:30 2023 GMT
/usr/bin/security unlock-keychain -p *** /Users/runner/work/_temp/ios_signing_temp.keychain
/usr/bin/security import /Users/runner/work/_temp/distribution.p12 -P dist -A -t cert -f pkcs12 -k /Users/runner/work/_temp/ios_signing_temp.keychain
1 identity imported.
/usr/local/bin/openssl pkcs12 -in /Users/runner/work/_temp/distribution.p12 -nocerts -passin pass:dist -passout pass:dist | /usr/bin/grep friendlyName
##[error]Error: /usr/bin/grep failed with return code: 1
Finishing: Install an Apple certificate (Distribution)
And also as you can see no success.