File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
cli-config-apple/src/tools Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ async function install(
100
100
root,
101
101
platform,
102
102
reactNativePath,
103
+ iosFolderPath,
103
104
} ) ;
104
105
await installPods ( loader , {
105
106
skipBundleInstall : ! ! cachedDependenciesHash ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ interface CodegenOptions {
6
6
root : string ;
7
7
platform : string ;
8
8
reactNativePath : string ;
9
+ iosFolderPath : string ;
9
10
}
10
11
11
12
async function runCodegen ( options : CodegenOptions ) : Promise < void > {
@@ -24,7 +25,7 @@ async function runCodegen(options: CodegenOptions): Promise<void> {
24
25
'-p' ,
25
26
options . root ,
26
27
'-o' ,
27
- process . cwd ( ) ,
28
+ options . iosFolderPath ,
28
29
'-t' ,
29
30
options . platform ,
30
31
] ) ;
Original file line number Diff line number Diff line change @@ -292,6 +292,7 @@ async function createFromTemplate({
292
292
root : projectDirectory ,
293
293
platform : 'ios' ,
294
294
reactNativePath,
295
+ iosFolderPath : path . join ( projectDirectory , 'ios' ) ,
295
296
} ) ;
296
297
await installPods ( loader , { } ) ;
297
298
loader . succeed ( ) ;
@@ -311,6 +312,7 @@ async function createFromTemplate({
311
312
root : projectDirectory ,
312
313
platform : 'ios' ,
313
314
reactNativePath,
315
+ iosFolderPath : path . join ( projectDirectory , 'ios' ) ,
314
316
} ) ;
315
317
await installPods ( loader , { } ) ;
316
318
loader . succeed ( ) ;
You can’t perform that action at this time.
0 commit comments