Method: FastlaneCore::IpaFileAnalyser.fetch_app_platform

Defined in:
fastlane_core/lib/fastlane_core/ipa_file_analyser.rb

.fetch_app_platform(path) ⇒ Object

Fetches the app platform from the given ipa file.



31
32
33
34
35
36
37
# File 'fastlane_core/lib/fastlane_core/ipa_file_analyser.rb', line 31

def self.fetch_app_platform(path)
  plist = self.fetch_info_plist_file(path)
  platform = "ios"
  platform = plist['DTPlatformName'] if plist
  platform = "ios" if platform == "iphoneos" # via https://github.com/fastlane/fastlane/issues/3484
  return platform
end