Open ctmanley opened 2 years ago
Check the Package.swift of all the dependencies and verify the target versions. You might be using an older version of HAP (non-master) with a newer version of SRP. Update them all to the latest (for HAP: master). I suppose that should fix things.
Met vriendelijke groet, Bouke Haarsma
Op 15 sep. 2021 om 15:50 heeft Tommy @.***> het volgende geschreven:
I am attempting to compile a project I've been working on with Xcode 13 release candidate. It complied and ran just fine on the simulator under Xcode 12.
There were updates to some of the package dependences so I uninstalled/reinstalled HAP which also updated all of its dependences. The result is that I'm getting the following Target Integrity error:
HAP -- Target Integrity ---- The package product 'SRP' requires minimum platform version 13.0 for the iOS platform, but this target supports 9.0 ---- The package product 'Crypto' requires minimum platform version 13.0 for the iOS platform, but this target supports 9.0 So it seems to me that HAP (this target) is set to support a minimum version 9.0 but that SRP and Crypto require a minimum of version 13.0.
I don't think it is relevant to this error but the Deployment Target for my project is iOS 15.
Where should I look to resolve this? Could it be an Xcode 13 issue?
Thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
I added HAP from its GitHub URL ( https://github.com/Bouke/HAP which is the URL shown under Project package dependences in Xcode ) and the dependences were automatically added by Xcode as well. Here is a screen grab of the Package Dependencies shown in Xcode.
These versions match the latest ones on their GitHub repositories.
Thanks,
Tommy
I think this is an issue with Xcode 13. I copied the master branch of HAP and made changes to supported platforms in the Package.swift file. Lines 5-9 in the original file looks like this
let package = Package( name: "HAP", platforms: [ .macOS(.v11), ],
I changed Package.swift to required iOS 13 or above as follows:
let package = Package( name: "HAP", platforms: [ .macOS(.v11), .iOS(.v13), ],
The result was that I got several compiler errors like this.
'HKDF' is only available in iOS 14.0 or newer
I then updated Package.swift to require iOS 14 or above as follows:
let package = Package( name: "HAP", platforms: [ .macOS(.v11), .iOS(.v14), ],
After this change my app compiled just fine with no errors in HAP or any of its dependent packages.
From this I'm guessing that when the minimum iOS version is not specified in Package.swift, Xcode 13.0 defaults to version 9.0 as if ".iOS(.v9)," was specified. I changed the minimum iOS version to 9 in Package.swift to test this and got my original errors.
Would you update Package.swift to require iOS v14 and above?
Thanks.
Tommy
I am attempting to compile a project I've been working on with Xcode 13 release candidate. It complied and ran just fine on the simulator under Xcode 12.
There were updates to some of the package dependences so I uninstalled/reinstalled HAP which also updated all of its dependences. The result is that I'm getting the following Target Integrity error:
So it seems to me that HAP (this target) is set to support a minimum version 9.0 but that SRP and Crypto require a minimum of version 13.0.
I don't think it is relevant to this error but the Deployment Target for my project is iOS 15.
Where should I look to resolve this? Could it be an Xcode 13 issue?
Thanks.