@@ -24,15 +24,28 @@ platform :ios do
2424 desc "Deploy a new build to TestFlight"
2525 lane :deploy do
2626 # Use App Store Connect API key for authentication
27+ puts "=== API KEY DEBUG ==="
28+ puts "APP_STORE_CONNECT_API_KEY_ID exists: #{ !ENV [ "APP_STORE_CONNECT_API_KEY_ID" ] . nil? } "
29+ puts "APP_STORE_CONNECT_API_KEY_ID value: '#{ ENV [ "APP_STORE_CONNECT_API_KEY_ID" ] } '"
30+ puts "APP_STORE_CONNECT_API_ISSUER_ID exists: #{ !ENV [ "APP_STORE_CONNECT_API_ISSUER_ID" ] . nil? } "
31+ puts "APP_STORE_CONNECT_API_ISSUER_ID value: '#{ ENV [ "APP_STORE_CONNECT_API_ISSUER_ID" ] } '"
32+ puts "APP_STORE_CONNECT_API_KEY exists: #{ !ENV [ "APP_STORE_CONNECT_API_KEY" ] . nil? } "
33+ puts "APP_STORE_CONNECT_API_KEY length: #{ ENV [ "APP_STORE_CONNECT_API_KEY" ] &.length || 'nil' } "
34+ puts "APP_STORE_CONNECT_API_KEY first 50 chars: '#{ ENV [ "APP_STORE_CONNECT_API_KEY" ] &.[]( 0 ..50 ) || 'nil' } '"
35+
2736 # Create temporary key file
2837 key_file_path = "/tmp/app_store_api_key.p8"
2938 File . write ( key_file_path , ENV [ "APP_STORE_CONNECT_API_KEY" ] )
39+ puts "Key file path: #{ key_file_path } "
40+ puts "Key file exists: #{ File . exist? ( key_file_path ) } "
41+ puts "Key file size: #{ File . exist? ( key_file_path ) ? File . size ( key_file_path ) : 'N/A' } bytes"
3042
3143 api_key_info = {
3244 key_id : ENV [ "APP_STORE_CONNECT_API_KEY_ID" ] ,
3345 issuer_id : ENV [ "APP_STORE_CONNECT_API_ISSUER_ID" ] ,
3446 key_filepath : key_file_path
3547 }
48+ puts "api_key_info: #{ api_key_info } "
3649
3750 # Check if all API key values are present
3851 if api_key_info [ :key_id ] . nil? || api_key_info [ :issuer_id ] . nil? || ENV [ "APP_STORE_CONNECT_API_KEY" ] . nil?
0 commit comments