我想在iOS10上使用Xcode7.
据我所知,使用iOS10测试版需要使用Xcode8测试版,所以我应该升级我的Xcode.但是,我的代码不能用新的编译器构建,所以我想继续使用Xcode7.
我怎样才能做到这一点呢?
我想在iOS10上使用Xcode7.
据我所知,使用iOS10测试版需要使用Xcode8测试版,所以我应该升级我的Xcode.但是,我的代码不能用新的编译器构建,所以我想继续使用Xcode7.
我怎样才能做到这一点呢?
您需要使用Xcode8Beta的DeveloperDiskImage. 为此,解压Xcode8 Beta应用程序,并将用于iOS 10的DeveloperDiskImage复制到您的Xcode文件夹中.
假设您将Xcode解压到Downloads/Xcode-beta.app
cp -r /Users/fanruten/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) /Applications/Xcode_7.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
复制DeveloperDiskImage之后,您应该启动Xcode并将iOS设备连接到您的Mac.
Edit:
使用标准的Xcode安装,用户可以创建软链接:
sudo ln -s \
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5309d\) \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0