problem about xcode4.4-Collection of common programming errors


  • Wouter Scholtens
    unit-testing warnings xcode4.4
    Possible Duplicate:Some of my unit tests tests are not finishing in XCode 4.4 I’ve just upgraded to XCode 4.4. I’ve created a new project and included unittesting. When running the tests I get a warning “All tests did not finish”.Colleagues with clean installs of xcode 4.4 have exactly the same problem. They did not type a single letter of code and only created a new project that included unittests.What did we do wrong and how can we solve the problem?

  • firebug
    neon xcode4.4
    I get compilation errors when compiling neon assembly in Xcode 4.4, those error wasn’t in xCode 4.3, the errors are for those commands type:error: invalid operand for instructionvld1 q5.u8, [r12], r2 error: invalid operand for instructionvrhadd d0.u8,d22.u8,d0.u8error: unexpected token in argument listvst1 d2.u32[0], [r1], r3any idea how to solve those errors? Thank you,

  • theodorusap
    xcode cocoa xcode4 xcode4.4
    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 lionany suggestion would be appreciated. thanks

  • Peter Hosey
    xcode osx osx-mountain-lion xcode4.4
    I had a working Mac application until I updated to XCode 4.4 and Mountain Lion. Now the application still compiles, but when I try to run it I get an error message.error: failed to launch ‘/Users/username/James/mac/Browser/trunk/Browser/DerivedData/Browser/Build/Products/Debug/Browser.app/Contents/MacOS/Browser’ — Permission denied*Can anybody explain why I might be getting this?

  • Zero Piraeus
    ios osx-mountain-lion xcode4.4
    Traceback (most recent call last): File “./Scripts/version.py”, line 6, in <module>from Foundation import NSMutableDictionary File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/Foundation/__init__.py”, line 8, in <module>import objc as _objc File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/__init__.py”, line 30, in <module>from objc._bridgesupport import * File “/System/Library/Frameworks/P

  • user1738193
    objective-c debugging xcode4.4
    I have written a some code for a drill down table app I have been making, but the app crashes only during runtime. Xcode doesn’t give me any errors while building the app. The debugger outputs:2012-10-18 10:58:26.513 second[474:c07] -[NavController setItems:]: unrecognized selector >sent to instance 0xc217a002012-10-18 10:58:26.515 second[474:c07] * Terminating app due to uncaught exception >’NSInvalidArgumentException’, reason: ‘-[NavController setItems:]: unrecognized selector sent >to instanc

  • iDia
    ios5.1 xcode4.4
    I’m new to iOS,, I got an EXC_BAD_ACCESS exception in following linenextscrn.fullTextValue=self.fulltextFromSecond;This nextscrn object has created in this way above to that line.ImageVisible *nextscrn=[[ImageVisible alloc]initWithNibName:nil bundle:nil];Can any one explain me what is the reason for this and how can I solve this.Thanks

  • user1600801
    xcode4.4
    Is this normal? I’m developing an application using XCODE 4.4.1. My application chashes and still I don’t know why. But then, I compiled using a MAC Virtual Machine, and my application, without any changes, don’t crash. How can be this possible?

  • Daniel
    objective-c ios xcode xcode4.4
    So am making this app where if you press a button, a sound plays but when i pressed the button the app crashed. Heres me codeIn the .h file#import <UIKit/UIKit.h> #import <AudioToolbox/AudioToolbox.h>@interface ViewController : UIViewController {}-(IBAction)buttonPressedWithSound:(id)sender;@endnothing wrong there, But in the .m file-(IBAction)buttonPressedWithSound:(id)sender {int randomSoundNumber = arc4random() % 4; //random number from 0 to 3NSLog(@”random NR = %i”, randomSoundNu

  • Darren
    ios xcode ios-simulator uikeyboard xcode4.4
    I have an app that I have been working with for over a year, it has been working fine. All of a sudden it has started crashing in the simulator when ever a keyboard is presented. It doesn’t matter where the keyboard is presented from. The app still works on my device.I am using Xcode 4.4 and iOS 5.1. I did install Xcode 4.5 a few days ago in a separate directory, perhaps this is what caused the problem. Here is the error that I’m getting on the console, does anyone have a solution?Unable to load

  • Xoltic
    xcode xcode4.4
    I just update xcode to v4.4 and when I run my project, xcode crash and the simulator’s screen stay black. One of the solution I find is that I had to update to mountain lion (I had Lion) and to re-install xcode.But I wanna know if there’s another option without updating to mountain lion.*Re-install xcode doesn’t work.

  • user1738193
    objective-c cocoa-touch xcode4.4 unrecognized-selector
    I am having a problem during run-time that says-[__NSCFString _isResizable]: unrecognized selector sent to instance 0x6a86a802012-10-24 14:21:08.070 Diabetic Food Guide[767:c07] * Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSCFString _isResizable]: unrecognized selector sent to instance 0x6a86a80’I think the problem lies in these parts of the code: /*ViewControllerManual.m*/ – (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {NSDictio

  • user2725590
    c++ sqlite3 linker xcode4.4
    Hi I want to use sqlite in c++ project in xcode 4now i am getting this errorLd /Users/jayb/Library/Developer/Xcode/DerivedData/EMS-bpigynlzjbrescadebhoiupqmtkg/Build/Products/Debug/EMS normal x86_64cd /Users/jayb/Documents/Developement/EMS/EMSsetenv MACOSX_DEPLOYMENT_TARGET 10.8/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/U

  • El Developer
    objective-c xcode automatic-ref-counting xcode4.4
    I’ve recently upgraded to Xcode 4.4 and have been using it for some Mac App Store submissions. Two worked fine but the third gave this error:Undefined symbols for architecture x86_64:”_objc_retain”, referenced from:___ARCLite__load in libarclite_macosx.a(arclite.o)(maybe you meant: _objc_retainedObject) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)ARC is turned off so I don’t know where this reference is coming fro

  • user1563726
    box2d clang xcode4.4
    I have just updated to XCode 4.4 and now get this linker-error:Undefined symbols for architecture armv7:”_objc_copyCppObjectAtomic”, referenced from:-[CLASSNAME box2DBodiesList] in CLASSFILENAME.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)Whereas: @property (readonly) std::vector box2DBodiesList;This is an iOS-app.Any clue?

  • Tanner Silva
    objective-c osx-mountain-lion xcode4.4
    I have created a NSCollectionViewItem subclass, called TSCollectionViewController. It overrides one method, setRepresentedObject:. I plan on using it in my NSView, TSTopChartView. Oddly enough, I get an error when I add it to the TSTopChartView.h file (pictured below). Obviously, Xcode doesn’t like TSCollectionViewController for this file. I just can’t figure out why! I’ve imported the file, so it shouldn’t be an unknown type name. Any ideas? Thank you for your time!Here is TSCollectionViewContr

  • Weibin Shen
    simd xcode4.4 fftw altivec
    I’m using fftw on a Mac using Xcode 4.4. In my project, I added the whole fftw source code into the project and tried to compile it.It cannot compile successfully, because in the simd-altivec.h, it gives errors like these:ALTIVEC only works in single precisioncompiling simd-altivec.h requires -maltivec or equivalentunknown type vectorunknown type VMy questions are:What is a better way to add a third party library into my project? Directly adding all the source file into my project seems awkward

Web site is in building