You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the iOS platform is not already added, be sure to add it:
34
+
35
+
```shell
36
+
ionic cap add ios
37
+
```
38
+
39
+
With the platform added, run the build command with the `--prod` flag:
40
+
41
+
```shell
42
+
ionic build --prod
43
+
```
44
+
45
+
This will generate the minified code for the web portion of an app.
46
+
47
+
For this first build, and after you make any binary changes like adding a plugin, use the sync command:
48
+
49
+
```shell
50
+
npx cap sync ios
51
+
```
52
+
53
+
This will also copy the minified web code over. However, if your build is only source change then you can just copy the minified web files using:
54
+
55
+
```shell
56
+
npx cap copy ios
57
+
```
58
+
59
+
From here, the project is now managed as if it was a native Xcode app (because it is).
60
+
61
+
Open the project in `./ios/` to start Xcode:
62
+
63
+
```shell
64
+
npx cap open ios
65
+
```
66
+
67
+
</TabItem>
68
+
<TabItemvalue="cordova"label="Cordova">
69
+
27
70
If the iOS platform is not already added, be sure to add it:
28
71
29
72
```shell
@@ -44,6 +87,9 @@ From here, open the `.xcworkspace` file in `./platforms/ios/` to start Xcode.
44
87
You can also have a release build generated automatically by using the `--release` flag.
45
88
:::
46
89
90
+
</TabItem>
91
+
</Tabs>
92
+
47
93
## Generating Signing Certs
48
94
49
95
Generating certificates for iOS is a bit of an involved process, so be sure to check [Apple's official documentation](https://help.apple.com/xcode/mac/current/#/dev3a05256b8) on what certificates are and how to generate them.
0 commit comments