File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed
Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1+ const {
2+ buildOptions,
3+ createBuild,
4+ createLog,
5+ createRun,
6+ logOptions,
7+ runOptions,
8+ } = require ( '@react-native-community/cli-platform-apple' ) ;
9+
10+ const run = {
11+ name : 'run-visionos' ,
12+ description : 'builds your app and starts it on visionOS simulator' ,
13+ func : createRun ( { platformName : 'visionos' } ) ,
14+ examples : [
15+ {
16+ desc : 'Run on a specific simulator' ,
17+ cmd : 'npx @callstack/react-native-visionos run-visionos --simulator "Apple Vision Pro"' ,
18+ } ,
19+ ] ,
20+ options : runOptions ,
21+ } ;
22+
23+ const log = {
24+ name : 'log-visionos' ,
25+ description : 'starts visionOS device syslog tail' ,
26+ func : createLog ( { platformName : 'visionos' } ) ,
27+ options : logOptions ,
28+ } ;
29+
30+ const build = {
31+ name : 'build-visionos' ,
32+ description : 'builds your app for visionOS platform' ,
33+ func : createBuild ( { platformName : 'visionos' } ) ,
34+ examples : [
35+ {
36+ desc : 'Build the app for all visionOS devices in Release mode' ,
37+ cmd : 'npx @callstack/react-native-visionos build-visionos --mode "Release"' ,
38+ } ,
39+ ] ,
40+ options : buildOptions ,
41+ } ;
42+
43+ export default [ run , log , build ] ;
Original file line number Diff line number Diff line change 9898 "@react-native-community/cli" : " 13.0.0" ,
9999 "@react-native-community/cli-platform-android" : " 13.0.0" ,
100100 "@react-native-community/cli-platform-ios" : " 13.0.0" ,
101+ "@react-native-community/cli-platform-apple" : " 13.0.0" ,
101102 "@react-native/assets-registry" : " ^0.74.0" ,
102103 "@react-native/community-cli-plugin" : " ^0.74.0" ,
103104 "@react-native/codegen" : " ^0.74.0" ,
Original file line number Diff line number Diff line change 99
1010'use strict' ;
1111
12+ const localCommands = require ( './local-cli/localCommands' ) ;
1213const android = require ( '@react-native-community/cli-platform-android' ) ;
14+ const {
15+ getProjectConfig,
16+ } = require ( '@react-native-community/cli-platform-apple' ) ;
1317const ios = require ( '@react-native-community/cli-platform-ios' ) ;
1418const {
1519 bundleCommand,
@@ -52,11 +56,12 @@ module.exports = {
5256 ramBundleCommand ,
5357 startCommand ,
5458 codegenCommand ,
59+ ...localCommands ,
5560 ] ,
5661 platforms : {
5762 visionos : {
5863 npmPackageName : '@callstack/react-native-visionos' ,
59- projectConfig : ios . projectConfig ,
64+ projectConfig : getProjectConfig ( { platformName : 'visionos' } ) ,
6065 dependencyConfig : ios . dependencyConfig ,
6166 } ,
6267 ios : {
You can’t perform that action at this time.
0 commit comments