xcode4.6

Error after upgrading to xcode 4.6 and iOS 6.1 “used as the name of the previous parameter rather than as part of the selector”

☆樱花仙子☆ 提交于 2019-11-27 14:44:16
After updating to xcode 4.6 and ios6.1, I get this new error "'objectType' used as the name of the previous parameter rather than as part of the selector ". I get this multiple times. Any ideas? PS: The method that it get displayed is a custom one for reverse geocoding. -(void) getAddress: (NSString *) objectType: (CLLocationCoordinate2D) objectCoordinate iDev It says that objectType is the name of the NSString object in your method and not part of the method name and it should not be used as objectType: (CLLocationCoordinate2D) objectCoordinate which normally denotes a part of method name.

Debugging Quicklook Plugin in Xcode 4.6

江枫思渺然 提交于 2019-11-27 14:14:06
问题 I am trying to debug a quicklook plugin in Xcode 4.6. I have created the executable in Edit Scheme. Now, when i build the project the plugin is not installed to the "/Library/Quicklook" path. Rather i didn't find it anywhere. I want to run the plugin in debug mode and want to hit the breakpoints so that i can figure out where the plugin crashes on different files. It would be great if someone share his knowledge. Thanks in advance. 回答1: You can use brake points and NSLog function for

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

浪尽此生 提交于 2019-11-27 11:43:24
问题 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? 回答1: 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

Xcode version 4.6.2 (4H1003) compiler error

老子叫甜甜 提交于 2019-11-27 11:01:32
问题 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? 回答1: 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

run app using xcode 4.6 in ios 4.3 simulator

非 Y 不嫁゛ 提交于 2019-11-27 08:42:42
问题 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 回答1: 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

Modal segue, navigation bar disappears

社会主义新天地 提交于 2019-11-27 07:23:13
I'm using Xcode 4.6.1 to code on Objective-C. I want to know how can I keep the navigation bar shown when I create a modal segue between 2 View controllers, because I'm doing the segue in the storyboard and when I run the application the navigation bar of the second view controller disappears, and I have a done button on that bar but I can't see it. Modal segues take over the whole screen, so any navigation bars, tool bars, or tab bars that are in the presenting controller will be covered up. If you want a navigation bar on this modal controller, you'll need to add one specifically to it, and

Changed project name in Xcode causing naming error

限于喜欢 提交于 2019-11-27 06:58:34
My old name consisted of a camel case type name similar to this MyApp I then changed it to Myapp 'notice the A is now non-caps' I changed this by clicking MyApp name in the navigator menu and changing it, up came a help box asking me to do system wide changes I clicked YES! but now when I build this application its saying the name of my app is: Myapp-temp-caseinsensitive-rename I am now wondering how do I get rid of the -temp-caseinsensitive-rename portion? Check the product name in build settings and make sure everywhere it is Myapp. If that is done, Close your project -> go to finder. Right

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

帅比萌擦擦* 提交于 2019-11-27 06:48:16
问题 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. 回答1: 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

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

余生长醉 提交于 2019-11-27 03:50:29
问题 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

Where to set environment variables for app?

为君一笑 提交于 2019-11-27 01:46:48
问题 I'm working with source code that is frozen and cannot be changed; but its ENV aware and expects changes through the ENV. The source code is being used in an Xcode 4/iOS project. Xcode 3 allowed us to set environmental variables on the app in the Executable folder (see Figure 1 at iOS Debugging Magic). Xcode 4 appears to lack the 'executable info' that was present in Xcode 3. I've looked through a number of similar questions on Stack Overflow, but no one has answered the questions. Answers