xcode4

What is the correct way to set build configurations in an ios project using static libraries for creating an archive in xcode 4?

旧城冷巷雨未停 提交于 2019-12-08 20:38:14
问题 I have a working application which relies on several static libraries, which I've added as dependencies to the application and added to the link with static libraries bit in build phases. Everything builds and runs fine in the simulator and on my attached iPad. I wanted to create an .ipa for use with test flight so I followed the instructions on test flight's site (http://support.testflightapp.com/kb/tutorials/how-to-create-an-ipa-xcode-4) and some other tutorials relating to creating an

Xcode 4 - Error Starting Executable

血红的双手。 提交于 2019-12-08 19:55:23
问题 I've been working on a project in Xcode 3.2.5 and today I tried migrating it up to Xcode 4.0. It compiles just fine; I can navigate to and execute the .app without a hitch (as expected). The only thing that is screwy is the fact that Xcode cannot launch the application, and displays the following error when it tries: "Error starting executable. No executable file specified. Use the "file" or "exec-file" command" (image not available) I've scoured the Project and Xcode settings and have been

Adding files in Xcode 4: ensure the path is relative to the project/how to change path?

不羁的心 提交于 2019-12-08 17:30:30
问题 In Xcode 4, I can't add files/resources to my project without having the Relative-to-Group path end up something like: ../../workspace/Project/Resources/thing.png Ideally I would have Resources/thing.png . I have tried every possible combination of adding folders, files, making new groups. I wish to keep my resources in a folder within my project directory. If I omit the folder, clearly my assets will be relative to the project — just "thing.png" under the project's root. Is there any way to

what is the difference between UIInterfaceOrientationMaskPortrait and UIInterfaceOrientationPortrait

妖精的绣舞 提交于 2019-12-08 17:05:40
问题 I have looked at documentation but cannot find why sometimes the word mask is inserted and sometimes not. 回答1: UIInterfaceOrientationMask is used by iOS 6's -[UIViewController supportedInterfaceOrientations] method (docs here), which is a bitmask of all the orientations your view controller will take, called by the sdk. The following is an example implementation: - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; // supports both landscape modes } This

How to prevent Xcode 4 from jumping to the main.m file after every Run?

喜欢而已 提交于 2019-12-08 15:04:18
问题 Every time I hit cmd+R it jumps the editor window to the main.m and highlights this for a fraction of a second: int retVal = UIApplicationMain(argc, argv, nil, nil); Breakpoints disabled. It's very annoying. Any way to stop this? 回答1: Usually this happens to me when I have a breakpoint at a position that no longer exists (code deleted i.e). GDB stops at the beginning of the program, if it finds an invalid breakpoint. This seems to cause the switching to main.m on xcode's part. Most often I

Xcode 4 - IOS - Simulator not available as build target

霸气de小男生 提交于 2019-12-08 14:55:48
问题 I have a weird issue... I'm unable to find the simulator as a device in order to test my application. Anyone have any idea how to fix it? In a new project, it is available though. Regards, EZFrag 回答1: Here's what happened to me ... when I updated to the latest version of XCode (4.3.2) I didn't bother to uninstall the previous version. I mistakenly opened my iOS 5.1 targeted project in the older version of XCode that does not know about 5.1 and as a result the simulator was not available. So i

Add File associations for IOS in Xcode4

这一生的挚爱 提交于 2019-12-08 14:28:18
问题 How to add a file association for certain extensions in xcode4. In the Xcode4/Target there is a "Document Types" section, i tried adding a few entries but i just don't get how to set this to open my files. edit: Sorry if someone miss understood, what i really want is this: I'm developing an application for iPad, my users needs to upload a config file into the app, (a .conf), i wanna supply two ways to do so, trough iTunes "File Sharing", and Mail, ie, the user mail themselves the config, and

linking gdata to an xcode 4 project

家住魔仙堡 提交于 2019-12-08 13:09:43
问题 I'm having major issues linking gdata to a project after upgrading from xcode 3.2.5 to xcode 4. I would like to know if anyone is having similar issues, and what did they do to resolve them. i am using gdata version 1.11 which is the latest on their site. The project works flawlessly on 3.2.5, thanks. I have created a workspace for my project, and then added the gdata.proj to it. So I do have all the files linked by reference. But project files which include #import "GDataYouTube.h" do not

Error building Adhoc for Three20-integrated app on XCode 4

依然范特西╮ 提交于 2019-12-08 12:13:21
问题 I'm building an iOS application with Three20 integrated. My app is running very well even on Simulator or iDevices. However, when I try to build an Ad-hoc to send to my customer for testing. I got a very strange error Ld /Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/Objects-normal/armv6/Fantator normal armv6 cd /Users/kulnova/Desktop

How to call the local image file and display into the imageviewcontroller

大城市里の小女人 提交于 2019-12-08 10:15:32
问题 I create the one application in that create the locally store the file in payment while the application not be deleted. This I have done: I download the file and store into locally (applications document folder). Now I am having trouble with this: While the after the image is downloaded then I fetch into locally and that image will not display. In NSLog following url is generated and i can't display the image. /Users/username/Library/Application%20Support/iPhone%20Simulator/5.0/Applications