Skip to content

Commit

Permalink
tiny change
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsereno committed Apr 10, 2024
1 parent ba04454 commit 4db7c7e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/content/blog/xcode-previews.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ Thankfully, it's not too hard to get a great preview environment up & running ev

#### SPM & Multiple Platforms?

If you get the error "when building for watchOS simulator, no library for this platform was found" or "when building f
or visionOS simulator, no library for this platform was found" the solution is stupid, & easy. Delete any existing scheme for the platform (watchOS & visionOS in my case), creating a new scheme for the platform, and uncheck everything on the main app. It'll look like this when done correctly:
If you get the error "when building for watchOS simulator, no library for this platform was found" or "when building for visionOS simulator, no library for this platform was found" the solution is stupid, & easy. Delete any existing scheme for the platform (watchOS & visionOS in my case), creating a new scheme for the platform, and uncheck everything on the main app. It'll look like this when done correctly:

![xcode schemes](https://developer.apple.com/forums/content/attachment/95a6a077-15f2-4c89-81a0-e028d13de2aa)

Expand Down Expand Up @@ -206,8 +205,10 @@ As stated above, a lot of times you have a view that can has a child view with a
```swift
struct MyViewA: View {
var body: some View {
Text("Hello, World!")
MyViewB()
VStack {
Text("Hello, World!")
MyViewB()
}
}
}

Expand Down

0 comments on commit 4db7c7e

Please sign in to comment.