xcode4.2

ios5 ARC what is the compiler flag to exclude a file from ARC?

前提是你 提交于 2019-12-17 08:55:38
问题 Can anyone help me remember what was the flag to tell the XCode to not use ARC for some file? I had several files in my project marked as such... Until I added another file and decided to convert that one to ARC. Sounds easy, right? I expected that I would be able to simply check a file that I want and let the XCode do it's magic. Well, not so easy, during pre-check it stripped all -Noarc flags from the files and now I need to manually re- apply the flag to several files. the moral of this

Some questions about Automatic Reference Counting in iOS5 SDK

萝らか妹 提交于 2019-12-17 03:21:46
问题 I'm currently developing an app for iPad. The development started for iOS 4.2 and is now continuing (and I think will be completed) for iOS 4.3. I just read about ARC in iOS 5, and basically I understood that we will never need to release and retain objects anymore. My questions are: If I decide to upgrade to iOS 5, do I need to remove all [myObject retain] and [myObject release] statements from my code? If I develop a new app for iOS 5 using ARC, will I need to implement some sort of "retro

Xcode 4.2 not detecting Device(ios6)

怎甘沉沦 提交于 2019-12-13 16:42:32
问题 I trying to connect my device iPAD (iOS 6.0) to the X-code(4.2 with iOS 5.0) but device is not been detecting..I have made all the changes..Device can been seen in the Organizer but not in the X-code.I have taken Provisional certificate and keychain certificate both are valid. now In Xcode In Build Identifier I have edited ,Even Made changes in Code Signing identity of the Target and my app .What more changes do it required. Base SDK of the Target Device is 5.0 ,Would it be possible to run

Clang 3.1 on xcode 4.2 (Snow Leopard)

和自甴很熟 提交于 2019-12-13 15:05:19
问题 Is it possible to install clang 3.1 on xcode 4.2 (Snow Leopard)? 回答1: You can also build and install it yourself. Instructions can be found here. I'm not sure if this (or the MacPorts solution... +1 to @trojanfoe) will easily be callable from Xcode though. After moving everything from " /Developer " into & within the Xcode package, I'm thinking Apple is trying to keep Xcode a "walled garden" as well. 回答2: Yes, try the macports version. You can also download the binaries, if you can't be

Xcode 4.2 Code Coverage

主宰稳场 提交于 2019-12-13 12:05:03
问题 I started to use Xcode 4.2 and i have problems with generating code coverage. Xcode 4.2 does not include the GCC 4.2 compiler, but it was replaced with the LLVM GCC 4.2 compiler. The first one was needed to generate code coverage in the previous version of Xcode. I followed the 'tutorial' on CoverStory website, but this results in the following: a) when i do all steps, no coverage files. b) when i link the libprofile_rt.dylib to my project, the test which should fail, do not fail anymore. Did

Xcode: Page-based application [closed]

瘦欲@ 提交于 2019-12-13 09:46:52
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to make a book application using the new page-based app of Xcode 4.2 but I'm kinda lost, I'm a bit confused with it. For my first try I want to put different images per page, just to be familiar with it,

Xcode 4.2 Build on iPod touch 1st gen

安稳与你 提交于 2019-12-13 08:28:31
问题 I'm having problems building my app on 1st generation iPod touch. I've changed the Architecture value to "armv6 armv7" and also the deployment target to 3.0 iPod touch is running iOS 3.1.3 Anyone has a solution for that? Thanks 回答1: If this is a new Xcode project, Xcode adds a required device element of armv7 in the info.plist for the target. It needs to be removed. Also be sure your not using ARC or storyboarding when creating your projects. 来源: https://stackoverflow.com/questions/8491996

Refreshing a view

拟墨画扇 提交于 2019-12-13 04:21:06
问题 Okay I have created an application where in one of the screens I have a call slot screen. Basically there are 18 buttons, ranging from 09.00-09.30 all the up up to 17.30-16.00 split up into two buttons per row. There are also two arrows at the top, allowing the user to go forward up to seven days and back to current day. When a user clicks one of the buttons, it will pop up with an alert stating the time selected. Now what I want is, when the user accesses this view, any timeslot that is not

Unable to build openssl in Xcode 4.2.1

瘦欲@ 提交于 2019-12-13 04:14:57
问题 I could build openssl in xcode 3.5.2, but recently I upgraded to Xcode 4.2.1. Now when I try to build in the same old Xcode, I'm getting errors. Make[1]: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2: No such file or directory Cp: libcrypto.a: No such file or directory Cp: libssl.a: No such file or directory Can I have a solution for this? 回答1: I found the solution for XCode 4. You need to change in "Build Phases" the text $PLATFORM_DEVELOPER_BIN_DIR/gcc-4.2 to $PLATFORM

PhoneGap iPhone app crashing when push notification tapped

旧巷老猫 提交于 2019-12-13 04:14:24
问题 Xcode 4.2, using PhoneGap template, Urban Airship library. Xcode compiles my application and installs it on my iPhone, and I can send push notifications to it from the Urban Airship Web interface. So here’s my problem: If I tap on a notification while the app is open in the background, the app comes into the foreground. However, if the app is not already in the background when I tap a notification, the app intro screen briefly appears, and the app immediately crashes. At this point, the app