tlk / beoplay-macos-remote-gui

Remote control B&O Beoplay loudspeakers from macOS
MIT License
16 stars 1 forks source link

Can't test latest code #21

Closed mbolo01 closed 4 years ago

mbolo01 commented 4 years ago

I have the following Xcode error:

screenshot_108

Previous version works fine. Kind regards, Jérôme

tlk commented 4 years ago

Apologies, I was trimming the https://github.com/tlk/beoplay-macos-remote-cli/ repository with https://rtyley.github.io/bfg-repo-cleaner/ (to remove a large and unnecessary image file) and broke the contract that repository history never changes. I won't break the project like this again.

Upside is that the repository is now lighter, downside is that Xcode with a project already checked out will give the error you see. Unrelated, I also trimmed other dependencies so the project no longer depends on IBM-Kitura (and other IBM-*).

I believe the following process should provide remediation. The key is to clean files that Xcode (rightfully) assumes will never change. Simply deleting the https://github.com/tlk/beoplay-macos-remote-gui project and checking it out again won't help because Xcode keeps the broken dependencies cached under the hood.

  1. Temporarily remove https://github.com/tlk/beoplay-macos-remote-cli/ as a dependency: remove-dep
  2. Clean build: "Product", "Clean Build Folder"
  3. Clean derived data folder: "File", "Project Settings", "Derived Data", click the tiny arrow and empty the folder: derived-data
  4. Add https://github.com/tlk/beoplay-macos-remote-cli/ back as a dependency
  5. Build the project

Hope this helps!

mbolo01 commented 4 years ago

Problem soled! Many thanks. TuneIn favorite fetch works very well, super improvement!

tlk commented 4 years ago

Happy to hear that!

tlk commented 4 years ago

It may be necessary to close Xcode before cleaning the derived data folder in step 3. While Xcode is closed you may need to delete BeoplayRemoteGUI.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved.

If the build issue persists after this, consider cleaning the derived data folder and deleting the beoplay-macos-remote-gui project to start over.