Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@react-native-community/cli-platform-apple
Advanced tools
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.
@react-native-community/cli-platform-apple is a part of the React Native CLI tools specifically designed to handle tasks related to the Apple ecosystem, such as building and running iOS applications. It provides a set of commands and utilities to streamline the development process for React Native apps on iOS.
Run iOS Application
This command builds and runs the iOS application on a simulator or a connected device. It simplifies the process of launching the app for development and testing.
npx react-native run-ios
Build iOS Application
This command builds the iOS application, generating the necessary build artifacts. It is useful for preparing the app for distribution or further testing.
npx react-native build-ios
Link Native Dependencies
This command links native dependencies to the iOS project. It automates the process of adding native modules to the Xcode project, making it easier to integrate third-party libraries.
npx react-native link
The react-native-cli package provides a command-line interface for React Native projects, including commands for initializing new projects, running applications, and linking native dependencies. It is a more general tool compared to @react-native-community/cli-platform-apple, which is specifically focused on the Apple ecosystem.
Fastlane is an open-source platform aimed at simplifying Android and iOS deployment. It automates the process of building, testing, and releasing mobile applications. While it is not specific to React Native, it offers extensive capabilities for managing iOS builds and deployments, making it a powerful tool for mobile developers.
Xcodebuild is a command-line tool provided by Apple for building and testing iOS and macOS applications. It is a lower-level tool compared to @react-native-community/cli-platform-apple, offering more granular control over the build process but requiring more detailed configuration.
This package is part of the React Native CLI. It contains utilities for building reusable commands targeting Apple platforms.
yarn add @react-native-community/cli-platform-apple
This package is intended to be used internally in React Native CLI and by out of tree platforms.
It exports builder commands that can be used to create custom run-
, log-
and build-
commands for example: yarn run-<oot-platform>
.
Inside of <oot-platform>/packages/react-native/react-native.config.js
:
const {
getBuildOptions,
createBuild,
} = require('@react-native-community/cli-platform-apple');
const buildVisionOS = {
name: 'build-visionos',
description: 'builds your app for visionOS platform',
func: createBuild({platformName: 'visionos'}),
examples: [
{
desc: 'Build the app for visionOS in Release mode',
cmd: 'npx react-native build-visionos --mode "Release"',
},
],
options: getBuildOptions({platformName: 'visionos'}),
};
module.exports = {
commands: [buildVisionOS], // <- Add command here
//..
};
cli-platform-apple
also exports utilities to create OOT platform config.
getProjectConfig()
- creates project config for given platformgetDependencyConfig()
- creates dependency config for given platformExample (<oot-platform>/packages/react-native/react-native.config.js
):
platforms: {
visionos: {
npmPackageName: '@callstack/react-native-visionos',
projectConfig: getProjectConfig({platformName: 'visionos'}),
dependencyConfig: getDependencyConfig({platformName: 'visionos'}),
},
..
},
FAQs
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.
The npm package @react-native-community/cli-platform-apple receives a total of 832,133 weekly downloads. As such, @react-native-community/cli-platform-apple popularity was classified as popular.
We found that @react-native-community/cli-platform-apple demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 34 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.