Finally figured this out. It turns out the problem was that the version of Xcode set by xcode-select was the store version of Xcode (11.7).
Once Xcode 12 was released & I installed the update the problem inexplicably disappeared. However, our build server still hade Xcode 11.7 set as the default with xcode-select (even though the build was actually using Xcode 12), so when I pushed a build of our tvOS app the problem showed back up. It took several days of mucking around before it finally occurred to try changing the version of Xcode set with xcode-select. When I set Xcode 12 as the default with xcode-select on the build machine the problem disappeared again.
To be clear - it was not that the project was using the wrong version of Xcode to build - I have a script set to select a specific version of Xcode on the build machine, and on my local machine I was using Xcode 12 to build the project. The problem was specifically the version that was set with xcode-select. For some reason, during the linking process, Xcode 12 (presumably xcodebuild) is using whatever version is set with xcode-select and not actually using the version of Xcode the build was started with.
This seems like a bug in Xcode 12, for which I'll be filing a report.
Post
Replies
Boosts
Views
Activity
I found another, simpler solution to this. Rather than adding libSwiftWebKit.tbd to your project, you can simple ensure that your LIBRARYSEARCHPATHS build setting has $(SDKROOT)/usr/lib/swift in it. Xcode will search that directory for libSwiftWebKit.tbd on its own during the build, eliminating the need for you to explicitly link it to your project, which also means it won't break backwards compatibility with Xcode 11.
🎉
Figured this out. There is a new library in Xcode 12 that needs to be added to the Link Binary with Libraries phase call libSwiftWebKit.tbd. Error went away after adding this.
Unfortunately, adding this library breaks compilation with Xcode 11, so you'll have to add & remove it depending on which version of Xcode you're using.
👎
Still seeing the same thing with Beta 4.
It appears that this error can occur for other reasons besides the one indicated by @drewster, so I'll chime in here too.
I got this error trying to run an app on a device using an Ad Hoc profile. After verifying that my Entitlements files were correct, I did some more digging. I have a Notification Service Extension and a Notification Content Extension as part of my app. For reasons, the extensions need to use different provisioning profiles than the main app use. Turns out, the profile used by the app extensions had expired. After visiting the developer portal, re-generating that profile, and downloading it, I was able to build & run on my device as expected.