universal-binary

How to keep iPhone app out of iPad store?

こ雲淡風輕ζ 提交于 2019-12-30 11:07:38
问题 I have an iPhone app that I have started to turn into a universal app, however the process is not complete and I want to release an update to the iPhone version. I know that you can specify device capabilities in the Info.plist file to restrict your app to certain devices, but how can I do this to prevent the unfinished universal version from appearing in the iPad store? Is checking the LSRequiresiPhoneOS BOOL entry (in the Info.plist file) enough? Thanks! 回答1: You could use the

How to make a mac application support both 32bit and 64 bit systems

一曲冷凌霜 提交于 2019-12-25 04:08:54
问题 I have created one mac application. It is showing 64bit as system requirement. but the app can run in 32bit systems also. When I checked the Build Settings of the application. I found: Valid Architecture : i386 x86_64 and according to my knowledge these are intel based 32/64bit systems. But I want to make my application for all the processor and system 32 and 64bit. How can I do so?? Should I delete them and resubmit the application? 回答1: Mac OS X has run on PowerPC (both 32-bit and 64-bit)

Universal Apps concept for iPhone and iPad

旧巷老猫 提交于 2019-12-22 16:39:13
问题 am a noob at universal apps so please help me out and let me know if this can be done, I am creating a universal app and for doing this i have written the code and made the settings in each of my view controllers present in the iPhone and iPad group and at runtime i am identifying the device whether its iphone or ipad i am using the below method if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { myiPad_View *ipadObj = [[myiPad_View alloc]init]; [self.window addSubview:ipadObj.view]; }

How do I build Universal binaries (ppc/i386) using Xcode 3.2.2 for OSX?

亡梦爱人 提交于 2019-12-22 10:39:57
问题 I am trying to build a universal binary for a project at work, but I can't seem to get Xcode set up properly to do so. I am familiar with the Apple Documentation regarding this, but apparently I am not reading it correctly. The Xcode build options in question seem to be: Architectures Base SDK C/C++ Compiler Version Mac OS X Deployment Target In my settings I have the following Valid Architectures: i386 ppc ppc64 ppc7400 ppc970 x86_64. If I use the following options, I get a binary with i386

convert ipad app to run on iphone (universal app)

一笑奈何 提交于 2019-12-21 03:57:14
问题 I have a working iPad app which I now need to make work on iPhone. I've been reading around a fair bit on this, but haven't found a good answer. On this site, I saw some discussion... but again, no definite answers. Does anyone know of any tutorials? I have captured in my code whether it's an ipad or not - so it's all ready - I just need to actually get it on my iphone to test! Thanks for any info 回答1: actualy you just have to change TARGETED_DEVICE_FAMILY in project settings to run app on

How to port existing iPhone application to iPad

送分小仙女□ 提交于 2019-12-19 04:08:29
问题 I have an iPhone application, now i want to convert that application to a universal application which runs on all the devices iPhone/iPod/iPad. So, where to start, what things i need to do? Any help, link, sample app, anything, will be highly appreciated. Thanks in advance :) 回答1: I've done that recently, it's actually much simpler than it would seem. I recommend you read the iPad programming guide from Apple, it's about 100 pages in PDF (and you don't need to read all of it). Basically, you

How to compile universal libraries on Mac OS X?

為{幸葍}努か 提交于 2019-12-18 11:09:06
问题 This may be a very silly question, but I'm new to developing on Macs and am having a hard time with the universal binaries. I've got an application that I'm compiling in QT Creator, which according to lipo is producing i386 architecture outputs. As I understand it, that means it is producing Mac OS X 32 bit outputs. The application depends on two external libraries. One of these libraries I'm compiling by calling ./config first, and then make. ./config states that it is "Configured for darwin

Use @2x retina images for ipad in universal app? and does apple prefer native apps?

我是研究僧i 提交于 2019-12-18 10:22:19
问题 I know there were some discussions about this but i could not find good answer? My questions are - I know that - [UIImage imageNamed:@"blabla"] will automatically search for the correct image to display (retina or not) on iPhone. I have a Universal app, and i wish to use the @2x versions on the ipad so i wont have to load an other version of the images (I have hundreds of small images). is it possible ? I saw in some places that people wrote that apple discourage Universal apps as it prefers

How do I determine the target architecture of static library (.a) on Mac OS X?

瘦欲@ 提交于 2019-12-17 21:38:01
问题 I'm interested in verifying if a given iPhone static library has been built for ARM or Intel. It's more curiosity than anything. Is there some kind of Mac OS X or BSD specific tool to do this? This post gives an example in Linux. 回答1: Another option is lipo ; its output is brief and more readable than otool 's. An example: % lipo -info /usr/lib/libiodbc.a Architectures in the fat file: /usr/lib/libiodbc.a are: x86_64 i386 ppc % lipo -info libnonfatarchive.a input file libnonfatarchive.a is

How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?

时间秒杀一切 提交于 2019-12-17 01:34:11
问题 Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became impossible. While it is possible to develop applications with Xcode4 that can also run on 10.5 and maybe even on 10.4 systems (by selecting SDK 10.6, but deployment target 10.5 or 10.4), they will only run on Intel Macs because you need at least SDK 10.5 for building PPC applications. Further there are some rare cases, where you really need to build against an SDK prior to 10.6 for full platform