{"id":4031,"date":"2014-03-30T07:19:25","date_gmt":"2014-03-30T07:19:25","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-xcode4-4-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:19:25","modified_gmt":"2014-03-30T07:19:25","slug":"problem-about-xcode4-4-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-xcode4-4-collection-of-common-programming-errors\/","title":{"rendered":"problem about xcode4.4-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/90ca1a9368e409eef9c63eb6f956fdd3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWouter Scholtens<br \/>\nunit-testing warnings xcode4.4<br \/>\nPossible Duplicate:Some of my unit tests tests are not finishing in XCode 4.4 I&#8217;ve just upgraded to XCode 4.4. I&#8217;ve created a new project and included unittesting. When running the tests I get a warning &#8220;All tests did not finish&#8221;.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?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2b4dbad007d95dfb69332426d29dd056?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nfirebug<br \/>\nneon xcode4.4<br \/>\nI get compilation errors when compiling neon assembly in Xcode 4.4, those error wasn&#8217;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,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6c8b6779abfc8f5411c43484e2135276?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntheodorusap<br \/>\nxcode cocoa xcode4 xcode4.4<br \/>\nAny 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 &lt;Cocoa\/Cocoa.h&gt;@interface MyView : NSView @property (assign) IBOutlet NSButton *MyBtn;i can access that buton with something like this :MyView * v; . . . [v MyBtn]i didn&#8217;t find &#8220;addTarget&#8221; choice like on cocoa touch. The only choice is &#8220;setTarget(id)&#8221;I&#8217;m using Xcode 4.4.1 for osx mountain lionany suggestion would be appreciated. thanks<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/6x6v2.jpg?s=32&amp;g=1\" \/><br \/>\nPeter Hosey<br \/>\nxcode osx osx-mountain-lion xcode4.4<br \/>\nI 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 &#8216;\/Users\/username\/James\/mac\/Browser\/trunk\/Browser\/DerivedData\/Browser\/Build\/Products\/Debug\/Browser.app\/Contents\/MacOS\/Browser&#8217; &#8212; Permission denied*Can anybody explain why I might be getting this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1c0e4481d88d2e7b220ab146a5367b61?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nZero Piraeus<br \/>\nios osx-mountain-lion xcode4.4<br \/>\nTraceback (most recent call last): File &#8220;.\/Scripts\/version.py&#8221;, line 6, in &lt;module&gt;from Foundation import NSMutableDictionary File &#8220;\/System\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/Extras\/lib\/python\/PyObjC\/Foundation\/__init__.py&#8221;, line 8, in &lt;module&gt;import objc as _objc File &#8220;\/System\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/Extras\/lib\/python\/PyObjC\/objc\/__init__.py&#8221;, line 30, in &lt;module&gt;from objc._bridgesupport import * File &#8220;\/System\/Library\/Frameworks\/P<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0c58a61b049c13690834df8e5a028ba9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1738193<br \/>\nobjective-c debugging xcode4.4<br \/>\nI have written a some code for a drill down table app I have been making, but the app crashes only during runtime. Xcode doesn&#8217;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 &gt;sent to instance 0xc217a002012-10-18 10:58:26.515 second[474:c07] * Terminating app due to uncaught exception &gt;&#8217;NSInvalidArgumentException&#8217;, reason: &#8216;-[NavController setItems:]: unrecognized selector sent &gt;to instanc<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/296cf4cdfeccfa7ac2a200a3f01ad2d1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\niDia<br \/>\nios5.1 xcode4.4<br \/>\nI&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7988e810672a73cdc97be9dbdd08962a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1600801<br \/>\nxcode4.4<br \/>\nIs this normal? I&#8217;m developing an application using XCODE 4.4.1. My application chashes and still I don&#8217;t know why. But then, I compiled using a MAC Virtual Machine, and my application, without any changes, don&#8217;t crash. How can be this possible?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cb791c8f12e687d3538677321cdc8d2a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDaniel<br \/>\nobjective-c ios xcode xcode4.4<br \/>\nSo 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 &lt;UIKit\/UIKit.h&gt; #import &lt;AudioToolbox\/AudioToolbox.h&gt;@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(@&#8221;random NR = %i&#8221;, randomSoundNu<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/eaf03080164caed24583e0eca16a2f23?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDarren<br \/>\nios xcode ios-simulator uikeyboard xcode4.4<br \/>\nI 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&#8217;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&#8217;m getting on the console, does anyone have a solution?Unable to load<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8e5138da4c4aade978daad37f236bcb5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nXoltic<br \/>\nxcode xcode4.4<br \/>\nI just update xcode to v4.4 and when I run my project, xcode crash and the simulator&#8217;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&#8217;s another option without updating to mountain lion.*Re-install xcode doesn&#8217;t work.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0c58a61b049c13690834df8e5a028ba9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1738193<br \/>\nobjective-c cocoa-touch xcode4.4 unrecognized-selector<br \/>\nI 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 &#8216;NSInvalidArgumentException&#8217;, reason: &#8216;-[__NSCFString _isResizable]: unrecognized selector sent to instance 0x6a86a80&#8217;I think the problem lies in these parts of the code: \/*ViewControllerManual.m*\/ &#8211; (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {NSDictio<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2540b8aa05ce37971bd194b41cfea585?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2725590<br \/>\nc++ sqlite3 linker xcode4.4<br \/>\nHi 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5954718c953cf25a55d68aed9677bb68?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEl Developer<br \/>\nobjective-c xcode automatic-ref-counting xcode4.4<br \/>\nI&#8217;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:&#8221;_objc_retain&#8221;, 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&#8217;t know where this reference is coming fro<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/35d412170dac60257bc387d3402ae4f9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1563726<br \/>\nbox2d clang xcode4.4<br \/>\nI have just updated to XCode 4.4 and now get this linker-error:Undefined symbols for architecture armv7:&#8221;_objc_copyCppObjectAtomic&#8221;, 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?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8c6fe2d8f6459506a0bf584b1574d810?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTanner Silva<br \/>\nobjective-c osx-mountain-lion xcode4.4<br \/>\nI 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&#8217;t like TSCollectionViewController for this file. I just can&#8217;t figure out why! I&#8217;ve imported the file, so it shouldn&#8217;t be an unknown type name. Any ideas? Thank you for your time!Here is TSCollectionViewContr<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/85f71e9eea0aed99970b0155671abe58?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWeibin Shen<br \/>\nsimd xcode4.4 fftw altivec<br \/>\nI&#8217;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<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wouter Scholtens unit-testing warnings xcode4.4 Possible Duplicate:Some of my unit tests tests are not finishing in XCode 4.4 I&#8217;ve just upgraded to XCode 4.4. I&#8217;ve created a new project and included unittesting. When running the tests I get a warning &#8220;All tests did not finish&#8221;.Colleagues with clean installs of xcode 4.4 have exactly the same [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4031","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4031"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4031\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}