我想要的
我想在Xcode 7中使用新的iOS10类和方法。有可能吗?如果有,怎么做?我试了什么(它没有工作)
基于这个问题,我试着做了
sudo ln -s "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0 (14A345)" "/Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0"
,但它没有工作。我能够在运行iOS10的设备上运行代码,但我想使用新的类和方法(例如@import UserNotifications;
)。
你所做的就是支持在iOS 10设备上运行。
要支持新功能,您需要包含头文件并链接到新SDK中的库(您也可以尝试复制它)。