watchOS 2 working with CocoaPods
问题 Has anyone gotten CocoaPods working with watchOS 2? I tried using ‘use_framework!’ with ‘platform :watchos, ‘2.0’ but it says "[!] Invalid Podfile file: Unsupported platform watchos2 . Platform must be :ios or :osx .. Updating CocoaPods might fix the issue.” I am on the latest version of CocoaPods. 回答1: CocoaPods currently doesn't support watchos. There is a work in progress issue here for adding support for it. 回答2: CocoaPods released new version which is 0.38.0 and now supports watchOS 2.