xcode4.6

How do I get exception details in XCode 4.6?

最后都变了- 提交于 2019-11-28 19:54:23
I used to get exception details from apps running in the simulator like so: po $eax Ever since I upgraded to XCode 4.6 it's stopped working; I always get this error: error: warning: couldn't get object pointer (substituting NULL): Couldn't find '_cmd' with appropriate type in scope Couldn't materialize struct: Couldn't read eax (materialize) Errored out in Execute, couldn't PrepareToExecuteJITExpression I've seen people recommend using this: register read eax But that gives me this error: eax = error: unavailable How do I get exception details in XCode 4.6? Sebastian If you break on objc

Xcode 4.6 zXing compile error after Xcode update (4H127)

烈酒焚心 提交于 2019-11-28 18:52:38
Different projects using ZXing have error after last Xcode update: Error messages are: private field 'cached_y_' is not used Private field 'bits_' is not used Private field 'cached_row_num_' is not used Private field 'dataHeight_' is not used Any compiler flag I have to set up? Just add this flag -Wno-unused-private-field under ZXingWidget target -> Build Settings -> Other Warning Flags. Click the + button and paste the flag, clean and build again. (No need to remove any other flag, just ignore unused private field warning) Here is a workaround to get it to compile. You have remove couple

Xcode version 4.6.2 (4H1003) compiler error

心已入冬 提交于 2019-11-28 18:04:35
I just updated to Xcode version 4.6.2 (4H10003) and tried to run a previously working application project in the simulator and received the following error and the build failed. PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28)) What went wrong and how can it be fixed? matt Do a Clean of the project; hold Option so that you are cleaning out the whole build folder and intermediates. You might have to quit Xcode and throw away the whole contents of the DerivedData folder by hand in the Finder, as I describe here: How to Empty Caches and Clean All

run app using xcode 4.6 in ios 4.3 simulator

放肆的年华 提交于 2019-11-28 14:21:22
I am actually trying to run my application in 4.3 simulator from xCode 4.6. I copy the sdk for simulator 4.3 at the path, it builds successfully but cant run the application in simulator. So now what can I do to solve the problem? Thank you in advance If you are using Mac OS 10.7.x and have upgraded to Xcode 4.6, then you could have or download simulator 4.3 version. But, if you are using Mac OS 10.8.x, then you can not have simulator 4.3 version. The reason is 4.3 simulator on Mac OS 10.8.x crashed a lot, so Apple has removed that. Check this link:- http://iphonedevsdk.com/forum/iphone-sdk

“GooglePlus/GooglePlus.h file not found” when trying to build my project

僤鯓⒐⒋嵵緔 提交于 2019-11-28 12:09:42
I get the error GooglePlus/GooglePlus.h file not found when I try to build the project. I just added the Google Plus framework into the project, and after that, I tried to import the framework in the app delegate.m file, but I’m just getting this error. I think you have to remove current framework and bundle for Google plus and then download the latest one framework for Google plus from https://developers.google.com/+/mobile/ios/sdk/google-plus-ios-sdk-1.5.1.zip & add them from project's Build_Settings>Build_Phases. This way i have solved my problem, may be u too can get it. Thanks K.D Usman

How to execute a class member function in a separate thread using C++11 thread class?

我只是一个虾纸丫 提交于 2019-11-28 10:50:46
I'm trying to use the C++11's std::thread class to run a member function of a class to execute in parallel. The header file's code is similar to: class SomeClass { vector<int> classVector; void threadFunction(bool arg1, bool arg2); public: void otherFunction(); }; The cpp file is similar to: void SomeClass::threadFunction(bool arg1, bool arg2) { //thread task } void SomeClass::otherFunction() { thread t1(&SomeClass::threadFunction, arg1, arg2, *this); t1.join(); } I am using Xcode 4.6.1 under Mac OS X 10.8.3. The compiler I am using is Apple LLVM 4.2 which came with the Xcode. The above code

Add time and date in custom/user Code Snippet in XCode

五迷三道 提交于 2019-11-28 03:46:36
问题 How can I add date time in my custom code snippet? I need frequent use to add my codes on other codes, and for others, I need to add my name and date time. I created a code snippet with shortcut _ase, but I am not finding any help on net how can I add time to it. 回答1: You can't add date or time automatically using the native Xcode snippet grammar. Snippets do not have anything other than token substitution using the <#VisibleTokenName#> syntax. File templates are generated differently and

Facebook Registration : The operation couldn't be completed (com.facebook.sdk error 2)

纵然是瞬间 提交于 2019-11-28 00:22:51
I am developing an ios phonegap application. For registration i use phonegap facebook plugin . It worked fine for the first time. But now when i try to register it isn't working. I haven't changed anything. I use Xcode version 4.6.1 and cordova version 2.4.0. Figure shows my Facebook developers page. What am i doing wrong? Please help, Thanks. I think this will fix your issue: Go to you Facebook app in your Facebook account. Click edit your app. Go to Basic info tab. Sandbox Mode: check this as Disable Save the setting. This will work for you. First of all make sure about your Bundle Id should

“po” command in Xcode 4.6 is very slow the first time

泄露秘密 提交于 2019-11-27 21:06:06
问题 I upgraded to Xcode 4.6 and whenever I debug and I execute "po" for the first time to inspect an object, the debugger takes like 1 minute to return. After that, every "po" command will work fast as usual. Are you guys seeing this as well? Any fix? Thank you 回答1: Upgrading to 4.6.2 fixed this problem for me in Xcode 来源: https://stackoverflow.com/questions/14760206/po-command-in-xcode-4-6-is-very-slow-the-first-time