Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
245 views
in Technique[技术] by (71.8m points)

ios - How to convert xcode 32 bit app into 64 bit xcode app

I have updated xcode as 6.1 version with ios 8.1.I want to make settings in build settings of project. What changes should be made in architecture and valid architecture of 32 bit xcode project to convert it into 64 bit support.

Earlier,32 bit xcode project has settings as follows: architectures:Standard Architecture(armv7 arm64) valid architectures:armv64 armv7 armv7s

Now,when I changed the architecture setting as... architectures:Standard Architectures (including 64-bit)...as written in developer.apple.com. valid architectures:armv64 armv7 armv7s

So,the application runs on ios device with ios 8.1.3 version

I want to know that,when I write in
valid architectures:arm64 armv7 armv7s,error is displayed in flurry sdk which I have used for ios.4.2.3

but ,when I write .. valid architectures:armv64 armv7 armv7s,then no error displayed,application runs fine.

I know,I will hav to update all my libraries to 64 bit support like flurry sdk,etc.

But,please anyone tell me detail in steps as what should be done to convert 32 bit xcode app into 64 bit app.

And,how one can know the architecture of the libraries used in the project using terminal command.

Thanks..

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It's arm64 not armv64

enter image description here

To explain these,

Architectures: First Step is to set the Architecture to Standard architectures (Apple recommended). Which means build both 32 and 64 Bit architectures. This would change your iOS Deployment Target to iOS5.1.1. With a confirmation from you.

Valid Architectures : Specify the architectures you want to build:
armv7 and armv7s are for 32 bit devices.
arm64 is for 64 bit devices

Build Active Architecture Only : This is to specify, whether, build all the valid architectures or build only for the target specified. So for Debug, set is as Yes, hence, it builds only the current architecture, (32 bit, if iPhone 5 64bit if iPhone 5s). And For Release as No. (Build all architecture for Release).

Apple's recommendation on 64 bit conversion


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...