xcode4

In Xcode4, the new interface builder says “no selection”

限于喜欢 提交于 2019-12-05 16:48:14
问题 I am using the xcode 4.02 for iPhone programming. In the new interface builder, when I click a button (or any other GUI-element) and go to the "attributes inspector" it says "no selection". For a while I thought I could solve the problem by saving the nib-file, but it does not always work. How can I solve this problem? 回答1: There seems to be a bug in Attributes Inspector in Xcode 4. When this happens to me I usually do this: Switch to another (non IB) file in the current tab Launch a new Tab

NSLog no output in LLDB. Works in GDB

旧街凉风 提交于 2019-12-05 16:42:12
问题 Since recent update Xcode 4.3 now seems to default to LLDB debugger. I just found that my NSLog statements are not showing in the console. After searching the for answers, finding none, I switched back to GDB and it works fine. I find others mention NSLog in LLDB so I don't' understand why it fails in my case. Should it not work the same? Is there a different method for LLDB? 回答1: Switching from LLDB back to GDB also worked for me. For those who are not familiar with xcode, to change the

Dwarf Error: Cannot find DIE

不想你离开。 提交于 2019-12-05 16:34:33
I am having a lot of trouble debugging a segmentation fault in a C++ project in XCode 4. I only get a segfault when I built with the "LLVM 2.0" compiler option and use -O3 optimization. From what I understand, there are limited debugging options when one is using optimization, but here is the debug output I get after I run in Xcode with gdb turned on: warning: Got an error handling event: "Dwarf Error: Cannot find DIE at 0x3be2 referenced from DIE at 0x11d [in module /Users/imran/Library/Developer/Xcode/DerivedData/cgo-hczcifktgscxjigfphieegbpxxsq/Build/Products/Debug/cgo]". No memory

Is there a BDD solution that presently works well with iOS4 and Xcode4?

我们两清 提交于 2019-12-05 15:38:02
So I've been searching pretty hard for a solid BDD alternative for iOS4 and Xcode4, but everything seems to have either been abandoned a long time ago or sortof working but rather messily. The best solution I've found is called Cedar ( main article with a link to a recently updated project tracker), though it has some issues with Xcode4 involving a messy workaround, as noted here . Does anyone know of a better solution? Thanks! EDIT: I decided on using OCUnit and mushing the BDD syntax into the test names. This is not my ideal solution, especially since all test names must be prefixed with the

iPhone - Cannot run apps from XCode on iOS 5.0.1 device, since iOS update from 5.0

假装没事ソ 提交于 2019-12-05 15:03:47
问题 I have just updated my iPhone to iOS 5.0.1 and XCode doesn't recognize it anymore as a valid device to run applications. I have gone to the organizer, reset the device as a development device, updated my components and library... but still nothing. The device doesn't appear in the available destinations into the main window popup... How can I do to test again on the device ? 回答1: Disconnect your iPhone. Quit iTunes & XCode. Turn off and restart your iPhone. Connect your iPhone, wait for

xcode4 archive/ipa problem [duplicate]

爷,独闯天下 提交于 2019-12-05 13:53:25
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Xcode 4 Archive Version Unspecified Hi, I'm archiving an application for iPad adhoc deployment but when I try to share the archive, the option for ipa construction is not available. The application I'm trying to deploy was created using XCode 3. It worked perfectly fine over there. My problem seems to be, that the created archive has two missing values. The organizer shows the value of "version" as "unspecified"

Xcode 4 autocomplete buggy

梦想的初衷 提交于 2019-12-05 13:17:53
问题 do you face also the problems with Xcode 4 autocomplete feature that used to work great on version 3.x.x? I've imported in the Prefix some classes and Xcode doesn't want to help me with the code entry. I have to manually add above @implementation import "myclass.h" To make Xcode help me entering the class name, properties, methods, macros defined in the myclass.h. On 3.x.x I could import those important classes once in the prefix and the autocomplete feature worked without any problems

How do I archive multiple targets with one action in xcode 4

戏子无情 提交于 2019-12-05 13:10:17
问题 I have a project with multiple targets that are all for different iOS Apps. For instance one traget for the lite version and another one for the pro version. I want to build and archive all of my Apps at once. Currently I have a scheme for every target which I use to archive each app independently. But now I have to start the archiving, wait until it is done and then start the next one. Is there a way to archive all apps with one single action in xcode 4 or using the command line? 回答1: The

why gh-unit is better than SenTestCase ( in Xcode4 )?

馋奶兔 提交于 2019-12-05 12:54:03
This post "Unit Testing in Xcode 4" talks about unit test, let me know the best solution "gh unit" , but I know that xcode4 just provides SenTestCase , so question here to know more reasons why you choose gh-unit ? And now xcode4 provide native unit testing framework, do you think that is the best choice now? RMatthews The best answer is "...well it depends." Here is a very good post on what the determining factors are (as well a a good comparison between the two): http://longweekendmobile.com/2011/04/15/unit-testing-in-xcode-4-use-ocunit-and-sentest-instead-of-ghunit/ 来源: https:/

Xcode: SDWebImage clear cache for single image

余生颓废 提交于 2019-12-05 11:45:02
问题 I'm using SDWebImage to asynchronous image downloader with cache support. It's working perfectly except that sometimes the image got updated on the server with same name, thus I need to clear it from client device cache but no success! I found here that I have to use "removeImageForKey" but it's not recognized by Xcode! I'm using the following code to set the image: [imgPic setImageWithURL:[NSURL URLWithString:@"http://domain.com/image.jpg"] placeholderImage:[UIImage imageNamed:@"tmpPic.png"]