简体   繁体   中英

iOS: tvOS API availability error in iOS target | Swift Package

I have iOS application and i'm trying to add a package using swift package manager. Compiler giving me error in a file in that package which is

'init(dynamicProvider:)' is only available in tvOS 13.0 or newer

i have double checked the Package.swift is only for iOS platform and there's also iOS 13.0 version check and fallback code is provided as well. But compiler is giving me error for tvOS. That's very strange.

在此处输入图片说明

Restarting mac worked for me. I cleaned the project before, restarted xCode but eventually ended up on restarting mac. Lolzz very strange.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM