No type or protocol named 'UIObjectTraitDefinition' error when trying to build xcode
Closed this issue · 2 comments
Describe the Bug
Hello. I use SPM to import latest release into xcode, however, when trying to build project, get the following error.
No type or protocol named 'UIObjectTraitDefinition'. Can locally import and remove definition but it seems declaration is missing.
Stems from the file Private/LNPopupBarAppearance+Private.h
To Reproduce
Steps to reproduce the behavior:
- Create a Dummy project in Xcode
- Add LNPopupController as a dependency through SPM
- Build dummy project
- Build fails and error is generated
Expected Behavior
Build Succeeds
Additional Context
Not sure if Xcode version but i'm running on Xcode 14.3.1 (Ventura 13.6.5) and Swift-tools-version: 5.5
Hello,
The issue does indeed stem from using an old version of Xcode, without the latest version of the iOS SDK. While the framework supports older versions of iOS, it requires Xcode 15 in order to compile. This is not a bug.
Please be aware that starting in April 2024, Apple will require that apps be built against the iOS 17 SDK, meaning you will need to use the latest Xcode.
ITMS-90725: SDK version issue - This app was built with the iOS 16.1 SDK. Starting April 29, 2024, all iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution.
At this point, there is no reason to put additional work to support old Xcode versions in this framework.
Thanks
Great. Thanks!