Thank you for sharing your solution. I ran into this bug today and spent hours trying to debug it. I just added a tab view controller to my app and one of the tabs is a hosting view controller that hosts a SwiftUI map which ignores all safe edges. When this map tab was selected, the only part of the tab view that was visible was the selected/current tab. I would have wasted a lot more time trying to debug this without your suggestion.
Post
Replies
Boosts
Views
Activity
According to this stack overflow issue I finally stumbled on, there are/can-be (I am not entirely sure) issues with packages using SSH access i.e. git@. However, simply switching to https:// URLs for my packages was insufficient, I had to clear package caches and even go as far as manually deleting some directories. I deleted the contents of:
~/Library/Caches/org.swift.swiftpm
~/Library/Developer/Xcode/DerivedData
Before deleting those, first I:
Removed all the package dependencies from my project (and test projects I created to try and understand/resolve this problem).
Closed Xcode
Deleted the above directories
Opened Xcode and then reimported my packages using the https:// links (not git@)
After that, I was successfully able to commit changes to my package, push to my private repo, then use the "Update Package" feature in Xcode to pull the latest version.
I just ran the same test with the same package hosted on GitHub.com and I am not seeing the issue anymore. It seems to be something related to Gitlab for some reason, either public or private repos.
After more experimenting this morning, I've discovered that I run into the same issue even with a public repo hosted on gitlab.com
I created a very basic project with a single dependency, and can reproduce the exact same issue with a publicly available package.
I am running Xcode version 14.0.1