Lukas1h / PeerChat

Peer-to-Peer messaging app written in SwiftUI, using Multipeer Connectivity
MIT License
8 stars 3 forks source link

Build Error: "DEVELOPMENT_ASSET_PATHS does not exist" #1

Open sollted opened 10 months ago

sollted commented 10 months ago

Hi i really like your project and i wanted to build it on my machine so cloned the repo didnt make any changes and i get this error:

PeerChat/PeerChat.xcodeproj One of the paths in DEVELOPMENT_ASSET_PATHS does not exist: PeerChat/PeerSotial/Preview Content

i have school project same as yours would you be willing to explain the code to me?

i would be very gratefull.

Lukas1h commented 9 months ago

Huh that's an interesting error. Not sure what's causing it. I'm away from the computer right now. When I get back I'll right up an explanation. Is there any specific part of the code that you need explained?

Lukas1h commented 9 months ago

So pretty much all the logic is contained in the Model class in PeerChat/Model/Model.swift.

When it gets init'd it registers some of the Multipeer Connectivity stuff, and sets the delegate of those classes to the Model class itself.

MCNearbyServiceBrowserDelegate as it says in the name handles finding other peers. MCSessionDelegate handles sending and receiving, and connecting to new peers. MCNearbyServiceAdvertiserDelegate handles broadcasting to the peer itself to other peers so they can find each other.

Is there anything else that needs explained?

I'm currently working on trying to fix the build issue.

Lukas1h commented 9 months ago

Could you try the following fix: