首页 \ 问答 \ 对于iOS 5.1和6,如何让iOS应用程序在iPhone 3GS上运行?(How to make an iOS app work on iPhone 3GS and up, for both iOS 5.1 and 6?)

对于iOS 5.1和6,如何让iOS应用程序在iPhone 3GS上运行?(How to make an iOS app work on iPhone 3GS and up, for both iOS 5.1 and 6?)

这是一个感兴趣的问题,因此请尽可能提供您的答案信息。

我最近将Xcode更新为4.5并且无法访问iOS SDK 5.1。 使用几个SO帖子(使用以前的Xcode安装程序中的图像)中描述的方法,我再次添加了iOS SDK 5.1。

我希望通过我的应用程序支持的环境是iPhone 3GS,iPhone 4,iPhone 4S和iPhone 5.显然,iOS SDK 5.1和6.0。 这些要求的推荐构建设置是什么?

现在我在5.1上设置Deployment Target ,在6.0上设置Base SDK ,在armv7和armv7s上设置架构。 它是否正确?

现在,我相信iOS SDK 5.1不是为armv7s(iPhone 5架构)编译的。 如何确保为iOS 6.0编译的代码也适用于iPhone <5? 现在我收到链接器错误ld: file is universal (4 slices) but does not contain a(n) armv7s slice指向iOS 5.1 SDK ld: file is universal (4 slices) but does not contain a(n) armv7s slice ,当不检查Build For Active Architectures Only 。 如何确保在发布到App Store时,应用程序仍可在iOS SDK 5.1上运行。 它似乎是与iOS 5.1结合编译armv7s - 这是行不通的。

任何帮助是极大的赞赏。


This is a question out of interest, so please be as informative as possible with your answer.

I recently updated Xcode to 4.5 and lost access to iOS SDK 5.1. Using the method described in several SO posts (use an image from previous Xcode installer) I added the iOS SDK 5.1 again.

The environments I want to support with my apps are iPhone 3GS, iPhone 4, iPhone 4S and iPhone 5. Obviously with iOS SDK 5.1 and 6.0. What are the recommended build settings for these requirements?

Right now I set the Deployment Target on 5.1, Base SDK on 6.0, architectures on armv7 and armv7s. Is this correct?

Now, I believe iOS SDK 5.1 is not compiled for armv7s (iPhone 5 architecture). How do I make sure that the code compiled for iOS 6.0 also works on iPhones < 5? Right now I'm getting linker errors ld: file is universal (4 slices) but does not contain a(n) armv7s slice pointing to the iOS 5.1 SDK, when not checking Build For Active Architectures Only. How do I make sure that, when releasing to the App Store, the app will still run on iOS SDK 5.1. It appears to be compiling for armv7s in combination with iOS 5.1 -- which won't work.

Any help is greatly appreciated.


原文:https://stackoverflow.com/questions/12950777
更新时间:2022-08-07 13:08

最满意答案

建议使用int ...你的价值可能是:

Sec + Min * 60 + Hour * 3600

24:30:00,您将获得88200。

从DB加载值时,您可以通过简单的数学公式反转您的值:

Hour = int(value / 3600)
Min  = int(value % 3600 / 60)
Sec  = value % 3600 % 1800

Suggest to use int for that... your value could be:

Sec + Min * 60 + Hour * 3600

For the 24:30:00, you will get 88200.

When loading your value from DB, you could reverse your value by simple math equation:

Hour = int(value / 3600)
Min  = int(value % 3600 / 60)
Sec  = value % 3600 % 1800

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。