Skip to content

Commit

Permalink
Merge pull request #1902 from Karthiccc23/add-pod-update
Browse files Browse the repository at this point in the history
Add optional podRepoUpdate flag in iosConfig
  • Loading branch information
rthic23 authored Oct 6, 2023
2 parents c706e35 + 534ae77 commit d9363a3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
12 changes: 12 additions & 0 deletions docs/platform-parts/container/container-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,18 @@ You can override the iOS deployment target version to use by setting `iosConfig`
}
```

You can run pod repo update before pod install by setting `podRepoUpdate` in the cauldron as show below.

```json
{
"containerGenerator": {
"iosConfig": {
"podRepoUpdate": true
}
}
}
```

[1]: https://github.com/electrode-io/ern-container-transformer-xcframework
[2]: https://github.com/electrode-io/ern-container-publisher-cocoapod-git
[transform-container]: ../../cli/transform-container
Expand Down
13 changes: 10 additions & 3 deletions ern-container-gen-ios/src/IosGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,16 @@ Make sure to run these commands before building the container.`,
? `_${ernConfig.get('podVersion')}_`
: '';

const podCmdArgs = [podVersionArg, 'install', '--verbose'].filter(
(x: string) => x !== '',
);
const podRepoUpdateArg = config?.iosConfig?.podRepoUpdate
? '--repo-update'
: '';

const podCmdArgs = [
podVersionArg,
'install',
podRepoUpdateArg,
'--verbose',
].filter((x: string) => x !== '');

shell.pushd(config.outDir);

Expand Down

0 comments on commit d9363a3

Please sign in to comment.