[FIX] Failing iOS build on fork PR (#2558)

* Fix fastlane build for a fork PR

* Change the iOS fastlane command to build_fork
This commit is contained in:
Youssef Muhamad 2020-10-15 10:43:12 -03:00 committed by GitHub
parent 52cfe079e8
commit b8474286a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 15 deletions

View File

@ -347,7 +347,7 @@ jobs:
echo $APP_STORE_CONNECT_API_KEY | base64 --decode > ./fastlane/app_store_connect_api_key.p8
bundle exec fastlane ios release
else
bundle exec fastlane ios build
bundle exec fastlane ios build_fork
fi
working_directory: ios

View File

@ -59,20 +59,9 @@ platform :ios do
gym(scheme: "RocketChatRN", workspace: "RocketChatRN.xcworkspace")
end
desc "Build App for development"
lane :build do |options|
xcodebuild(
workspace: "RocketChatRN.xcworkspace",
scheme: "RocketChatRN",
configuration: "Debug",
clean: options[:clean],
build: true,
destination: "generic/platform=iOS",
build_settings: {
"CODE_SIGNING_REQUIRED" => "NO",
"CODE_SIGN_IDENTITY" => ""
}
)
desc "Build fork app"
lane :build_fork do
gym(scheme: "RocketChatRN", workspace: "RocketChatRN.xcworkspace", skip_codesigning: true, skip_archive: true)
end
after_all do |lane|