简体   繁体   English

我们应该使用ios模拟器7在xcode 5中运行iPhone应用程序吗?

[英]Should we run iPhone application in xcode 5 with ios simulator 7?

I have generated a build in Xcode 4.6 and tested it in iPhone 5 device with iOS 7.4 and its working fine and I was not getting any issues such as status bar missing, UIButton background missing etc. But if I run the same code in Xcode 5 with iOS simulator7 then I was getting issues such as status bar missed, background of UIButton missed and I couldn't able to change the table view back ground color. 我已经在Xcode 4.6中生成了一个版本,并在iOS 5的iPhone 5设备中进行了测试,并且工作正常,我没有遇到状态栏丢失, UIButton背景丢失等问题。但是如果我在Xcode 5中运行相同的代码随着iOS模拟器7然后我遇到问题,如状态栏错过,UIButton错过的背景,我无法更改表视图背景颜色。 So finally should I run my code in Xcode 5 with iOS simulator 7 and fix all the issues? 所以最后我应该在iOS模拟器7的Xcode 5中运行我的代码并解决所有问题吗? OR can I directly push this app in to App Store with out checking it in Xcode 5. Please help me. 或者我可以直接将此应用程序推送到App Store而不在Xcode 5中进行检查。请帮助我。 Thanks in advance. 提前致谢。

In Xcode 4.6 the base SDK is for iOS6. 在Xcode 4.6中,基本SDK适用于iOS6。 So if you build an application on Xcode 4.6 it will run iOS 7 but it will not be able to use the API's provided by Apple for iOS7. 因此,如果您在Xcode 4.6上构建应用程序,它将运行iOS 7,但它无法使用Apple为iOS7提供的API。 It will a iOS6 app running on iOS7 like many other apps do. 它将像iOS7一样在iOS7上运行,就像许多其他应用程序一样。

In Xcode 5.0 the base SDK is for iOS7. 在Xcode 5.0中,基本SDK适用于iOS7。 This means that you can use the latest APIs provided for iOS7. 这意味着您可以使用为iOS7提供的最新API。 You are getting these errors when building in Xcode 5.0 because those APIs might not be supported in the new iOS7 SDK. 在Xcode 5.0中构建时会出现这些错误,因为新的iOS7 SDK可能不支持这些API。

What I mean to say is that if you want your app to be a native iOS7 app then you need to build it on Xcode 5. Building on Xcode 5 will allow your app to feel like an iOS7 app. 我的意思是,如果你想让你的应用程序成为原生iOS7应用程序,那么你需要在Xcode 5上构建它。在Xcode 5上构建将允许你的应用程序感觉像iOS7应用程序。 Though you will face a lot of errors as a lot of iOS6 APIs have been deprecated in iOS7. 虽然你会遇到很多错误,因为许多iOS6 API已经在iOS7中被弃用了。

If you want to support both iOS6 and iOS7 I suggest you build it on Xcode 5. Again you will have to keep in mind that some iOS7 API's are not available for iOS6 therefore you will have to keep a check on that. 如果你想同时支持iOS6和iOS7,我建议你在Xcode 5上构建它。再次你必须记住,iOS6不支持某些iOS7 API,因此你必须对它进行检查。

To get a better idea I suppose you should have a look at this document. 为了更好的想法,我想你应该看看这个文件。 iOS7 transition guide iOS7过渡指南

Thank You. 谢谢。

You should definitely build and test in Xcode 5, why run the risk of shipping a bad product? 你应该在Xcode 5中构建和测试,为什么要冒运送不良产品的风险? For me you must properly test this in Xcode 5, on all deployment intended devices and the simulator. 对我来说,你必须在Xcode 5中,在所有部署的设备和模拟器上正确地测试它。

按照iOS 7 UI过渡指南修复您在XCode 5中遇到的所有问题,然后将应用程序提交到商店。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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