npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@react-native-community/cli-platform-ios

v15.1.2

Published

This package is part of the [React Native CLI](../../README.md). It contains commands for managing iOS part of React Native app.

Downloads

9,605,855

Readme

@react-native-community/cli-platform-ios

This package is part of the React Native CLI. It contains commands for managing iOS part of React Native app.

Installation

yarn add @react-native-community/cli-platform-ios

Commands

run-ios

Usage:

npx react-native run-ios [options]

Builds your app and starts it on iOS simulator.

Options

--simulator <simulator_name>

default: iPhone 14

Explicitly set the simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version, e.g. "iPhone 6 (10.0)".

Notes: If selected simulator does not exist, cli will try to run fallback simulators in following order:

  • iPhone 14
  • iPhone 13
  • iPhone 12
  • iPhone 11

Notes: simulator_name must be a valid iOS simulator name. If in doubt, open your AwesomeApp/ios/AwesomeApp.xcodeproj folder on XCode and unroll the dropdown menu containing the simulator list. The dropdown menu is situated on the right hand side of the play button (top left corner).

Example: this will launch your project directly onto the iPhone 14 simulator:

npx react-native run-ios --simulator "iPhone 14"

--mode <string>

Explicitly set the scheme configuration to use. This option is case sensitive.

Example:

npx react-native run-ios --mode "Release"

--scheme <string>

Explicitly set Xcode scheme to use.

--target <string>

Explicitly set Xcode target to use.

--device [string]

Explicitly set device to use by name. The value is not required if you have a single device connected.

--destination <string>

Explicitly extend destination e.g. "arch=x86_64"

--udid <string>

Explicitly set device to use by udid.

--no-packager

Do not launch packager while building.

--verbose

Do not use xcbeautify or xcpretty even if installed.

--port <number>

Runs packager on specified port.

Default: process.env.RCT_METRO_PORT || 8081

--xcconfig <string>

Explicitly set xcconfig to use in build.

--buildFolder <string>

Location for iOS build artifacts. Corresponds to Xcode's -derivedDataPath.

--extra-params <string>

Custom params that will be passed to xcodebuild command. Example:

npx react-native run-ios --extra-params "-jobs 4"

--binary-path <path>

Installs passed binary instead of building a fresh one.

--list-devices

default: false

List all available iOS devices and simulators and let you choose one to run the app.

--force-pods,

Force running pod install before running an app

build-ios

Usage:

npx react-native build-ios [options]

Builds iOS app.

Options

--mode <string>

Explicitly set the scheme configuration to use. This option is case sensitive.

Example:

npx react-native build-ios --mode "Release"

--scheme <string>

Explicitly set Xcode scheme to use.

--target <string>

Explicitly set Xcode target to use.

--device [string]

Explicitly set device to use by name. The value is not required if you have a single device connected.

--verbose

Do not use xcbeautify or xcpretty even if installed.

--xcconfig <string>

Explicitly pass xcconfig options from the command line.

--buildFolder <string>

Location for iOS build artifacts. Corresponds to Xcode's -derivedDataPath.

--extra-params <string>

Custom params that will be passed to xcodebuild command. Example:

npx react-native build-ios --extra-params "-jobs 4"

--force-pods,

Force running pod install before building an app

log-ios

Usage:

npx react-native log-ios

Starts iOS device syslog tail.

Options

--interactive, -i

Explicitly select simulator to tail logs from. By default it will tail logs from the first booted and available simulator.