From eaaa933d08c8848227262a04cacc2c46e4b6a0fe Mon Sep 17 00:00:00 2001 From: danhealy Date: Sun, 15 Nov 2020 14:58:41 -0800 Subject: iOS wizard: fix app id in Info.plist, fix dev profile path --- dragon/ios_wizard.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dragon/ios_wizard.rb b/dragon/ios_wizard.rb index e38faf1..55bf9ce 100644 --- a/dragon/ios_wizard.rb +++ b/dragon/ios_wizard.rb @@ -140,7 +140,8 @@ class IOSWizard end def check_for_dev_profile - if !($gtk.read_file 'profiles/development.mobileprovision') + @dev_profile_path = "profiles/development.mobileprovision" + if !($gtk.read_file @dev_profile_path) $gtk.system "mkdir -p #{relative_path}/profiles" $gtk.system "open #{relative_path}/profiles" $gtk.system "echo Download the mobile provisioning profile and place it here with the name development.mobileprovision > #{relative_path}/profiles/README.txt" @@ -409,7 +410,7 @@ XML CFBundleIdentifier - com.carlile.swisscheese + :app_id CFBundleInfoDictionaryVersion 6.0 CFBundleName -- cgit v1.2.3 From 3447c4f75ac8422617082579dd9b15a9f1aa374a Mon Sep 17 00:00:00 2001 From: danhealy Date: Sun, 15 Nov 2020 19:01:14 -0800 Subject: iOS wizard: actually substitute app_id in plist --- dragon/ios_wizard.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dragon/ios_wizard.rb b/dragon/ios_wizard.rb index 55bf9ce..77fd703 100644 --- a/dragon/ios_wizard.rb +++ b/dragon/ios_wizard.rb @@ -538,7 +538,10 @@ XML # UIInterfaceOrientationPortrait # UIInterfaceOrientationLandscapeRight - $gtk.write_file_root "tmp/ios/#{@app_name}.app/Info.plist", info_plist_string.gsub(":app_name", @app_name).strip + info_plist_string.gsub!(":app_name", @app_name) + info_plist_string.gsub!(":app_id", @app_id) + + $gtk.write_file_root "tmp/ios/#{@app_name}.app/Info.plist", info_plist_string.strip @info_plist_written = true end -- cgit v1.2.3