xcode4.2

Can a custom xcode template partially and selectively enable ARC (Automatic Reference Counting)?

拟墨画扇 提交于 2019-12-04 19:20:39
Problem: A library I use won't support ARC (Automatic Reference Counting). Background (for those unfamiliar to ARC): http://developer.apple.com/library/ios/#releasenotes/ObjectiveC/RN-TransitioningToARC/_index.html Manual Solution: Add the -fno-objc-arc option for each implementation file of the library, and otherwise use ARC normally in my application code. Observation: The following template file can be copied and most likely be used to either turn ARC completely ON or OFF (without adding the compiler flags above -- the in-between solution that I need): "/Developer/Platforms/iPhoneOS

Exception Breakpoints - LLDB Results vs. GDB

送分小仙女□ 提交于 2019-12-04 17:49:08
I have searched for topics specifically to this question but have not found anything close to my experience. Forgive me if I have overlooked the answer. I am familiar with GDB and exception points, break points, etc... but the following test of debugging in GDB vs LDB left me without a plausible response. Global Test Values Xcode 4.2.1 New Single Window Project (Default template w/no changes) Arc Enabled Storyboard Enabled Case 1 - GDB Debugger Exception Breakpoint Values: Exception - All Break on - Throw Arguments - None Result - No Crash Case 2 - LLDB Debugger Exception Breakpoint Values:

Including QuickDialog into Xcode 4.2 Project

♀尐吖头ヾ 提交于 2019-12-04 15:12:45
I try to include QuickDialog into one of my projects and just can't get it to work. I did the following: downloaded it from github copied it into my project directory drag and droped the QuickDialog.xcodeproj file downloaded from github previously from Finder to my project in the Build Phases, Added QuickDialog (the lib, not the example app) as a Target Dependency in the Link Binary With Libraries section, added the libQuickDialog.a library (this turns red actually don't know why) In my Prefix.pch file, add: #import <QuickDialog/QuickDialog.h> cause this didn't work I also tried the following:

ld: library not found for -lz

自作多情 提交于 2019-12-04 13:44:30
问题 This is driving me crazy, when i try to compile on the simulator, everything is ok, but on the device i got this error: ld: library not found for -lz Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1 Please help me understand the source of the problem: Ld /Users/ZConsulting/Library/Developer/Xcode/DerivedData/Fontenay-sous-Bois-dhlecgdgtoldsadoctkyueriyius/Build/Products/Debug-iphoneos/Fontenay-sous-Bois.app/Fontenay-sous-Bois normal armv7 cd

How to use gcc 4.2 with Xcode 4.2

三世轮回 提交于 2019-12-04 13:39:15
I need to use gcc 4.2 with Xcode 4.2 for some older code. How do i get it to show up. Xcode4.2 seems to have dropped support for it. Thanks Here is a way to enable compiling with gcc 4.2 in xcode 4.2 . This is mostly done via command line so when you see lines starting with: [ 15:30 jon@MacBookPro / ]$ , you need to open up Terminal.app and run the command that starts after the $ . No files or directories are removed or deleted in this process, so it is easy to undo if you need to compile with LLVM in the future. Download - but do not install yet - xcode_4.1_for_lion.dmg or xcode_4.1_for_snow

Show Current Git Branch in Xcode 4.2

…衆ロ難τιáo~ 提交于 2019-12-04 12:38:29
This is a simple question that has been bugging me. In XCode 4.2, is there anyway to display the git branch that is currently being edited? I know I can see this from the organizer (or do it from the command line), but what I want to see is the branch name up there in lights next to the project and file name in XCode itself - which is the tool I use 99.9% of the time. From what I can see from " XCode4 User Guide ", the organizer view remains the only way to quickly see the current branch (as you already knew). There doesn't seem to be an overlay added to the other views in XCode4, no overlay

<classes> element flipping in and out of existence in storyboard file

旧街凉风 提交于 2019-12-04 11:18:42
问题 This isn't a big problem but it is annoying. Every time I edit my storyboard in Interface Builder and I want to check it into the revision control system there's a element that is either generated or removed: if it existed it is removed and vice versa. It adds needless noise to my checkins. Does someone have an idea of what's going on and how to fix it? 回答1: Switch to Xcode 5 as soon as this becomes feasible. There they change the XIB format to be mergeable XML. While you are still on Xcode 4

Symbols meaning aside class name in xcode

北城余情 提交于 2019-12-04 10:38:25
问题 I am using Xcode 4.2 in which I have created various classes which shows various symbols like ?, A, M with the name of the classes. Project is running absolutely fine. Still I'm curious to know the meaning of these symbols. Whether the classes with question mark symbol will create error or warning in future? 回答1: After lots of searching I have got the answer at this link under "Keep Track of Your Files’ SCM Status" section. M = Locally modified U = Updated in repository A = Locally added D =

“The archive is invalid” during archive validation in xcode

我的梦境 提交于 2019-12-04 10:22:30
I try to upload an update for my app. However I always get this error message: I use xcode 4.2 and the iOS 5.0 SDK. I read that question Xcode iOS organizer submit to app store yields "The archive is invalid" error but nothing helped. I tried following uninstall xcode using command line and reinstall it delete all distribution proviles and create new opened the project file in text editor removed all provisioning lines and code sign lines, clean and build I keep getting this error message. Any ideas? I tried removing CODE_SIGN_IDENTITY from the project file using a text editor with no luck.

Xcode 4.2 - UILabel Word Wrap

我是研究僧i 提交于 2019-12-04 08:39:00
I know people have asked this question a bunch of times alrdy on Stack, but the usual answer of changing "Lines: 0" and selecting "Line Breaks: Word Wrap" just isn't fixing it for me. I am using Xcode 4.2 with a Storyboard. I have placed a UILabel on a View Controller and resized it to cover most of the View. I have changed "Lines" value to 0 and "Line Breaks" value to Word Wrap. I have tried \n in my string: @"This is my label text \n that's supposed to wrap." Any ideas?? EDIT: I wasn't declaring any of the label's properties in my implementation file, only on the storyboard, so I have tried