xcode4

Conflict between static libraries used in Xcode project

对着背影说爱祢 提交于 2019-12-07 16:47:23
问题 I am using RestKit, GData and Facebook API. All of them has a JSON files, many of them share the same name, enums etc. When i compile I get an error on duplicates. How can i prevent the conflicts? Thanks Shani 回答1: This is my best guess. It would be helpful to post the errors you get on compile. If you are using the -all_load linker flag, turn it off. If your libraries require that you use this option, try using -force_load option on the specific libraries that require it. As an absolute last

What is an exception breakpoint in Xcode

一笑奈何 提交于 2019-12-07 16:42:44
问题 There have been posts about how to use exception breakpoint in Xcode. But my question is what exactly that is? It seems that I get a much complete stack trace when I enable exception breakpoint for all exceptions. Why is that so? Also I don't get error messages anymore. I am just really curious about how exception break points work. Thanks 回答1: It's just a GUI wrapper around setting a symbolic breakpoint on objc_exception_throw . objc_exception_throw is just a C function that is used to raise

How to add Private Frameworks into Project?

不问归期 提交于 2019-12-07 15:46:28
I have a framework that's part of my app and I want to add it as a private framework so I can distribute it. However, I couldn't find a way how to do it. Apple does provide steps on how you should add private frameworks, but they're too brief to follow. If anyone can point my to the right way on how to do this, I'd be really glad. Thanks. Apple already provided steps for Embedding a Private Framework in Your Application Bundle . You should read this document. 来源: https://stackoverflow.com/questions/7754070/how-to-add-private-frameworks-into-project

Static libraries have same function names causing duplicate symbol error

*爱你&永不变心* 提交于 2019-12-07 13:24:05
问题 I am using 2 third party libraries in my iPad app. The source code for these libraries are not known to me. These libraries have the functions with same name in both. So I am are getting "Apple Mach - O (id) error" because of the collision in function names. I cant change the function names within them, as source code is not known. On building the app the error are occurring. The error states that: ld: duplicate symbol _T_strcpy in /Users/Desktop/untitled folder/Universal/lib/simulator/myLib

Local Repository in Xcode 4

两盒软妹~` 提交于 2019-12-07 13:20:11
问题 I want to add local svn or git repository to my code in Xcode 4. I found help for adding that to a new project. But how do I add that to an old one? I started working in Xcode 3. Recently I'm using Xcode 4. I want to use Time Line. Please help. 回答1: I was looking for an answer to the same problem. What I have done is followed the steps given by 'adymitruk' and in addition to that from the organizer window of XCode I selected 'Add Working Copy' option and selected my project folder where I had

UIAlertView buttons action code

假装没事ソ 提交于 2019-12-07 12:35:19
问题 Do anyone know how to make actions for the buttons in UIAlertview ? if so, please guide me. 回答1: - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger) buttonIndex { if (buttonIndex == 0) { NSLog(@"Cancel Tapped."); } else if (buttonIndex == 1) { NSLog(@"OK Tapped. Hello World!"); } } Try This Code It Will Works for you... 回答2: When buttons are clicked in UIAlertView, its delegate method - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger

why gh-unit is better than SenTestCase ( in Xcode4 )?

China☆狼群 提交于 2019-12-07 12:22:57
问题 This post "Unit Testing in Xcode 4" talks about unit test, let me know the best solution "gh unit" , but I know that xcode4 just provides SenTestCase , so question here to know more reasons why you choose gh-unit ? And now xcode4 provide native unit testing framework, do you think that is the best choice now? 回答1: The best answer is "...well it depends." Here is a very good post on what the determining factors are (as well a a good comparison between the two): http://longweekendmobile.com

Xcode: How to change all fonts at once in an app?

老子叫甜甜 提交于 2019-12-07 11:07:04
问题 I was wondering if it was possible to change the fonts on about 100 different viewcontrollers all at once? It would be a lot eisier than going through one by one and changing them. Any ideas? Thank you! 回答1: The user interface files (*.xib) are plain text and you can load them into an editor. In Xcode4 on the left pane you can right-click > open as > source. This will give you the XML source any you can find/replace there. Warning: doing something wrong may render the whole file useless, so

How to include static libraries which have same names for OBJECT files within them?

徘徊边缘 提交于 2019-12-07 11:02:17
问题 I am developing an iPad app in which I have included 2 third party static libraries. The names of the object files in these 2 libraries are same. On building the app I am getting "Apple Mach -O (id) error" because of the same names of the object files in those 2 libraries. How to solve this problem? Error looks like: ld: duplicate symbol _T_strcpy in /Users/indiait-supportservices/Desktop/untitled folder/Universal/lib/simulator/libSecurIDLib.a(mem.o) and /Users/indiait-supportservices/Library

Can I disable the debugger in Xcode 4?

老子叫甜甜 提交于 2019-12-07 10:04:18
问题 I would like to not use the debugger (gdb), though I want to get output from my application (from stdout and stderr). I find that I never use it, I always use NSLog (or, for C printf and for C++ std::cout ). How can I disable the debugger (even in the debug configuration)? 回答1: Next to run and stop - click on the Scheme area, select edit scheme - then on build configuration select release. Not sure if that what you meant. 回答2: In XCode 4 - at the top left where the Run and Stop buttons are,