-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error while trying to create sync service #12
Comments
Hi! Sorry you're having issues - are there no logs shown before that may say why it's happening? The main reasons I'm aware of where this might happen would be issues with Info.plist values or if the user has not allowed local network access. To be sure, if you set the serviceName to "service", the values in Info.plist should be |
Thanks for the fast reply - no nothing else in the logs I'm afraid - I triple checked my info.plist entries, I have the correct entries for I am using the latest XCode (12.5) + Building for iOS 14.5, though I have tried this package earlier on with older versions of iOS 14 and have experienced the same crash. Please let me know if there is any other information I can provide. Would really love to use this package. UPDATE - Some interesting information. I have a similar function to yours that sets up my ARView configuration, and runs the AR session. One of the lines I have in there is Two things I noticed - when commenting out this line in my configuration, and running on my dev device (iPhone 12 Pro Max), the app does not crash in the same spot it has been. However, when this line is left in, it will crash when trying to setup the service. The second thing is, when keeping this line in and running on my personal device (iPhone 11 Pro), it does not crash either way. Just to confirm this, I added this same line into the Not sure what could be causing this. Both devices are configured the same. The only difference that I can speak to is that the 12 Pro has a LiDAR sensor on it, though I'm not sure if this would have any effect on multipeer functionality. |
I remember seeing in a WWDC event last year that they said that scene understanding physics does not work across MPC. I don't remember them saying it will crash it - but it's unlike Apple to say exactly that! You said that adding the |
It is odd - not sure if you want to investigate further on your end, but this is resolved for me. |
@maxxfrazer @michaeldeprospo did either of you by chance do any additional research on this? I'm wondering if there's a way to make it work still if at all possible |
Hello - Thank you for your hard work on this project!
I've setup my ARViewController based on the provided example project. I have all of the correct entries in my info.plist. When running the app, the build succeeds but immediately fails in the
func setupMultipeer()
while trying to set RealityKit syncronization during:guard let syncService = multipeerHelp.syncService else { fatalError("could not create multipeerHelp.syncService") }
Could you provide any insight as to why this may be happening?
The text was updated successfully, but these errors were encountered: