Post

Replies

Boosts

Views

Activity

Reply to tvOS / Xcode 12 Expected a type "UISplitViewControllerStyle"
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.
Sep ’20
Reply to Xcode 12b3 Undefined symbol: __swift_FORCE_LOAD_$_swiftWebKit
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. 🎉
Sep ’20
Reply to Xcode 11.2: Unable to install (on device): The executable was signed with invalid entitlements: Code: -402620394
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.
Jul ’20