react-native-fastlane-boilerplate icon indicating copy to clipboard operation
react-native-fastlane-boilerplate copied to clipboard

Simulator installation not working

Open dangrahn opened this issue 5 years ago • 0 comments

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,
    )

dangrahn avatar Nov 08 '19 14:11 dangrahn