xcode4.4

Debug issues with libc++ in Xcode 4.4

风流意气都作罢 提交于 2019-12-23 09:42:15
问题 I am having a problem when I try to debug on a list iteration on c++. I made a simple test app: int main(int argc, const char * argv[]) { // insert code here... std::cout << "Hello, World!\n"; std::list<int> list; list.push_back(1); list.push_back(2); --> list.push_back(3); //Line before step over for (std::list<int>::const_iterator i = list.begin(); i != list.end(); i++) { std::cout << *i << std::endl; } return 0; } While debugging, when I am on the line marked with an arrow, when I step

What properties do we synthesize in xcode 4.4.1

青春壹個敷衍的年華 提交于 2019-12-21 06:37:48
问题 I am using Xcode 4.4.1. When I define @property like UINavigationController or NSArray in .h file I have to @synthesize it in .m file. But some @property like UITabBarController or NSString I don't have to @synthesize it to make it work. My Question is what @property s need to @synthesize and what need not to. AppDelegate.h @interface AppDelegate : UIResponder <UIApplicationDelegate> { UITabBarController *_tabBar; UINavigationController *_navBar; } @property (strong, nonatomic) UIWindow

XCode 4.4 “Permission denied” when trying to download Application Data

自古美人都是妖i 提交于 2019-12-20 14:13:06
问题 After updating my XCode to version 4.4 it seems to be impossible to retrieve Application Data from my devices. In Xcode 4.3 (and all previuos version) I downloaded my Application Data (like SQLite databases and files I created) through the organizer (Organizer -> Devices -> "Device" -> Applications -> "Application" -> Download). With Xcode 4.4 i get an error ("Permission Denied") when I try to download the Documents from the sandbox. Is there anything new (maybe a new setting?) I have to

How to compile distributable Fortran binaries on Mac OS X Mountain Lion?

别说谁变了你拦得住时间么 提交于 2019-12-20 09:41:05
问题 Since Apple have stopped distributing gfortran with Xcode, how should I compile architecture independent Fortran code? I have Mac OS X Mountain Lion (10.8), and XCode 4.4 installed, with the Command Line Tools package installed. Apple's Native Compilers As far as I can tell, the Xcode C / C++ / ObjC compilers use a fork of the GNU compiler collection, with llvm as a backend; the latter I figure enables compiling and optimising "universal" binaries, for both Intel and PPC architectures. 3rd

Why doesn't icon composer 2.4 support the 1024x1024 size icon any more?

笑着哭i 提交于 2019-12-20 08:59:17
问题 The icon composer 2.2 in Xcode 4.3.3 supports the icns of 1024x1024. However, for icon composer 2.4, it doesn't support that any more. This is ironic, since Apple pushes for the retina display mbp and requires the newly submitted app to use 1024x1024 icon, but the icon composer doesn't support it any more. Is there any alternative or newly introduced solution by Apple for creating the icon of the size 1024x1024? I really don't understand why Apple is doing this. Thanks! 回答1: Icon Composer 2.4

Xcode 4.4 & 4.5 freezing on project close

百般思念 提交于 2019-12-20 04:15:39
问题 Ever since upgrading to Xcode 4.4 and again upgrading to 4.5 (running on Lion), Xcode appears to freeze for about 3-5 minutes every time I close my app project or quit. During this time, activity monitor shows that the CPU is pegged at 95%, although little disk activity is occurring. I have tried uninstalling and re-installing Xcode and this didn't make a difference. Anyone else experiencing this? Any suggestions what I could do? Thanks in advance! 回答1: This issue is reported: https:/

Set Button selector (on click event) at runtime ? (Cocoa : Mac Project)

旧时模样 提交于 2019-12-20 04:11:02
问题 Any idea how to set button selector at runtime (on click event) for mac (Not IOS) I have a view controller with a button declared as outlet : #import <Cocoa/Cocoa.h> @interface MyView : NSView @property (assign) IBOutlet NSButton *MyBtn; i can access that buton with something like this : MyView * v; . . . [v MyBtn] i didn't find "addTarget" choice like on cocoa touch. The only choice is "setTarget(id)" I'm using Xcode 4.4.1 for osx mountain lion any suggestion would be appreciated. thanks 回答1

Some of my unit tests tests are not finishing in XCode 4.4

大憨熊 提交于 2019-12-18 12:46:09
问题 I have seen people posting about this here and elsewhere, but I haven't found any solution that works. I am using XCode 4.4 and have a bunch of unit tests set up. I have ran them all before on this project, so I know that they do pass/fail when they are supposed to if they are actually ran. I have about 15 test suites, and each one contains 1-7 tests. On most attempts, all of the test suites finished (and passed) except for 1 (FooTests). It gives the warning: FooTests did not finish testFoo

Automatically @synthesized properties in Xcode 4.4

房东的猫 提交于 2019-12-17 18:46:05
问题 From the Xcode 4.4 release notes: The compiler automatically calls @synthesize by default for unimplemented @properties What exactly does the new default synthesizer look like? Does it create a variable of the same name as the property (or does it prefix it with an underscore, which seems to be a good practice, but required extra typing so far)? 回答1: the default is @synthesize propertyName = _propertyName 来源: https://stackoverflow.com/questions/11666008/automatically-synthesized-properties-in

CorePlot failed to build in XCode 4.4

落花浮王杯 提交于 2019-12-17 13:03:41
问题 I am using CorePlot 0.3, everything was ok until I upgraded XCode to 4.4 (2 days ago), CorePlot failed to build and I got some errors with message: clang: error: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is present Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 I have tried to search and it seems there are many people have a same problem, and I also found some suggestions and solution to fix it, I have