react-native-fastlane-boilerplate
react-native-fastlane-boilerplate copied to clipboard
Simulator installation not working
Had to add derivedDataPath
param to the xcodebuild
command to ensure build artifacts were stored in the right location.
DERIVED_DATA_PATH="#{dir}/ios"
BUILT_PRODUCTS_PATH = "#{DERIVED_DATA_PATH}/Build/Products".freeze
xcodebuild(
workspace: XCODE_WORKSPACE_PATH,
scheme: DEV_SCHEME_NAME,
codesigning_identity: DEVELOPMENT_CODESIGNING_IDENTITY,
provisioning_profile: DEVELOPMENT_PROVISIONING_PROFILE_NAME,
destination: (
parsed_options[:simulator] ?
'generic/platform=iOS Simulator' :
'generic/platform=iOS'
),
clean: parsed_options[:clean],
build: true,
xcargs: parsed_options[:xcargs],
derivedDataPath: DERIVED_DATA_PATH,
)