This MR fixes various issues in the current master branch (commit#054d80a):
Currently on master branch the xcode install is failing cause constant Fastlane::Actions::VerifyBuildAction is not found.
Reason: requiring 'fastlane/actions/actions_helper' doesn't load actions automatically. We need to call Fastlane::Actions.load_default_actions to load all actions.
instead of loading all actions, I decided to just load verify_build action. Loading verify_build also requires fastlane/action, hence we are loading fastlane/action first, and then fastlane/action/verify_build.
There were two more bugs:
In verify_app_cert function, Pathname obj being passed to VerifyBuildAction.get_cert_info. Which resulted in error cause VerifyBuildAction.get_cert_info expects string obj.
cert verification is failing when xcode is not installed from AppStore. My fix is only valid for xcode 8 and onwards. Older versions of xcode have teamIdentifier=not set. I think the best way to do this is to use VerifyXcodeAction instead of VerifyBuildAction
This MR fixes various issues in the current master branch (commit#054d80a):
Currently on
master
branch the xcode install is failing cause constantFastlane::Actions::VerifyBuildAction
is not found. Reason: requiring 'fastlane/actions/actions_helper' doesn't load actions automatically. We need to callFastlane::Actions.load_default_actions
to load all actions.instead of loading all actions, I decided to just load
verify_build
action. Loadingverify_build
also requiresfastlane/action
, hence we are loadingfastlane/action
first, and thenfastlane/action/verify_build
.There were two more bugs:
verify_app_cert
function,Pathname
obj being passed toVerifyBuildAction.get_cert_info
. Which resulted in error causeVerifyBuildAction.get_cert_info
expects string obj.teamIdentifier=not set
. I think the best way to do this is to use VerifyXcodeAction instead of VerifyBuildAction