Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
add section for moving public directory in upgrade guide (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Jan 8, 2021
1 parent c6935e8 commit 87a1cb4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pages/docs/v3/updating/3-0.md
Expand Up @@ -135,6 +135,28 @@ Do the following for your Xcode project and app target: open the **Build Setting

If your app is not already using Swift 5, open the **Build Settings** tab in your Xcode target, then change **Swift Language Version** to **Swift 5** under the **Swift Compiler - Language** section.

### Move `public` into the iOS target directory

It is recommended in Capacitor 3 to move the `ios/App/public` directory into `ios/App/App/public`. This can be achieved in Xcode:

**Remove existing `public` folder**

1. Expand the file tree under the `App` project, then the `App` group, and select the `public` folder.
1. Right-click on **Delete**. When prompted to delete the folder or just remove the reference, select **Move to Trash**.

![delete public folder](/assets/img/docs/ios/xcode-public-delete-folder.png)

**Recreate `public` in the new location**

1. Right-click on the `App` group inside the `App` project and click **Add Files to "App"...**
1. Leave the default options (ensuring to create folder references, not groups and to add to the `App` target).
1. Click **New Folder**, name it "public".
1. Click **Create**, then **Add**.

![recreate public folder](/assets/img/docs/ios/xcode-public-new-folder.png)

It may look the same in Xcode, but the new `public` folder should now be relative to the `App` group, not the project root.

### Update the Capacitor iOS platform

```bash
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 87a1cb4

@vercel
Copy link

@vercel vercel bot commented on 87a1cb4 Jan 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.