美文网首页
XCode8 支持IOS7

XCode8 支持IOS7

作者: 志闲真人 | 来源:发表于2016-10-14 15:22 被阅读0次

问题:最近好多IOS开发升级Xcode8,发现Xcode默认最低支持IOS8。

解决方案:

一、 如果你的工程用的全是oc开发,恭喜你按下面方法很容易就搞定。

1.下载:文件链接: https://pan.baidu.com/s/1dELI1pB 密码: 3s7e。

2.放在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport下面即可。(Finder->前往->前往文件夹)

3.设置Xcode General->Deployment Target 7.0(没有选项,强制写7.0)。

二、如果你的工程是oc和swift混编或swift 还使用了Pod建议最好就最低支持IOS8

1.设置Podfile

platform :ios, '7.0'

use_frameworks!

2.如果你的工程不发布到AppStore。用上面的方法勉强还可以。

3.如果发布AppStore 还是会报错

No it does not. use_frameworks! enables Swift support by building your code in the new dynamic frameworks. Dynamic frameworks only support iOS 8. Unfortunately, since you cannot use Swift in static libraries (the previous way CocoaPods bundled libraries), this was the only way to bundle Swift files.

A note that, I believe, is important enough to be an answer. Dynamic frameworks are actually supported on iOS 7, and you can run code using dynamic frameworks on an iOS 7 device. However iOS 7 doesn't support fair-play encrypted third-party frameworks. And because of that if you tried to submit an app for iOS7 using dynamic frameworks to iTunesConnect, it would be rejected (one prooflink).

I think that it is important, because it might seem that it works, but it doesn't. And if you ignore the warning, you might encounter the problem too late, when half the project is already in Swift.

We faced this problem when we were starting to develop our own pod. The project compiled and run fine on iOS 7. Good thing we researched this issue further.

原因参考http://www.91r.net/ask/29728487.html

相关文章

  • Xcode8 支持 iOS7及以下版本

    Xcode8 支持 iOS7及以下版本

  • Could not locate device support

    原因:你的Xcode8 不支持 iOS7 解决方法: 在“/Applications/Xcode.app/Cont...

  • iOS 进阶之 WKWebView

    前言 Xcode8发布之后,编译器开始不支持 iOS7了.很多应用在适配 iOS10之后都不再适配 iOS7了.最...

  • Xcode8兼容iOS7真机调试

    Xcode8 正式版已经发布,去除了对iOS7支持,使用iOS7真机调试的时候会出现下面所示的情况。 Xcode8...

  • XCode8 支持IOS7

    问题:最近好多IOS开发升级Xcode8,发现Xcode默认最低支持IOS8。 解决方案: 一、 如果你的工程用的...

  • IOS进阶之WKWebView

    前言 Xcode8发布以后,编译器开始不支持IOS7,所以很多应用在适配IOS10之后都不在适配IOS7了,其中包...

  • WKWebview替代UIWebView之简单攻略

    前言 Xcode8发布以后,编译器开始不支持IOS7,所以很多应用在适配IOS10之后都不在适配IOS7了,其中包...

  • WKWebView与JS交互,使用addScriptMessag

    Xcode8发布以后,编译器开始不支持IOS7,所以很多应用在适配IOS10之后都不在适配IOS7了,其中包括了...

  • IOS进阶之WKWebView

    Xcode8发布以后,编译器开始不支持IOS7,所以很多应用在适配IOS10之后都不在适配IOS7了,其中包括了很...

  • Xcode8支持IOS7设备调试

    1.首先我们如果使用Xcode8新建的工程,默认支持的最低版本是iOS8,如果想支持iOS7 我们可以手动改动版本...

网友评论

      本文标题:XCode8 支持IOS7

      本文链接:https://www.haomeiwen.com/subject/rhalyttx.html