AgoraIO-Community / AR-Remote-Support

This is a POC of how to build a Remote support app (similar to Vuforia Chalk) using ARKit and Agora.io's Video SDK.
MIT License
23 stars 11 forks source link

[BUG]Xcode Missing package product #26

Closed lichadehehehe closed 1 year ago

lichadehehehe commented 2 years ago

Describe the bug "Missing package product" while compiling the project. All dependencies failed to load.

To Reproduce Steps to reproduce the behavior:

  1. Open the project in Xcode.
  2. Input app ID into AppKeys.swift.
  3. Wait until all remote packages are fetched.
  4. Click the build project button.
  5. Error of missing package product shows up.

Expected behavior Project built successfully.

Screenshots If applicable, add screenshots to help explain your problem. image

**

planetMatrix commented 2 years ago

Same here . @digitallysavvy please guide

digitallysavvy commented 2 years ago

@maxxfrazer

maxxfrazer commented 2 years ago

resetting the package caches should do the trick. click help at the top and type in "package caches", the option should appear there.

planetMatrix commented 2 years ago

I tried that option multiple times...at least for me it did not work, may be I'm doing something wrong?

Screenshot 2022-09-22 at 12 49 33 PM
maxxfrazer commented 2 years ago

I see - what I put will help with the error messages at the start of this issue.

from the ss you gave, looks like it's looking for some pre-release versions of several packages. we haven't updated this in a little while, I'll patch it up now.

planetMatrix commented 2 years ago

Awesome @maxxfrazer ... many thanks for swift support.. This gives confidence in using your sdk Take care

maxxfrazer commented 2 years ago

okay, I've taken a look and it looks like Xcode 14 has a new warning/error so that's fun 😄

to summarise - video uikit is on version 4.0.0, the sdk (for reasons that I am doing my best to get rid of) released the unstable version 4.0.0-r.4. Xcode now doesn't like when a stable package depends on an unstable one. sigh.

Patch incoming on this repo in just a second.

maxxfrazer commented 2 years ago

Give the branch 4.x-uikit a try. I had a go locally and it's building okay now at least, but still has that warning on the side about unstable versions. possibly due to caching.

I messed up my local swift package cache, moving these around etc, a clear of ~/Library/Developer/Xcode/DerivedData did the trick.

planetMatrix commented 2 years ago

Perfect... build ... Many thanks

planetMatrix commented 2 years ago

Don't know if its related to this but on the helper side I get black screen, On other side I'm receiving both Audio and Video from helper device However on helper side only Audio from other user is transmitting and not the video

IMG_8062

maxxfrazer commented 2 years ago

I just had a quick look at the dependency we use for capturing the SceneKit scene… this may be a problem coming from that package due to a change in iOS 16

https://github.com/AFathi/ARVideoKit/issues/136

planetMatrix commented 2 years ago

BTW I'm on 15.6.1 on iPhone X and 15.4 on iPad Pro

maxxfrazer commented 2 years ago

based on that I thought that the external video capture was broken in the SDK for a moment there… but just created an example that works okay. I think it's something to do with the pixel buffer ARVideoKit is spitting out; this was working previously.

The image seems fine locally before sending into the SDK... I'll let you know if I get anywhere, this repo is due for a refresh in any case.

maxxfrazer commented 1 year ago

apologies for the delay, I'm looking into this still. It seems that the pixel buffer consumer of the 4.0 RTC engine is subtly different from 3.x, and doesn't like the output from ARVideoKit. Once the root cause is found I'll do one of: make a fix directly here; make a PR to ARVideoKit; or await an RTC engine update with a patch. Apologies for this bug, and thank you for finding it!

maxxfrazer commented 1 year ago

This is fixed in SDK 4.1.0. I'll update this repo as soon as that version is out (I believe early next week)

lichadehehehe commented 1 year ago

Thank you maxxfrazer for looking into this issue. The 4.x-uikit branch can be successfully built but I still encounter the same issue as planetMatrix did. Please let me know if this is solved.

maxxfrazer commented 1 year ago

thanks for the reminder @lichadehehehe! the release got delayed until i left for the holidays. will update it today.

lichadehehehe commented 1 year ago

image FYI this is what the console output looks like. Looks like the touches from the helper are registered aside from the black screen.

maxxfrazer commented 1 year ago

All fixed on the main branch 👍